Mac-Address Mac-Learning Priority - HP FlexNetwork 5130 HI series Command Reference Manual

Layer 2 - lan switching
Table of Contents

Advertisement

<Sysname> system-view
[Sysname] undo mac-address mac-learning enable
# Disable MAC address learning for VLAN 10.
<Sysname> system-view
[Sysname] vlan 10
[Sysname-vlan10] undo mac-address mac-learning enable
# Disable MAC address learning on interface GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] undo mac-address mac-learning enable
# Disable MAC address learning on interface Bridge-Aggregation 1.
<Sysname> system-view
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] undo mac-address mac-learning enable
Related commands
display mac-address mac-learning

mac-address mac-learning priority

Use mac-address mac-learning priority to assign MAC learning priority to an interface.
Use undo mac-address mac-learning priority to restore the default.
Syntax
mac-address mac-learning priority { high | low }
undo mac-address mac-learning priority
Default
Low MAC address learning priority is used.
Views
Layer 2 Ethernet interface view, Layer 2 aggregate interface view
Predefined user roles
network-admin
Parameters
high: Assigns high MAC learning priority.
low: Assigns low MAC learning priority.
Usage guidelines
The MAC address learning priority values can be high and low. An interface with high MAC address
learning priority can learn any MAC address. An interface with low MAC address learning priority can
learn only the MAC addresses that have not been learned by high-priority interfaces.
The MAC learning priority mechanism can help defend your network against MAC address spoofing
attacks. To prevent the downlink interface from learning the MAC address of an upper layer device
(for example, the gateway), you can perform the following tasks:
Assign high MAC learning priority to an uplink interface.
Assign low MAC learning priority to a downlink interface .
65

Advertisement

Table of Contents
loading

Table of Contents