Show MAC Address Information on Cisco Switch Device
To display and analyze the MAC address of a Cisco switch device, there are several commands that we can run, including the following:
- Using the command show interface vlan (number)
Command to find mac address information
S1#show interfaces vlan 1
Vlan1 is up, line protocol is up
Hardware is CPU Interface, address is 0006.2a53.d766 (bia 0006.2a53.d766)
Internet address is 192.168.1.2/24
MTU 1500 bytes, BW 100000 Kbit, DLY 1000000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
ARP type: ARPA, ARP Timeout 04:00:00
Last input 21:40:21, output never, output hang never
Last clearing of “show interface” counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
1682 packets input, 530955 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicast)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
563859 packets output, 0 bytes, 0 underruns
0 output errors, 23 interface resets
0 output buffer failures, 0 output buffers swapped out
2. Another way to display mac address information on a cisco switch is to use the show arp command.
S1#show arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 192.168.1.1 9 000C.CFEB.DE69 ARPA Vlan1
Internet 192.168.1.2–0006.2A53.D766 ARPA Vlan1
3. To display the MAC address for all interfaces on a Cisco switch, use the show mac address-table command
S2#show mac address-table
Mac Address Table
— — — — — — — — — — — — — — — — — — — — — -
Vlan Mac Address Type Ports
— — — — — — — — — — — — — — -
1 0002.164b.ec02 DYNAMIC Fa0/2
1 0060.47dd.6246 DYNAMIC Fa0/1
1 00e0.8fc1.1765 DYNAMIC Fa0/2