Get the App
SLTechnology News&Howtos  ›  Servers  › 

Huawei Topology-- case implementation and thinking of small companies

Shulou Source: shulou.com Published: 2022-06-03 00:05:36 10月01日 Update

Topology Diagram:

Requirements: PC4 and PC5 cannot be connected, and the rest of the network is interconnected.

Idea: switches create their own vlan

The two PCs connected to switch 1 are access

The four PCs connected to switch 2 are hybrid

Configure router-on-a-stick and default route on two router

Configuration:

Manually set the IP, gateway and subnet mask for five PCs.

LSW1:

[Huawei] sysname SW1 # change the device name to SW1

[SW1] vlan batch 10 20 # create vlan10 and vlan20

[SW1] interface GigabitEthernet 0ram 0ram 1 # enters the port

[SW1-GigabitEthernet0/0/1] port link-type access # port mode is access

[SW1-GigabitEthernet0/0/1] port default vlan10 # added to vlan10

[SW1-GigabitEthernet0/0/1] quit # returns

[SW1] interface GigabitEthernet 0ram 0ram 2 # enters the port

[SW1-GigabitEthernet0/0/2] port link-type access # port mode is access

[SW1-GigabitEthernet0/0/2] port default vlan20 # added to vlan20

[SW1-GigabitEthernet0/0/2] quit # returns

[SW1] int gi0/0/3 # enters the port

[SW1-GigabitEthernet0/0/3] port link-type trunk # port mode is trunk

[SW1-GigabitEthernet0/0/3] port trunk allow-pass vlan 10 20 30 40 50 60 # allow vlan to pass

[SW1-GigabitEthernet0/0/1] quit # returns

LSW2:

[Huawei] sysname SW2 # change the device name to SW2

[SW2] vlan batch 30 40 50 60 # create vlan

[SW2] int gi0/0/1 # enters the port

[SW2-GigabitEthernet0/0/1] port hybrid pvid vlan 30 # carry label

[SW2-GigabitEthernet0/0/1] port hybrid untagged vlan 10 20 30 40 50 60 # remove the tag

[SW2-GigabitEthernet0/0/1] quit # returns

[SW2] int gi0/0/2 # enters the port

[SW2-GigabitEthernet0/0/2] port hybrid pvid vlan 40 # carry label

[SW2-GigabitEthernet0/0/2] port hybrid untagged vlan 10 20 30 40 60 # remove the tag

[SW2-GigabitEthernet0/0/2] quit # returns

[SW2] int gi0/0/3 # enters the port

[SW2-GigabitEthernet0/0/3] port hybrid pvid vlan 50 # carry label

[SW2-GigabitEthernet0/0/3] port hybrid untagged vlan 10 20 30 50 60 # remove the tag

[SW2-GigabitEthernet0/0/3] quit # returns

[SW2] int gi0/0/4 # enters the port

[SW2-GigabitEthernet0/0/4] port hybrid pvid vlan 60 # carry label

[SW2-GigabitEthernet0/0/4] port hybrid untagged vlan 10 20 30 40 50 60 # remove the tag

[SW2-GigabitEthernet0/0/4] quit # returns

[SW2] int gi0/0/5 # enters the port

[SW2-GigabitEthernet0/0/5] port link-type trunk # port mode is trunk

[SW2-GigabitEthernet0/0/5] port trunk allow-pass vlan 10 20 30 40 50 60 # allow vlan to pass

[SW2-GigabitEthernet0/0/5] quit # returns

AR1:

AR2:

Test verification:

PC1== > PC2

PC1== > PC4

PC1== > PC6

Beginners on the road, please give us a lot of advice. "

Tags: Port label mode switch route name device configuration idea topology whole network single arm god manual topology map novice novice on the road gateway router demand Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Huawei MariaDB Shulou Information Shulou Technology