01-06 Common MAC Address Operations
01-06 Common MAC Address Operations
01-06 Common MAC Address Operations
Series Switches
Common Operation Guide 6 Common MAC Address Operations
-------------------------------------------------------------------------------
Total items displayed = 4
Related Content
Videos
-------------------------------------------------------------------------------
Total items displayed = 2
-------------------------------------------------------------------------------
Total items displayed = 2
l The MAC address of a Layer 2 interface and the device's MAC address are the same.
Run the display interface gigabitethernet1/0/1 command. In the command output,
00e0-f74b-6d00 refers to the device's MAC address.
<HUAWEI> display interface gigabitethernet1/0/1
GigabitEthernet1/0/1 current state :
UP
Line protocol current state :
UP
Description:
l In V200R002 and later versions, run the display bridge mac-address command to
check the device's MAC address.
<HUAWEI> display bridge mac-address
System bridge MAC address: 00e0-f74b-6d00
For example, obtain the MAC address of the device based on the IP address of
192.168.150.20.
<HUAWEI> display arp | include 192.168.150.20
IP ADDRESS MAC ADDRESS EXPIRE(M) TYPE INTERFACE VPN-
INSTANCE
VLAN/
CEVLAN
------------------------------------------------------------------------------
------------------------------------------------------------------------------
NOTE
l If the entry is empty, the MAC address of the device cannot be obtained based on the IP address.
l If the parameter following include specifies the MAC address, the IP address of the device can be
obtained based on the MAC address.
l The command output on your device may differ from that provided in this example.
NOTE
The interface bound to the MAC address must belong to the specified VLAN and the VLAN must have
been created.
l In the system view, configure the MAC address of 0000-0012-0035 as the blackhole
MAC address in VLAN 10.
<HUAWEI> system-view
[HUAWEI] mac-address blackhole 0000-0012-0035 vlan 10
# In any view, run the display mac-address aging-time command to view the aging time of
dynamic MAC addresses.
# Set the maximum number of MAC addresses that can be learned by the GE1/0/1 to 5.
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] port-security enable
[HUAWEI-GigabitEthernet1/0/1] port-security max-mac-num 5
NOTE
Before setting the maximum number of MAC addresses that can be learned by an interface, ensure that
the interface has been enabled with port security.