Command Manual - System Management
Quidway S6500 Series Ethernet Switches Chapter 2 MAC Address Table Management Commands
Huawei Technologies Proprietary
2-3
Description
Using display mac-address command, you can view MAC address table information.
When managing the Layer-2 addresses of the switch, the administrator can Perform
this command to view such information as the Layer-2 address table, address status
(static or dynamic), Ethernet port of the MAC address, VLAN of the address, and
system address aging time.
For the related commands, see mac-address, mac-address timer.
Example
# Show the information of the MAC address table.
[Quidway] display mac-address
MAC ADDR VLAN ID STATE PORT INDEX AGING TIME(s)
0100-0001-0002 1 Config static GigabitEthernet2/0/1 N/A
0000-0251-5500 212 Learned GigabitEthernet1/0/2 255
000f-1f9c-0adf 212 Learned GigabitEthernet1/0/2 180
0001-0001-0001 1 Config static GigabitEthernet2/0/2 NOAGED
00e0-fc35-8962 213 Learned GigabitEthernet2/0/13 AGING
2.1.4 mac-address
Syntax
mac-address { static | dynamic } mac-addr interface { interface-name | interface-type
interface-num } vlan vlan-id
undo mac-address [ static | dynamic ] [ [ mac-addr ] interface {interface-name |
interface-type interface-num } vlan vlan-id ]
View
System view
Parameter
static: Static table entry, lost after resetting switch.
dynamic: Dynamic table entry, which will be aged.
mac-addr: Specify the MAC address.
interface-type: interface type;
interface-num: interface number;
interface-name: interface name;
vlan-id: Specify the VLAN ID.