Mac-Address Mac-Learning Enable - HP 12500 Series Command Reference Manual

Routing, layer 2 - lan switching
Table of Contents

Advertisement

adds a MAC address entry. When you execute the command again with the same MAC address and
VLAN but with different interfaces, this command adds the specified interfaces for this entry.
A static or blackhole MAC address entry can overwrite a dynamic MAC address entry, but not vice
versa.
If you execute the undo mac-address command without specifying any parameters, this command
deletes all unicast MAC address entries and static multicast MAC address entries.
You can delete all the MAC address entries (including unicast MAC address entries and static
multicast MAC address entries) of a specified VLAN, or you can delete only a specific type (dynamic,
static, blackhole, or multiport unicast) of MAC address entries. You can single out certain interfaces
and delete the corresponding unicast MAC address entries, but not the corresponding static
multicast MAC address entries.
The MAC address entries configuration cannot survive a reboot unless you save it. The dynamic
MAC address entries, however, are lost upon reboot regardless of whether you save the
configuration.
In IRF mode, to avoid conflict, the MAC address specified in the mac-address multiport command
for a multiport unicast MAC address entry cannot be the same with that specified in the ipv6
neighbor command for a static neighbor entry. For more information about static neighbor entry,
see Layer 3—IP Services Configuration Guide.
The multiport unicast MAC entries on an Ethernet interface may not take effect after the Ethernet
interface joins an aggregate group. Therefore, HP recommends configuring multiport unicast MAC
address entries on aggregate interfaces in Layer 2 aggregate interface view.
Examples
# Add a static entry for MAC address 000f-e201-0101. All frames that are destined for this MAC
address are sent out of GigabitEthernet 3/0/1 that belongs to VLAN 2.
<Sysname> system-view
[Sysname] mac-address static 000f-e201-0101 interface GigabitEthernet 3/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 GigabitEthernet 3/0/1 through GigabitEthernet 3/0/3 that
belong to VLAN 10.
<Sysname> system-view
[Sysname] mac-address multiport 000f-e201-0101 interface GigabitEthernet 3/0/1 to
GigabitEthernet 3/0/3 vlan 10
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. Depending on the view
that you entered, you can enable it on an interface or on a VLAN.
Use undo mac-address mac-learning enable to disable MAC address learning. Depending on the
view that you entered, you can disable it on an interface or on a VLAN.
Syntax
mac-address mac-learning enable
7

Advertisement

Table of Contents
loading

Table of Contents