mac-address-table static

Adds static addresses to the MAC address table.

Syntax

mac-address-table static mac-addr forward ethernet slot/port vlan vlan-id
no mac-address-table static mac-addr forward ethernet slot/port vlan vlan-id
mac-address-table static mac-addr forward logical-interface ethernet logical-interface
no mac-address-table static mac-addr forward logical-interface ethernet logical-interface
mac-address-table static mac-addr forward port-channel port-channel-number vlan
no mac-address-table static mac-addr forward port-channel port-channel-number vlan

Command Default

Aging time is 1800 seconds.

The MAC-move limit is 20 moves.

Parameters

static mac-addr forward
Specifies the Media Access Control (MAC) address (unicast or multicast) to add to the address table. Packets with this destination address received in the specified VLAN are forwarded to the specified interface.
ethernet
Specifies an Ethernet interface.
slot
Specifies a valid slot number. The slot must be 0 for devices that do not support line cards.
port
Specifies a valid port number.
logical-interface logical-interface
Specifies a logical interface. Logical interfaces are the attachment circuit end-points bound to a bridge domain.
port-channel number
Specifies the port-channel number. Valid values range from 1 through 63.
vlan vlan-id
Specifies an active VLAN. Values range from 1 through 4090.

Modes

Global configuration mode

Usage Guidelines

The vlan keyword is mandatory because the switch only supports independent VLAN learning (IVL).

To delete a static MAC address for forwarding to a physical interface, use the no mac-address-table static mac-addr forward ethernet slot/port vlan vlan-id option.

To delete a static MAC address for forwarding to a logical interface, use the no mac-address-table static mac-addr forward logical-interface ethernet logical-interface vlan vlan-id option.

To delete a static MAC address for forwarding to a port-channel interface, use the no mac-address-table static mac-addr forward port-channel port-channel-number vlan option.

Examples

The following example adds a static address to the MAC address table, with forwarding to a physical interface.

device# configure terminal
device(config)# mac-address-table static 0011.2222.3333 forward ethernet 0/1 vlan 100 

The following example adds a static address to the MAC address table, with forwarding to a logical interface.

device# configure terminal
device(config)#mac-address-table static 0000.1111.2222 forward logical-interface ethernet 0/43.100

The following example deletes a static MAC address forwarding on a physical interface.

device# configure terminal
device(config)# no mac-address-table static aaaa.bbbb.cccc forward ethernet 0/1 vlan 10