R2511-HP MSR Router Series Layer 2 - LAN Switching Configuration Guide(V5)
3
Adding or modifying a static or dynamic MAC address entry in
interface view
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.
Make sure you have created the
VLAN and assigned the interface
to the VLAN.
Configuring a destination blackhole MAC address
entry
Step Command Remarks
1. Enter system view.
system-view N/A
2. Add or modify a
destination blackhole
MAC address entry.
mac-address blackhole mac-address vlan vlan-id
By default, no MAC
address entry is
configured.
Make sure you have
created the VLAN.
Disabling MAC address learning on ports
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 on a single port, or on all ports in a port group.
To disable MAC address learning on an interface or a port group:
Step Command Remarks
1. Enter system view.
system-view N/A
2. Enter interface view or port
group view.
• Enter Layer 2 Ethernet interface
view:
interface interface-type
interface-number
• Enter port group view:
port-group manual
port-group-name
Use either command.
Settings in interface view take
effect only on the current interface.
Settings in port group view take
effect on all member ports in the
port group.
For more information about port
groups, see "Configuring Ethernet
interfaces."










