![Huawei AR3200 Series Скачать руководство пользователя страница 86](http://html.mh-extra.com/html/huawei/ar3200-series/ar3200-series_configuration-manual-lan_169302086.webp)
[Switch1]
interface ethernet 1/0/1
[Switch1-Ethernet1/0/1]
port link-type access
[Switch1-Ethernet1/0/1]
port default vlan 11
[Switch1-Ethernet1/0/1]
quit
[Switch1]
interface ethernet 1/0/2
[Switch1-Ethernet1/0/2]
port link-type access
[Switch1-Ethernet1/0/2]
port default vlan 12
[Switch1-Ethernet1/0/2]
quit
# Configure Eth 1/0/3 to allow the packets from VLAN 11 and VLAN 12 to pass through.
[Switch1]
interface ethernet 1/0/3
[Switch1-Ethernet1/0/3]
port link-type trunk
[Switch1-Ethernet1/0/3]
port trunk allow-pass vlan 11 to 12
[Switch1-Ethernet1/0/3]
quit
3.
Configure Router B.
# Create bridge group 2.
<Huawei>
system-view
[Huawei]
sysname RouterB
[RouterB-bridge2]
bridge 2
[RouterB-bridge2]
quit
# Add Ethernet1/0/0 and Ethernet2/0/0 to bridge group 2, and enable VLAN ID transparent
transmission on the two interfaces.
[RouterB]
interface ethernet 1/0/0
[RouterB-Ethernet1/0/0]
bridge 2
[RouterB-Ethernet1/0/0]
bridge vlan-transmit enable
[RouterB-Ethernet1/0/0]
quit
[RouterB]
interface ethernet 2/0/0
[RouterB-Ethernet2/0/0]
bridge 2
[RouterB-Ethernet2/0/0]
bridge vlan-transmit enable
[RouterB-Ethernet2/0/0]
quit
4.
Configure Switch 2.
# Create VLANs.
<Huawei>
system-view
[Huawei]
sysname Switch2
[Switch2]
vlan 11
[Switch2-vlan11]
quit
[Switch2]
vlan 12
[Switch2-vlan12]
quit
# Add Eth1/0/1 to VLAN 11 and Eth1/0/2 to VLAN 12.
[Switch2]
interface ethernet 1/0/1
[Switch2-Ethernet1/0/1]
port link-type access
[Switch2-Ethernet1/0/1]
port default vlan 11
[Switch2-Ethernet1/0/1]
quit
[Switch2]
interface ethernet 1/0/2
[Switch2-Ethernet1/0/2]
port link-type access
[Switch2-Ethernet1/0/2]
port default vlan 12
[Switch2-Ethernet1/0/2]
quit
# Configure Eth1/0/3 to allow the packets from VLAN 11 and VLAN 12 to pass through.
[Switch2]
interface ethernet 1/0/3
[Switch2-Ethernet1/0/3]
port link-type trunk
[Switch2-Ethernet1/0/3]
port trunk allow-pass vlan 11 to 12
[Switch2-Ethernet1/0/3]
quit
5.
Verify the configuration.
After the preceding configurations are complete, User 1 and User 3 can ping each other;
User 2 and User 4 can ping each other.
Configuration Files
Configuration file of Router A
Huawei AR3200 Series Enterprise Routers
Configuration Guide - LAN
2 Transparent Bridging Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
75