Cisco Nexus 5000 Series Switch CLI Software Configuration Guide, NX-OS 4.0(1a)N1 (OL-16597-01, January 2009)

Send feedback to nx5000-docfeedback@cisco.com
13-3
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 13 Configuring the MAC Address Table
Verifying the MAC Address Configuration
To configure the aging time for all MAC addresses, perform this task:
This example shows how to set the aging time for entries in the MAC address table to 600 seconds (10
minutes):
switch# configure terminal
switch(config)# mac-address-table aging-time 600
Clearing Dynamic Addresses from the MAC Table
You can clear all dynamic entries in the MAC address table.
To clear the MAC address table, perform this task:
This example shows how to clear the dynamic entries in the MAC address table:
switch# clear mac-address-table dynamic
Verifying the MAC Address Configuration
To display MAC address configuration information, perform one of these tasks:
This example shows how to display the MAC address table:
switch# show mac-address-table
VLAN MAC Address Type Age Port
---------+-----------------+-------+---------+------------------------------
1 0018.b967.3cd0 dynamic 10 Eth1/3
1 001c.b05a.5380 dynamic 200 Eth1/3
Command Purpose
Step 1
switch# configure terminal
Enters configuration mode.
Step 2
switch(config)# mac-address-table
aging-time seconds [vlan vlan_id]
Specifies the time before an entry ages out and is
discarded from the MAC address table. The range is
from 0 to 1000000; the default is 300 seconds.
Entering the value 0 disables the MAC aging. If a
VLAN is not specified, the aging specification applies
to all VLANs.
Command Purpose
switch(config)# clear mac-address-table
dynamic {address mac_addr} {interface
[type slot/port | port-channel number}
{vlan
vlan_id}
Clears the dynamic address entries from the MAC
address table.
Command Purpose
switch# show mac-address-table
aging-time
Displays the MAC address aging time for all VLANs
defined in the switch.
switch# show mac-address-table
Displays the contents of the MAC address table.