Ethernet Switch CLI Reference Guide
115
CHAPTER 31
MAC Address Commands
Use these commands to look at the MAC address table and to configure MAC address
learning. The Switch uses the MAC address table to determine how to forward frames.
31.1 Command Summary
The following section lists the commands for this feature.
Table 76 mac, mac-aging-time, and mac-flush Command Summary
COMMAND DESCRIPTION M P
show mac-aging-time Displays MAC learning aging time. E 3
mac-aging-time <10-3000> Sets learned MAC aging time in seconds. C 13
show mac address-table all
[<sort>]
Displays MAC address table. You can sort by MAC address,
VID or port.
sort: MAC, VID, or PORT.
E3
show mac address-table count Displays the total number of MAC addresses in the MAC
address table.
E3
show mac address-table port
<port-list> [<sort>]
Displays the MAC address table for the specified port(s).
Sorted by MAC, Port or VID.
sort: MAC, VID, or PORT.
E3
show mac address-table static Displays the static MAC address table. E 3
show mac address-table vlan
<vlan-id> [<sort>]
Displays the MAC address table for the specified VLAN.
Optionally, sorted by MAC or port.
sort: MAC or PORT.
E3
mac-flush [<port-num>] Clears the MAC address table. Optionally, removes all
learned MAC address on the specified port.
E13