User Guide
134
Managing MAC Address Table
MAC Address Configurations
Step 3
end
Return to privileged EXEC mode.
Step 4
copy running-config startup-config
Save the settings in the configuration file.
Note:
•
In the same VLAN, once an address is configured as a static address, it cannot be set as a
filtering address, and vice versa.
•
Multicast or broadcast addresses cannot be set as static addresses.
•
Ports in LAGs (Link Aggregation Group) are not supported for static address configuration.
The following example shows how to add a static MAC address entry with MAC address
00:02:58:4f:6c:23, VLAN 10 and port 1. When a packet is received in VLAN 10 with this
address as its destination, the packet will be forwarded only to port 1/0/1.
Switch#configure
Switch(config)# mac address-table static
00:02:58:4f:6c:23
vid
10
interface
gigabitEthernet
1/0/1
Switch(config)#show mac address-table static
MAC Address Table
----------------------------------------------------------------------------
MAC VLAN Port
Type Aging
----------------- ------ -------- -----------
---------
00:02:58:4f:6c:23 10 Gi1/0/1
config static no-aging
Total MAC Addresses for this criterion: 1
Switch(config)#end
Switch#copy running-config startup-config
2.2.2 Modifying the Aging Time of Dynamic Address Entries
Follow these steps to modify the aging time of dynamic address entries:
Step 1
configure
Enter global configuration mode.
Downloaded from