Address Table Commands
mac address-table static
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x
92
5
The following types are supported:
•
static— MAC address is manually added by the command with the
following keywords specifying its time-to-live:
-
permanent
-
delete-on-reboot
-
delete-on-timeout
A static MAC address may be added in any port mode.
•
secure—A MAC address added manually or learned in a secure mode. Use
the mac address-table static command with the secure keyword to add a
secure MAC address. The MAC address cannot be relearned. A secure
MAC address may be added only in a secure port mode.
•
dynamic—A MAC address learned by the switch in nonsecure mode. A
value of its time-to-live attribute is delete-on-timeout.
Examples
Example 1—The following example adds two permanent static MAC addresses:
switchxxxxxx(config)#
mac address-table static 00:3f:bd:45:5a:b1 vlan 1
interfaces gi1
switchxxxxxx(config)#
mac address-table static 00:3f:bd:45:5a:b2 vlan 1
interfaces gi1 permanent
Example 2—The following example adds a deleted-on-reboot static MAC
address:
switchxxxxxx(config)#
mac address-table static 00:3f:bd:45:5a:b2 vlan 1
interfaces gi1 delete-on-reboot
Example 3—The following example adds a deleted-on-timeout static MAC
address:
switchxxxxxx(config)#
mac address-table static 00:3f:bd:45:5a:b2 vlan 1
interfaces gi1 delete-on-timeout