S e n d c o m m e n t s t o n x 5 0 0 0 - d o c f e e d b a c k @ c i s c o . c o m
2-11
Cisco Nexus 5000 Series Command Reference
OL-16599-01
Chapter 2 Ethernet Commands
clear mac dynamic
clear mac dynamic
To clear dynamic entries from the forwarding table, use the
clear mac dynamic
command.
clear mac dynamic
[
address
mac-addr
]
|
[
interface
{
type
slot
/
port
|
port-channel
number
}]
[
vlan
vlan-id
]
Syntax Description
Command Default
None
Command Modes
EXEC mode
Command History
Examples
This example shows how to clear all the dynamic entries from the MAC address table:
switch#
clear
mac dynamic
This example shows how to clear a dynamic entry for VLAN 2 from the MAC address table:
switch#
clear mac dynamic address 001b.2106.58bc vlan 2
This example shows how to clear all dynamic entries for VLAN 2 from the MAC address table:
switch#
clear mac dynamic vlan 2
Related Commands
address
mac-addr
(Optional) Specifies the MAC address to remove from the table. Use the
format EEEE.EEEE.EEEE.
interface
type
slot
/
port
(Optional) Specifies the interface for which MAC addresses should be
removed from the table. The type can be either ethernet. Specify the
appropriate slot or virtual interface group number and port number.
port-channel
number
(Optional) Specifies the EtherChannel for which MAC addresses should be
removed from the table. Use the EtherChannel number.
vlan
vlan-id
(Optional) Specifies the VLAN from which MAC addresses should be
removed from the table. The range of valid values is from 1 to 4094.
Release
Modification
4.0(0)N1(1a)
This command was introduced.
Command
Description
show mac dynamic
Displays the dynamic addresses in the MAC address table.