Mac Address Table Configuration Example - HP A6600 Configuration Manual

Layer 2 - lan switching
Hide thumbs Also See for A6600:
Table of Contents

Advertisement

To do...
Display the aging timer for
dynamic MAC address
entries
Display the system or
interface MAC address
learning state
Display MAC address
statistics

MAC address table configuration example

Network requirements
As shown in
The MAC address of Host A is 000f-e235-dc71 and belongs to VLAN 1. It is connected to
GigabitEthernet 4/0/1 of the router. To prevent MAC address spoofing, add a static entry into the
MAC address table of the router for the host.
The MAC address of Host B is 000f-e235-abcd and belongs to VLAN 1. Because this host once
behaved suspiciously on the network, you can add a blackhole MAC address entry for the MAC
address to drop all packets destined for the host.
Set the aging timer for dynamic MAC address entries to 500 seconds.
Figure 1 Network diagram for MAC address table configuration
Configuration procedure
# Add a static MAC address entry.
<Router> system-view
[Router] mac-address static 000f-e235-dc71 interface gigabitethernet 4/0/1 vlan 1
# Add a blackhole MAC address entry.
[Router] mac-address blackhole 000f-e235-abcd vlan 1
# Set the aging timer for dynamic MAC address entries to 500 seconds.
[Router] mac-address timer aging 500
Use the command...
display mac-address aging-time [ | { begin |
exclude | include } regular-expression ]
display mac-address mac-learning [ interface-type
interface-number ] [ | { begin | exclude | include }
regular-expression ]
display mac-address statistics [ | { begin | exclude
| include } regular-expression ]
Figure
1:
6
Remarks
Available in any view
Available in any view
Available in any view

Advertisement

Table of Contents
loading

Table of Contents