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

Application of Huawei hybrid

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Experiment name: application of Huawei hybrid

Experimental topography:

3. Purpose: 1. Vlan10 can communicate with each other internally.

2. Vlan20 can communicate with each other internally

3. Vlan10 cannot access vlan20

4. Vlan20 can visit 192.168.20.88

4. Configuration idea: Prime Minister, this topology diagram is a loop with blocked ports. You need to see which port is blocked and how the traffic is going, or set your own root switch to let the traffic go according to the route you set, and then configure hybrid to make vlan10,vlan20 interconnect with each other, and vlan20 can access client: 192.168.20.88.

5. Configuration steps:

# first configure the ip address of each pc:

# configure ip addresses of pc8, pc9, pc10 and pc20

# configuration on ip address 192.168.10.1 255.255.255.0 / / pc8

Configuration on ip address 192.168.20.1 255.255.255.0 / / pc9

Configuration of ip address 192.168.10.2 255.255.255.0 / / pc10

Ip address of ip address 192.168.20.2 255.255.255.0 / / pc20

# configure the Ip address of client

# ip address 192.168.20.88 255.255.255.0 /'/ client1 configuration

# check blocked ports to see where the traffic is going

# display stp brief

# from the above picture, we can see that the port I am blocking is g0Universe 0Universe 1.

# so the trend of traffic is from switch lsw8g0/0/2 to lsw7 g0/0/1---lsw9.

# next, configure hybrid to make vlan10 interoperable.

# configure lsw7, and set the pvid of port g0gamo to vlan 10

# inteface g0/0/1

Port link-type hybrid

Port hybrid pvid vlan 10

# configure lsw8, and set the pvid of port g0swap 0Accord 3 to the configuration when the vlan 10 / / ping package goes.

# interface g0/0/3

Port link-type hybird

Port hybird pvid vlan 20

# the direction of a ping packet goes back and forth. In hybrid mode, the trunk road is tagged when the / / traffic is passed through, and tagged when the traffic is out. Only by taking the tag can the corresponding port be added to the corresponding vlan. To take a simple example, if you want to communicate with vlan20 in hybrid mode by adding VLAN10, it will call the tag of vlan 10 and VLAN 20 at the same time. That is, the port on which the label is taken belongs to both vlan10 and vlan 20.

# next, let's continue to configure this line between carrying labels / / lsw7---lsw8 on the trunk road.

# enter lsw7 g0swap 02

Interface g0/02

Port hybrid tagged vlan 10 / / all ports of Huawei are in hybrid mode by default

# enter lsw8 g0UniUniverse 3

Interface g0/0/3

Port hybrid untagged vlan 10 / / remove the tag when you go out,-it is equivalent to adding g0Uniplex3 to vlan 10.

# next configure the reply ping package / / vice versa

# enter lsw8 g0amp 0 / 2 / / carry the tag to lsw7, and then call the tag when the lsw7 exit port g0lemag3 goes out, which is equivalent to adding g0lemag3 to port VLAN10

Inteface g0/0/2

Port hybrid tagged vlan 10

# interface g0/0/3

Port hybrid untagged vlan 10

# next, verify and test on switch lsw7,lsw8: display vlan

# as can be seen in the figure above, vlan 10 already contains g0max 0ax 3 and g0max 0max 2.

Test with the ping command: ping 192.168.10.2 as shown below

# then configure the exchange of visits between vlan20. Similarly, you can get the following:

# configure on lsw7

Interface g0/0/4

Port hybrid pvid vlan 20

# configure on lsw8

Interface g0/0/4

Port hybrid pvid vlan 20

# next, carry tags in lsw7,lsw8.

Interface g0/0/2

Port hybrid tagged vlan 20 / / carry tags when you go on lsw7

Interface g0/0/2

Port hybrid tagged vlan 20max / on lsw8 / / carry the tag when the bag comes back

# next, remove the tags on the lsw7,lsw8.

Interface g0/0/4

Port hybrid untagged vlan 20 / / on lsw8, remove the tag when you go

Interface g/0/0/4

Port hybrid untagged vlan 20 / / on lsw7, remove the tag when you come back

Testing and verification: ping 192.168.10.2, as shown in the following figure:

# the figure above shows that the vlan20 are already interconnected

# next configure the exchange of visits between vlan 20 and vlan 88

# the same configuration process

# on the switch lsw7, and lsw9 Mountain carrying the label vlan 20MagneVLAN88, untagging the port on lsw7 g0Unitab4 / / it is equivalent to adding this port to vlan 20 and vlan 88 at the same time, and adding this port to vlan 20MagneVLAN88 when untagging on lsw9 g0Uniqq3

# configure lsw7 and create vlan 88

# vlan 88

Interface g0/0/1

Port hybrid tagged vlan 20 88 / / carry label

# configure lsw9. Create vlan 20, vlan 88

# vlan 20, vlan 88

Interface g0/0/3

Port hybrid pvid vlan 88

Port hybrid untagged vlan 88 20 / / remove the tag and go to the package configuration

# configure the response packet to carry the tag on lsw9 0Uniqq1.

Interface g0/0/1

Port hybrid tagged vlan 20 88 / / carry label

Configure lsw7 g0UniUnix 4 to remove the tag.

Interface g 0/0/4

Port hybrid untagged vlan 20 88 / / remove the tag

# verify and test ping 192.168.20.88 as shown in the following figure

# the above diagram shows that the test is successful. Vlan20 and vlan 88 can be accessed.

# vlan 10 and vlan 20 are not on the same network segment, so they cannot access each other without configuration.

# to sum up, this problem has not been finished yet, because it has three links, and if any one of them is down, the direction of its traffic will be different, so there are two ways to do it. When any of these lines is down, the direction of its traffic has also changed, and I am not going to elaborate on it.

# in fact, hybrid is a hybrid mode, which is generally used in different vlan of the same network segment

Hello, everyone. That's all for today. Goodbye. Thank you.

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