Ping any host in Department 4 from a host in Department 3. The ping operation is successful,
indicating that Department 3 and Department 4 can communicate with each other.
----End
Configuration Files
Configuration file of the Router
#
vlan batch 2 to 3
#
interface Ethernet2/0/1
port link-type trunk
port trunk allow-pass vlan 2
#
interface Ethernet2/0/2
port link-type trunk
port trunk allow-pass vlan 2
#
interface Ethernet2/0/3
port link-type trunk
port trunk allow-pass vlan 3
#
interface Ethernet2/0/4
port link-type trunk
port trunk allow-pass vlan 3
#
return
3.7.2 Example for Configuring Communication Between VLANs
Using VLANIF Interfaces
Networking Requirements
, Ethernet 2/0/1 of the Router is connected to the uplink interface of
SwitchA.
On SwitchA, the downlink interface Ethernet 2/0/1 is added to VLAN 10 and the downlink
interface Ethernet 2/0/2 is added to VLAN 20.
PC1 in VLAN 10 and PC2 in VLAN 20 need to communicate with each other.
Figure 3-21
Network diagram for communication between VLANs through VLANIF interfaces
SwitchA
Router
Eth2/0/1
Eth2/0/3
VLAN 10
VLAN 20
Eth2/0/1
Eth2/0/2
PC1
PC2
10.10.10.2/24
10.10.20.2/24
Huawei AR530&AR550 Series Industrial Switch Routers
Configuration Guide - Ethernet Switching
3 VLAN Configuration
Issue 01 (2014-11-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
106