118
Feature
Command Line
MAC Address Table
Ageing Time
Switch(config)# mac-address-table aging-time 350
mac-address-table aging-time set ok!
Note: 350 is the new ageing timeout value.
Add Static Unicast MAC
address
Switch(config)# mac-address-table static 0012.7701.0101
vlan 1 interface fastethernet7
mac-address-table ucast static set ok!
Note: rule: mac-address-table static MAC_address VLAN
VID interface interface_name
Add Multicast MAC
address
Switch(config)# mac-address-table multicast 0100.5e01.0101
vlan 1 interface fa6-7
Adds an entry in the multicast table ok!
Note: rule: mac-address-table multicast MAC_address
VLAN VID interface_list interface_name/range
Show MAC Address
Table – All types
Switch# show mac-address-table
***** UNICAST MAC ADDRESS *****
Destination Address Address Type Vlan Destination Port
------------------- --------------- ------- ------------------------
000f.b079.ca3b Dynamic 1 fa4
0012.7701.0386 Dynamic 1 fa7
0012.7710.0101 Static 1 fa7
0012.7710.0102 Static 1 fa7
0012.77ff.0100 Management 1
***** MULTICAST MAC ADDRESS *****
Vlan Mac Address COS Status Ports
---- --------------- ---- ------- --------------------------
1 0100.5e40.0800 0 fa6
1 0100.5e7f.fffa 0 fa4,fa6
Show MAC Address
Table – Dynamic Learnt
MAC addresses
Switch# show mac-address-table dynamic
Destination Address Address Type Vlan Destination Port
------------------- --------------- ------- ------------------------
000f.b079.ca3b Dynamic 1 fa4
0012.7701.0386 Dynamic 1 fa7
Show MAC Address
Table – Multicast MAC
addresses
Switch# show mac-address-table multicast
Vlan Mac Address COS Status Ports
---- --------------- ---- ------- --------------------------
1 0100.5e40.0800 0 fa6-7
1 0100.5e7f.fffa 0 fa4,fa6-7
Show MAC Address
Table – Static MAC
addresses
Switch# show mac-address-table static
Destination Address Address Type Vlan Destination Port
------------------- --------------- ------- ------------------------
0012.7710.0101 Static 1 fa7
0012.7710.0102 Static 1 fa7
Show Aging timeout
time
Switch# show mac-address-table aging-time
the mac-address-table aging-time is 300 sec.
Port Statistics
Port Statistics
Switch# show rmon statistics fa4 (select interface)
Interface fastethernet4 is enable connected, which has
Inbound: