R3303-HP HSR6800 Routers Layer 2 - LAN Switching Configuration Guide

6
Step Command Remarks
3. Configure the MAC learning
limit on the interface or port
group.
mac-address max-mac-count
count
By default, the MAC learning limit
on an interface is not configured.
Displaying and maintaining MAC address tables
Task Command Remarks
Display MAC address table
information.
display mac-address [ mac-address [ vlan vlan-id ] |
[ [ dynamic | static ] [ interface interface-type
interface-number ] | blackhole ] [ vlan vlan-id ]
[ count ] ] [ | { begin | exclude | include }
regular-expression ]
Available in any
view.
Display the aging timer for
dynamic MAC address
entries.
display mac-address aging-time [ | { begin |
exclude | include } regular-expression ]
Available in any
view.
Display the system or interface
MAC address learning state.
display mac-address mac-learning [ interface-type
interface-number ] [ | { begin | exclude | include }
regular-expression ]
Available in any
view.
Display MAC address
statistics.
display mac-address statistics [ | { begin | exclude |
include } regular-expression ]
Available in any
view.
MAC address table configuration example
Network requirements
As shown in Figure 1:
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 device. To prevent MAC address spoofing, add a static entry for the
host in the MAC address table of the device.
The MAC address of Host B is 000f-e235-abcd and belongs to VLAN 1. For security, because this
host once behaved suspiciously on the network, add a destination blackhole MAC address entry for
the host MAC address, so all packets destined for the host are dropped.
Set the aging timer for dynamic MAC address entries to 500 seconds.