Figure 6 An example for the display mac-address nickname command
MAC address table configuration example
Network requirements
On a network:
Host A at MAC address 000f-e235-dc71 is connected to interface Ten-GigabitEthernet 1/1/5 of
•
Device and belongs to VLAN 1.
Host B at MAC address 000f-e235-abcd), which once behaved suspiciously on the network, also
•
belongs to VLAN 1.
Configure the MAC address table as follows:
To prevent MAC address spoofing, add a static entry for Host A in the MAC address table of
•
Device.
To drop all frames destined for Host B, add a blackhole MAC address entry for the host.
•
Set the aging timer for dynamic MAC address entries to 500 seconds.
•
Configuration procedure
# Add a static MAC address entry for MAC address 000f-e235-dc71 on Ten-GigabitEthernet 1/1/5 that
belongs to VLAN 1.
<Device> system-view
[Device] mac-address static 000f-e235-dc71 interface ten-gigabitethernet 1/1/5 vlan 1
# Add a blackhole MAC address entry for MAC address 000f-e235-abcd that belongs to VLAN 1.
[Device] mac-address blackhole 000f-e235-abcd vlan 1
# Set the aging timer for dynamic MAC address entries to 500 seconds.
[Device] mac-address timer aging 500
31