3.
Configure GVRP on all switche devices of company B and set the registration mode to
fixed for the interfaces connecting to company A to allow only the VLAN to which
company B belongs to pass.
Procedure
Step 1
Create VLAN 101 to VLAN 200 on RouterA.
<RouterA>
system-view
[RouterA]
vlan batch 101 to 200
Step 2
Configure GVRP on Router A.
# Enable GVRP globally.
[RouterA]
gvrp
# Set the link type of Eth 2/0/1 and Eth 2/0/2 to trunk, and configure the interfaces to allow all
VLANs to pass through.
[RouterA]
interface ethernet 2/0/1
[RouterA-Ethernet2/0/1]
port link-type trunk
[RouterA-Ethernet2/0/1]
port trunk allow-pass vlan all
[RouterA-Ethernet2/0/1]
quit
[RouterA]
interface ethernet 2/0/2
[RouterA-Ethernet2/0/2]
port link-type trunk
[RouterA-Ethernet2/0/2]
port trunk allow-pass vlan all
[RouterA-Ethernet2/0/2]
quit
# Enable GVRP on the interfaces and set the registration modes for the interfaces.
[RouterA]
interface ethernet 2/0/1
[RouterA-Ethernet2/0/1]
gvrp
[RouterA-Ethernet2/0/1]
gvrp registration normal
[RouterA-Ethernet2/0/1]
quit
[RouterA]
interface ethernet 2/0/2
[RouterA-Ethernet2/0/2]
gvrp
[RouterA-Ethernet2/0/2]
gvrp registration normal
[RouterA-Ethernet2/0/2]
quit
The configuration of RouterB is similar to that of RouterA.
Step 3
Configure RouterC.
# Create VLAN 101 to VLAN 200.
<RouterC>
system-view
[RouterC]
vlan batch 101 to 200
# Enable GVRP globally.
[RouterC]
gvrp
# Set the link type of Eth 2/0/1 and Eth 2/0/2 to trunk, and configure the interfaces to allow all
VLANs to pass through.
[RouterC]
interface ethernet 2/0/1
[RouterC-Ethernet2/0/1]
port link-type trunk
[RouterC-Ethernet2/0/1]
port trunk allow-pass vlan all
[RouterC-Ethernet2/0/1]
quit
[RouterC]
interface ethernet 2/0/2
[RouterC-Ethernet2/0/2]
port link-type trunk
[RouterC-Ethernet2/0/2]
port trunk allow-pass vlan all
[RouterC-Ethernet2/0/2]
quit
# Enable GVRP on the interfaces and set the registration modes for the interfaces.
Huawei AR530&AR550 Series Industrial Switch Routers
Configuration Guide - Ethernet Switching
5 GVRP Configuration
Issue 01 (2014-11-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
158