N10-009 ยท Network troubleshooting tools
Show commands on switches and routers
Show MAC address table, route, interface, config, ARP, VLAN and power.
Key points
- show mac address-table lists learned MAC addresses and the port and VLAN for each; show arp maps IPs to MACs; show route (show ip route on Cisco IOS) prints the routing table; show interface gives status, speed/duplex and error counters such as CRC; show vlan lists VLANs and their ports; show power (inline) reports PoE draw per port; show config (running-config) displays the configuration.
- Keywords differ between vendors.
Practice questions
Which command tells you on which switch port a given MAC address was learned?
- show route
- show mac address-table
- show vlan
- show config
Show answer
Answer: B. show mac address-table
The MAC address table maps MAC to port and VLAN. The ARP table maps IP to MAC, and the routing table maps prefixes to next hops.
Which command-to-information pairs are correct?
- show vlan: VLANs and their member ports
- show route: the routing table
- show arp: IP-to-MAC bindings
- show power: VLAN membership of ports
- show config: the learned MAC addresses
Show answer
Answer: A. show vlan: VLANs and their member ports, B. show route: the routing table, C. show arp: IP-to-MAC bindings
show vlan lists VLANs and member ports, show route the routing table, show arp IP-to-MAC bindings. PoE draw comes from show power, and the configuration from show config.
True or false: the running configuration shows which MAC addresses the switch has currently learned on each port.
Show answer
Answer: False
False. The configuration holds what an admin set. Learned MAC addresses are dynamic state, shown by show mac address-table.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
