[Early] Huawei’s exclusive Hybird-VLAN technology

First put C1ToC5of< /span>IPThe address is matched and configured in the same network segment .

and so onc3match192.168.10.30/24C4With192.168.10.40/2 4,C5With192.168.10.50/24

First add them to VLAN

SW1Configuration :

< Huawei>system-view //Enter system view

[Huawei]sysname SW1 //Edit name

[SW1]vlan batch 10 20 30//AddVLAN span>

[SW1]int e0/0/1 Ingress interface

[SW1-Ethernet0/0/1]porthybridpvidvlan10 //Add the next port toVLAN 10

[SW1-Ethernet0/0/1]port hybrid untagged vlan 10// Whenvlan10traffic passes through the interface, remove the label. (Because the tag is removed, the host will recognize it)

[SW1-Ethernet0/0/1]int e0/0/2

[SW1-Ethernet0/0/2]port hybrid pvid vlan 20

[SW1-Ethernet0/0/2]port hybrid untagged vlan 20

[SW1-Ethernet0/0/2]int g0/0/1< /span>

[SW1-GigabitEthernet0/0/ 1]port hybridtagged vlan 10 20 30//Do relay mouth (with tags)

SW2Configuration:

sy

[Huawei]sysname SW2

[SW2]vlan batch 10 20 30

[SW2-Ethernet0/0/3]port hybrid pvid vlan 10

[SW2-Ethernet0/0/3]port hybrid untagged vlan 10

[SW2-Ethernet0/0/3]int e0/0/4

[SW2-Ethernet0/0/4]port hybrid pvid vlan 20

[SW2 -Ethernet0/0/4]port hybrid untagged vlan 20

[SW2-Ethernet0/0/4]int g0/0/1

[ SW2-GigabitEthernet0/0/1]port hybrid tagged vlan 10 20 30 //As a relay port

[SW2-GigabitEthernet0/0/1]int e0/0/5

[SW2-Ethernet0/0/5]porthybridpvidvlan30

[SW2-Ethernet0/0/5]porthybriduntaggedvlan 30

At this time in the sameVLAN Members of can communicate,C1and C3Can communicate

We requireC1andC5Communications,C3No span>

Requires C4andC5Can communicate,C2 No

Configuration:

[SW1]int e0/0/1

[SW1-Ethernet0/0/1]port hybrid untagged vlan 30//Allowvlan30< span style="font-family:'宋体';">traffic over

[SW2-Ethernet0/0/5]port hybrid untagged vlan 10 20

[SW2-Ethernet0/0/4]port hybrid untagged vlan 30

This completes the requirements of the experiment.

​ /span>

Experiment End

Leave a Comment

Your email address will not be published.