By default, MAC address learning is enabled in a VLAN.
----End
6.3.6 Checking the Configuration
Procedure
l
Run the
display mac-address
command to view information about the MAC address table.
l
Run the
display mac-address static
[
vlan
vlan-id
] command to view static MAC address
entries.
l
Run the
display mac-address dynamic
[
slot-id
] [
interface-type
interface-number
|
vlan
vlan-id
] command to view dynamic MAC address entries.
l
Run the
display mac-address blackhole
[
vlan
vlan-id
] command to view blackhole MAC
address entries.
l
Run the
display mac-address aging-time
command to view the aging time of dynamic
MAC address entries.
l
Run the
display mac-address summary
command to view the statistics about MAC
address entries.
----End
Example
Run the
display mac-address
command to view the destination MAC addresses, outbound
interface numbers, and VLAN IDs of outbound interface in all MAC address entries.
<Huawei>
display mac-address
-------------------------------------------------------------------------------
MAC Address VLAN/Bridge Learned-From Type
-------------------------------------------------------------------------------
0000-3333-3333 2/- Eth2/0/2 static
00e0-1234-5678 2/- - blackhole
-------------------------------------------------------------------------------
Total items displayed = 2
Run the
display mac-address static
command to view the destination MAC addresses,
outbound interface numbers, and VLAN IDs of outbound interface in static MAC address entries.
<Huawei>
display mac-address static
-------------------------------------------------------------------------------
MAC Address VLAN/Bridge Learned-From Type
-------------------------------------------------------------------------------
0000-3333-3333 2/- Eth2/0/2 static
-------------------------------------------------------------------------------
Total items displayed = 1
Run the
display mac-address dynamic
command to view the destination MAC addresses,
outbound interface numbers, and VLAN IDs of outbound interface in dynamic MAC address
entries.
<Huawei>
display mac-address dynamic
-------------------------------------------------------------------------------
MAC Address VLAN/Bridge Learned-From Type
-------------------------------------------------------------------------------
00e0-fc01-0005 1/- Eth2/0/1 dynamic
Huawei AR3200 Series Enterprise Routers
Configuration Guide - LAN
6 MAC Address Table Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
160