Mac-Address (System View) - HP 12500 Series Command Reference Manual

Routing, layer 2 - lan switching
Table of Contents

Advertisement

to the interface. Because manually configured entries have higher priority than dynamically learned
entries, using manually configured entries prevents hackers from using forged MAC addresses to
steal data.
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 address 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 on GigabitEthernet 3/0/1 that belongs to
VLAN 2.
<Sysname> system-view
[Sysname] interface GigabitEthernet 3/0/1
[Sysname-GigabitEthernet3/0/1] mac-address static 000f-e201-0101 vlan 2
# Add a static entry for MAC address 000f-e201-0101 on Layer 2 aggregate interface
Bridge-Aggregation 1 that belongs to VLAN 1.
<Sysname> system-view
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] mac-address static 000f-e201-0102 vlan 1
# Add a multiport unicast MAC address entry for MAC address 0001-0001-0101 on GigabitEthernet
3/0/1 and GigabitEthernet 3/0/2 that belong to VLAN 10.
<Sysname> system-view
[Sysname] interface GigabitEthernet 3/0/1
[Sysname-GigabitEthernet3/0/1] mac-address multiport 0001-0001-0101 vlan 10
[Sysname-GigabitEthernet3/0/1] quit
[Sysname] interface GigabitEthernet 3/0/2
[Sysname-GigabitEthernet3/0/2] mac-address multiport 0001-0001-0101 vlan 10
Related commands
display mac-address

mac-address (system view)

mac-address (system view)
Use mac-address to add or modify a MAC address entry.
Use undo mac-address to delete one or all MAC address entries.
Syntax
mac-address { dynamic | static } mac-address interface interface-type interface-number vlan vlan-id
mac-address blackhole mac-address vlan vlan-id
mac-address multiport mac-address interface interface-list vlan vlan-id
5

Advertisement

Table of Contents
loading

Table of Contents