R3303-HP HSR6800 Routers Layer 2 - LAN Switching Configuration Guide
4
Disabling global MAC address learning
Disabling global MAC address learning disables the learning function on all ports.
To disable global MAC address learning:
Step Command Remarks
1. Enter system view.
system-view N/A
2. Disable global MAC address
learning.
mac-address mac-learning disable
By default, global MAC address
learning is enabled.
Disabling MAC address learning on ports
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 or
aggregate 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."
3. Disable MAC address
learning.
mac-address mac-learning disable
By default, MAC address learning
is enabled on each port.
Disabling MAC address learning on a VLAN
Step Command Remarks
1. Enter system view.
system-view N/A
2. Enter VLAN view.
vlan vlan-id N/A
3. Disable MAC address
learning on the VLAN.
mac-address mac-learning disable
By default, MAC address learning
is enabled on each VLAN.