1107
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
OL-27880-02
Chapter M 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
{
ethernet
slot
/[
QSFP-module
/]
port
|
port-channel
number
[
.
subinterface-number
]} [
auto-learn
]
no mac address-table static
mac-address
{
vlan
vlan-id
}
Syntax Description
Command Default
None
Command Modes
Global 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.
mac-address
MAC address to add to the table. Use the format
EEEE.EEEE.EEEE.
vlan
vlan-id
Specifies the VLAN to apply the static MAC address. The
VLAN ID range is from 1 to 4094.
drop
Drops all traffic that is received from and going to the
configured MAC address in the specified VLAN.
interface
Specifies the interface. The type can be either Ethernet or
EtherChannel.
ethernet
slot
/[
QSFP-module
/]
port
Specifies the Ethernet interface and the slot number and port
number. The
slot
number is from 1 to 255. The
QSFP-module
number is from 1 to 4. The
port
number is from 1 to 128.
Note
The
QSFP-module
number applies only to the QSFP+
Generic Expansion Module (GEM).
port-channel
number
Specifies the EtherChannel interface and EtherChannel number.
The range is from 1 to 4096.
.
subinterface-number
(Optional) EtherChannel number followed by a dot (.) indicator
and the subinterface number.
auto-learn
(Optional) Allows the switch to automatically update this MAC
address.
Release
Modification
6.0(2)N1(1)
Support for the QSFP+ GEM was added.
5.2(1)N1(1)
This command was introduced.