Cisco Nexus 5000 Series Command Reference Release 4.0(1a)N2(1) (OL-16599-01, March 2009)
Send comments to nx5000-docfeedback@cisco.com
2-32
Cisco Nexus 5000 Series Command Reference
OL-16599-01
Chapter 2 Ethernet Commands
mac-address-table static
mac-address-table static
To configure a static entry for the MAC address table, use the mac-address-table static command. To
delete the static entry, use the no form of this command.
mac-address-table static mac-address vlan vlan-id {drop | interface {type slot/port |
port-channel number} [auto-learn]
no mac-address-table static mac-address {vlan vlan-id}
Syntax Description
Command Default None
Command Modes Configuration mode
Command History
Usage Guidelines You cannot apply the mac-address-table static mac-address vlan vlan-id drop command to a multicast
MAC address.
When you install a static MAC address, it is associated with a port. If the same MAC address is seen on
a different port, the entry is updated with the new port if you enter the auto-learn keyword.
Examples This example shows how to add a static entry to the MAC address table:
switch(config)# mac-address-table static 0050.3e8d.6400 vlan 3 interface ethernet 1/4
mac-address Specifies the MAC address to add to the table. Use the format
EEEE.EEEE.EEEE.
vlan vlan-id Specifies the VLAN to apply static MAC address; valid values are from 1 to
4094.
drop Drops all traffic that is received from and going to the configured MAC
address in the specified VLAN.
interface type slot/port Specifies the interface. The type can be either ethernet. Specify the
appropriate slot and port number.
port-channel number Specifies the interface. Use the EtherChannel number.
auto-learn (Optional) Allows moving of this MAC address.
Release Modification
4.0(0)N1(1a) This command was introduced.