CLI (Command Line Interface)
204 NXA-ENET24 - Software Management Guide
Port Security Commands (Cont.)
Command Function
mac-address-table static
This command maps a static
address to a destination port in a
VLAN.
Use the no form to remove an
address.
Syntax:
mac-address-table static mac-address interface interface
vlan vlan-id [action]
no mac-address-table static mac-address vlan vlan-id
• mac-address - MAC address.
• interface:
ethernet unit/port
unit - Stack unit. (Range: 1-8)
port - Port number. (Range: 1-26)
port-channel channel-id (Range: 1-4)
• vlan-id - VLAN ID (Range: 1-4094)
• action -
delete-on-reset - Assignment lasts until the switch is reset.
permanent - Assignment is permanent.
Default Setting: No static addresses are defined. The default mode is
permanent.
Command Mode: Global Configuration
Command Usage: The static address for a host device can be assigned
to a specific port within a specific VLAN. Use this command to add static
addresses to the MAC Address Table. Static addresses have the follow-
ing characteristics:
• Static addresses will not be removed from the address table when a
given interface link is down.
• Static addresses are bound to the assigned interface and will not be
moved. When a static address is seen on another interface, the
address will be ignored and will not be written to the address table.
• A static address cannot be learned on another port until the address is
removed with the no form of this command.
Example:
Console(config)#mac-address-table static 00-e0-29-94-34-de
interface ethernet 1/1 vlan 1 delete-on-reset
show mac-address-table
This command shows classes of
entries in the bridge-forwarding
database.
Syntax:
show mac-address-table [address mac-address [mask]]
[interface interface] [vlan vlan-id] [sort {address | vlan |
interface}]
• mac-address - MAC address.
• mask - Bits to match in the address.
• interface
ethernet unit/port
unit - Stack unit. (Range: 1-8)
port - Port number. (Range: 1-26)
port-channel channel-id (Range: 1-4)
• vlan-id - VLAN ID (Range: 1-4094)
• sort - Sort by address, vlan or interface.
Default Setting: None
Command Mode: Privileged Exec
Command Usage: The MAC Address Table contains the MAC
addresses associated with each interface.