Purpose
Command or Action
The
seconds
range is from 0 to 1000000. The default is 300
seconds for Cisco NX-OS 5500 and 1800 for Cisco NX-OS
5600 and 6000 series. Entering the value 0 disables the MAC
aging. If a VLAN is not specified, the aging specification
applies to all VLANs.
This example shows how to set the aging time for entries in the MAC address table to 300 seconds:
switch#
configure terminal
switch(config) #
mac address-table aging-time 300
switch(config) #
Configuring MAC Move Loop Detection
When the number of MAC address moves between two ports exceeds a threshold, it forms a loop. From Cisco
NX-OS release 6.0(2)N2(1), you can configure the action of bringing down the port with the lower interface
index when such a loop is detected by using the
mac address-table loop-detect port-down
command. To
revert to the default action of disabling MAC learning, use the
no
form of this command.
If only the loop-detect port-down configuration is enabled, the last port on which MAC loop is detected
is err-disabled.
Note
Procedure
Purpose
Command or Action
Enters global configuration mode.
switch#
configure terminal
Step 1
Specifies the port-down action for MAC move loop
detection. The
no
form of this command reverts to
switch(config)#
[no] mac address-table
loop-detect port-down
Step 2
the default action of disabling MAC learning for 180
seconds.
Enables the err-disabled detection for the edge-port
on the MAC move loop detection.
switch(config)#
mac address-table
loop-detect port-down edge-port
Step 3
This example shows how to configure port-down as the action for MAC move loop detection.
switch#
configure terminal
switch(config)#
mac address-table loop-detect port-down
This example shows how to enable the err-disabled detection for the edge-port on the MAC move loop
detection.
switch#
configure terminal
switch(config)#
mac address-table loop-detect port-down edge-port
Cisco Nexus 6000 Series NX-OS Layer 2 Switching Configuration Guide, Release 7.x
113
Configuring MAC Address Tables
Configuring MAC Move Loop Detection