Friday, April 1, 2011

Manually Configured (Static) MAC Address

A static address for a device can be restricted to a specific port, with a specific VLAN. A static address will not be removed from the MAC address table when an interface link is down – it is bound to the assigned interface and non-movable. 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 (dynamically) learnt on another port until it is being removed from the running-config.

The syntax for configuring a static MAC address is
mac-address-table static {mac-addr} vlan {vlan-id} interface {intf-type intf-num}
mac-address-table static {mac-addr} {intf-type intf-num} vlan {vlan-id} (Cisco IOS Release 12.0)

The example below configures a static MAC entry for the NIC with 1111.1111.1111. Connection of the NIC to interfaces other than Fa0/1 will have connectivity but no accessibility.
Switch(config)#mac-address-table static 1111.1111.1111 vlan 1 int Fa0/1

No comments:

Post a Comment