R211x-HP Flexfabric 11900 Layer 2 - LAN Switching Command Reference

73
Examples
# Add a static entry for MAC address 000f-e201-0101. All frames that are destined for this MAC address
are sent out of interface Ten-GigabitEthernet 1/0/1, which belongs to VLAN 2.
<Sysname> system-view
[Sysname] mac-address static 000f-e201-0101 interface ten-gigabitethernet 1/0/1 vlan 2
# Add a multiport unicast MAC address entry for MAC address 000f-e201-0101 to send all frames
destined for this MAC address out of Ten-GigabitEthernet 1/0/1 through Ten-GigabitEthernet 1/0/3
that belong to VLAN 2.
<Sysname> system-view
[Sysname] mac-address multiport 000f-e201-0101 interface ten-gigabitethernet 1/0/1 to
ten-gigabitethernet 1/0/3 vlan 2
Related commands
display mac-address
mac-address (interface view)
mac-address mac-learning enable
Use mac-address mac-learning enable to enable MAC address learning.
Use undo mac-address mac-learning enable to disable MAC address learning.
Syntax
mac-address mac-learning enable
undo mac-address mac-learning enable
Default
MAC address learning is enabled.
Views
System view
Layer 2 Ethernet interface/Layer 2 aggregate interface view,
S-channel interface/S-channel aggregate interface view
VLAN view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
To prevent the MAC address table from becoming saturated, you can disable MAC address learning.
For example, a number of packets with different source MAC addresses reaching a device can affect the
MAC address table update. You can disable MAC address learning to avoid such attacks, but the
following guidelines apply:
You can disable MAC address learning on a per-interface basis. If you disable MAC address
learning globally, MAC address learning is disabled for all interfaces, and the device stops
learning MAC addresses and cannot dynamically update the MAC address table.