Get the App
SLTechnology News&Howtos  ›  Servers  › 

Layer 3 switch realizes communication between different vlan (Huawei)

Shulou Source: shulou.com Published: 2022-06-02 23:59:03 10月04日 Update

1. Experiment name: Huawei layer 3 switch realizes communication between different vlan

Experimental purpose: to realize communication with pc1/pc2/pc3

Lab Topology:

2, configure layer 3 switch

System-view

[huawei] sysname gateway

[gateway] vlan batch 10 20 30

[gateway] interface vlanif 10

[gateway-Vlanif10] undo shutdown

[gateway-Vlanif10] ip address 192.168.10.254 255.255.255.0

[gateway-Vlanif10] quit

[gateway] interface vlanif 20

[gateway-Vlanif20] undo shutdown

[gateway-Vlanif20] ip address 192.168.20.254 255.255.255.0

[gateway-Vlanif20] quit

[gateway] interface vlanif30

[gateway-Vlanif30] undo shutdown

[gateway-Vlanif30] ip address 192.168.30.254 255.255.255.0

[gateway-Vlanif30] quit

[gateway]

[gateway] interface GigabitEthernet 0/0/1

[gateway-GigabitEthernet0/0/1] port link-type access

[gateway-GigabitEthernet0/0/1] port default vlan 10

[gateway-GigabitEthernet0/0/1] quit

[gateway] interface GigabitEthernet 0/0/2

[gateway-GigabitEthernet0/0/2] port link-type access

[gateway-GigabitEthernet0/0/2] port default vlan 20

[gateway-GigabitEthernet0/0/2] quit

[gateway] interface GigabitEthernet 0/0/3

[gateway-GigabitEthernet0/0/1] port link-type access

[gateway-GigabitEthernet0/0/1] port default vlan 30

[gateway-GigabitEthernet0/0/1] quit

3, verification and testing

4. Summary of the experiment:

Configuration ideas for layer 3 switches:

1.vlan needs to configure gateway

two。 Create vlan on layer 3 switch

3. Create a corresponding virtual vlan (SVI) for each vlan

4. Configure each vlan with an IP address

5. Configure dynamic or static routes for layer 3 switches

Experimental conclusion: Huawei layer 3 switch can realize different vlan communication by creating virtual vlan, that is, realizing the function of vlan routing.

Tags: Switch experiment configuration communication routing different Huawei function dynamic can pass name address idea topology purpose conclusion gateway static test verification Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Redmi vpn Microsoft Apple