Hi there, Community!
This post is regarding the procedure of checking the MAC addresses on a switch. Please see the process below.
PROCEDURE
1. Check the system MAC address.
a) On a fixed switch:
<S5700>display bridge mac-add
System bridge MAC address: xxxx-xxxx-xxxx
b) On a modular switch:
<S9303>display system-mac
MAC-num :1
Index MAC Addr
----------------------------
default xxxx-xxxx-xxxx
current xxxx-xxxx-xxxx
2. Check the MAC address of an interface.
<S5700>display interface GigabitEthernet0/0/10
GigabitEthernet0/0/10 current state : UP
Line protocol current state : UP
Description:
Switch Port, Link-type : trunk(configured),
PVID : 1, TPID : 8100(Hex), The Maximum Frame Length is 1600
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is xxxx-xxxx-xxxx
Current system time: 2015-03-02 02:50+08:00
Port Mode: COMMON COPPER
Speed : 1000, Loopback: INTERNAL
Duplex: FULL, Negotiation: DISABLE
Mdi : AUTO, Flow-control: DISABLE
Last 300 seconds input rate 480 bits/sec, 0 packets/sec
Last 300 seconds output rate 480 bits/sec, 0 packets/sec
Input peak rate 13880 bits/sec, Record time: 2015-03-02 02:50
Output peak rate 13880 bits/sec, Record time: 2015-03-02 02:50
Input: 510225 packets, 80014227 bytes
Unicast: 0, Multicast: 510225
Broadcast: 0, Jumbo: 0
Discard: 0, Pause: 0
Frames: 0
Total Error: 0
CRC: 0, Giants: 0
Jabbers: 0, Fragments: 0
Runts: 0, DropEvents: 0
---- More ----
3. Check the MAC address entries learned by a switch.
a) Check all MAC address entries on the switch.
<S5700>display mac-address
b) Check the MAC address entries on an interface.
<S5700>display mac-address GigabitEthernet 0/0/X
c) Check all the dynamic MAC address entries in the system.
<S5700>display mac-address dynamic
You can change the dynamic parameter in the command to blackhole, static, security, sticky, and summary to check blackhole MAC address entries, static MAC address entries, secure dynamic MAC address entries, sticky MAC address entries, and statistics on MAC address entries, respectively.
The commands and command outputs are not provided here.
For more information about MAC address-related commands, download the product documentation and see Reference - Command Reference - Ethernet Switching Configuration Commands - MAC Address Table Configuration Commands.
This is thus the procedure of checking the MAC addresses on a switch.