Get the App
SLTechnology News&Howtos  ›  Network Security  › 

[preliminary article] Huawei's exclusive hybird-vlan technology

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

First configure the IP addresses from C1 to C5 and configure them on the same network segment.

And so on, c3 with 192.168.10.30, C4 with 192.168.10.40, C5 with 192.168.10.50, with 192.168.10.50

Add them to VLAN first.

SW1 configuration:

System-view / / enter the system view

[Huawei] sysname SW1 / / modify the name

[SW1] vlan batch 10 20 30 / / add VLAN

[SW1] int e0Compact 1 / / enter interface

[SW1-Ethernet0/0/1] port hybrid pvid vlan 10 / / add the interface to VLAN 10

[SW1-Ethernet0/0/1] port hybrid untagged vlan10 / / remove the label when vlan10 traffic passes through the interface. (the host will only recognize it because it has taken off the tag)

[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

[SW1-GigabitEthernet0/0/1] port hybrid tagged vlan 10 20 30 / / as a relay port (with label)

SW2 configuration:

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 / / act as a relay port

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

[SW2-Ethernet0/0/5] port hybrid pvid vlan 30

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

At this point, members of the same VLAN can communicate, and C1 and C3 can communicate

We require C1 to communicate with C5, not C3.

It is required that C4 and C5 can communicate, but C2 cannot.

Configuration:

[SW1] int e0/0/1

[SW1-Ethernet0/0/1] port hybrid untagged vlan30 / / allow vlan30 traffic to pass through

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

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

In this way, the requirements of the experiment are completed.

The experiment is over

Tags: Communication configuration label interface traffic relay experiment and so on host name address member system network segment view analogy technology Huawei Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Shulou Technology OPPO Reno Shulou Information Linux