Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Huawei Topology-- case implementation and thinking of small companies

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

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. "

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report