[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 Ethernet1/0/1 to VLAN 11 and Ethernet1/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 Ethernet1/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
#
sysname RouterA
#
vlan batch 11 to 12
#
bridge 1
#
interface Ethernet1/0/0
bridge 1
bridge vlan-transmit enable
#
interface Ethernet2/0/0
bridge 1
bridge vlan-transmit enable
Huawei AR530&AR550 Series Industrial Switch Routers
Configuration Guide - Ethernet Switching
9 Transparent Bridging Configuration
Issue 01 (2014-11-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
393