EasyManua.ls Logo

Huawei AR3200 Series - Page 185

Huawei AR3200 Series
275 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Procedure
Step 1 Add static MAC address entries.
# Create VLAN 2 and add Ethernet2/0/1 and Ethernet2/0/2 to VLAN 2.
<Huawei> system-view
[Huawei] vlan 2
[Huawei-vlan2] quit
[Huawei] interface ethernet 2/0/1
[Huawei-Ethernet2/0/1] port hybrid tagged vlan 2
[Huawei-Ethernet2/0/1] quit
[Huawei] interface ethernet 2/0/2
[Huawei-Ethernet2/0/2] port hybrid pvid vlan 2
[Huawei-Ethernet2/0/2] port hybrid untagged vlan 2
[Huawei-Ethernet2/0/2] quit
# Configure static MAC address entries.
[Huawei] mac-address static 0002-0002-0002 ethernet 2/0/1 vlan 2
[Huawei] mac-address static 0003-0003-0003 ethernet 2/0/1 vlan 2
[Huawei] mac-address static 0004-0004-0004 ethernet 2/0/2 vlan 2
Step 2 Set the aging time for the dynamic MAC address entries.
[Huawei] mac-address aging-time 500
Step 3 Verify the configuration.
# Run the display mac-address command in any view to check whether the static MAC address
entries are successfully added to the MAC address table.
[Huawei] display mac-address static vlan 2
-------------------------------------------------------------------------------
MAC Address VLAN/Bridge Learned-From Type
-------------------------------------------------------------------------------
0002-0002-0002 2/- Eth2/0/1 static
0003-0003-0003 2/- Eth2/0/1 static
0004-0004-0004 2/- Eth2/0/2 static
-------------------------------------------------------------------------------
Total items displayed = 3
# Run the display mac-address aging-time command to check whether the aging time for
dynamic entries is set successfully.
[Huawei] display mac-address aging-time
Aging time: 500 seconds
----End
Configuration Files
Configuration file of the Router
#
vlan batch 2
#
mac-address aging-time 500
#
interface Ethernet2/0/1
port hybrid tagged vlan 2
#
interface Ethernet2/0/2
port hybrid pvid vlan 2
port hybrid untagged vlan 2
#
mac-address static 0002-0002-0002 Ethernet2/0/1 vlan 2
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.
174

Table of Contents

Related product manuals