Support

Realize Communication Between VLANs through Huawei Layer 3 Switch

1. Case background

A VLAN divides the logical physical LAN into multiple broadcast domains, so that the same VLAN device can communicate, and different VLAN cannot communicate. However, in practice, communication between different VLANs must be implemented in medium and large local area networks. To communicate between different VLANs, can use router on a stack, but it has some restrictions, such as bandwidth, forward rate etc.

Based on Huawei layer 2 switch, Huawei layer 3 switch increased routing function, so you can use VLANIF, this interface is in the network layer, and can configure IP address. With the help of VLANIF interface, Huawei layer 3 switch can realize routing forwarding function.

2. Experiment topology and address planning

address coding.png

PC_1 and PC_2 are in the VLAN 10, PC_3 is in the VLAN 30. See the above figure for detailed address coding.

 

3. The experimental steps

3.1. According to the plan, make each port included the planning vlan.

#
vlan batch 10 30
#
interface GigabitEthernet0/0/1
port link-type access
port default vlan 10
#
interface GigabitEthernet0/0/2
port link-type access
port default vlan 10
#
interface GigabitEthernet0/0/3
port link-type access
port default vlan 30
#

3.2. Test the connectivity between PCs

ping1.png

From the PC_1 ping test on PC_2 and PC_3, PC_2 can access, but PC_3 cannot access.

3.3. Add the VLANIP port address

#
interface Vlanif10
ip address 172.17.10.254 255.255.255.0
#
interface Vlanif30
ip address 172.17.30.254 255.255.255.0
#

Set the IP address in the VLANIF interface, and make this address as the gateway address to access the PC.

3.4. Test the connectivity between PCs

ping2.png

From PC_1 ping test on PC_2 and PC_3. As you can see from the image above, the link can be successfully accessed.

So far, communication between different VLANs has been achieved by using VLANIF interface, and make the data forwarding between each segment of the LAN through Huawei layer 3 switch, reduced the load on the router. If any question, please feel free to contact: supports@thunder-link.com

Related Posts