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

3
Step Command Remarks
2. Add or modify a
dynamic or static
MAC address entry.
mac-address { dynamic | static } mac-address
interface interface-type interface-number vlan vlan-id
By default, no MAC
address entry is
configured.
Make sure you have
created the VLAN and
assigned the interface to
the VLAN.
Adding or modifying a static or dynamic MAC address table
entry in interface view
Step Command Remarks
1. Enter system view.
system-view N/A
2. Enter Layer 2 Ethernet or
aggregate interface view.
interface interface-type
interface-number
N/A
3. Add or modify a static or
dynamic MAC address entry.
mac-address { dynamic | static }
mac-address vlan vlan-id
By default, no MAC address entry
is configured.
Make sure you have created the
VLAN and assigned the interface
to the VLAN.
Configuring a blackhole MAC address entry
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Add or modify a
blackhole MAC
address entry.
mac-address blackhole mac-address vlan vlan-id
By default, no MAC
address entry is
configured.
Disabling MAC address learning
Sometimes, you might need to disable MAC address learning to prevent the MAC address table from
being saturated, for example, when your device is being attacked by a large volume of packets with
different source MAC addresses.
You can disable MAC address learning globally, on a per-port basis, or on a per-VLAN basis.
If no static entries are configured, the learned MAC addresses are removed 5 minutes later after MAC
address learning is disabled.