HP MSR2000/3000/4000 Router Series Layer 2 - LAN Switching Configuration Guide

3
Step Command Remarks
2. Add or modify a
static or dynamic
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 globally.
Make sure you have created
the VLAN and assigned the
interface to the VLAN.
To adding or modifying a static or dynamic MAC address entry on an interface:
Step Command Remarks
1. Enter system view.
system-view N/A
2. Enter Layer 2 Ethernet
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 on an interface.
Make sure you have created the
VLAN and assigned the interface
to the VLAN.
Adding or modifying 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 blackhole MAC
address entry is configured.
Make sure you have created the
VLAN.
Disabling MAC address learning on an interface
MAC address learning is enabled by default. To prevent the MAC address table from being saturated
when the device is experiencing attacks, disable MAC address learning. For example, you can disable
MAC address learning to prevent the device from being attacked by a large amount of frames with
different source MAC addresses.
When MAC address learning is disabled, the dynamic MAC addresses remain valid until they age out.
With global MAC address learning enabled, you can disable MAC address learning on a single
interface.
To disable MAC address learning on an interface:
Step Command Remarks
1. Enter system view.
system-view N/A