Managing MAC Address Table
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 filter-
•
ing 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.
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
-----------------
00:02:58:4f:6c:23
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.
VLAN
Port
------
--------
10
Gi1/0/1
Type
Aging
-----------
---------
config static
no-aging
Address Configurations
Configuration Guide
138