Huawei Hybrid-VLAN configuration, add interface batch to VLAN, configure understanding

Experimental topology

Experimental requirements

1, C1 and C2 belong to vlan10, C3 and C4 belong to vlan20, C5 and C6 belong to vlan30, C7 belongs to vlan40

2, members of vlan10 are required to be able to access members of vlan40, members of vlan20 can Access to C5 of vlan30, members of other vlans cannot communicate with each other

SW1 configuration:< /p>

system-view //Enter system view

[SW1]vlan batch 10 20 30 40 //Create VLAN

[SW1]port-group 1 //Create a port group named 1

[SW1-port-group-1]group-member Ethernet 0/0/1 Ethernet 0/0/2 //Add the interface to the port group

[SW1-port-group-1]port hybrid pvid vlan 10 //label the incoming data packet with vlan10

[SW1-Ethernet0/0/2]port hybrid untagged vlan 10 40 //Add the interface to vlan10 and vlan40 in an untagged manner, allowing members of vlan10 and vlan40 to be untagged

[SW1-port-group-1]quit

[SW1]interface e0/0/3

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

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

[SW1-Ethernet0/0/3]quit

[SW1]inter g0/0/1

[SW1-GigabitEthernet0/ 0/1]port hybrid tagged vlan 10 20 30 40 //Add the interface to vlan10 20 30 40 in tagged mode, configure the trunk to allow some VLAN traffic to be tagged

< p>

SW2 configuration:

system-view

[SW2]vlan batch 10 20 30 40

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

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

[SW2-Ethernet0/0/4]quit

[SW2]port-group 2

[SW2-port-group- 2]group-member Ethernet 0/0/5 to Ethernet 0/0/6

[SW2-port-group-2]port hybrid pvid vlan 30

[SW2-port -group-2]port hybrid untagged vlan 30

[SW2]interface e0/0/5

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

[SW2-Ethernet0/0/5]quit

[SW2]interface e0/0/7

[SW2-Ethernet0/0/7]port hybrid pvid vlan 40

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

[SW2-Ethernet0/0/7]quit

[SW2] interface g0/0/1

[SW2-GigabitEthernet0/0/1]port hybrid tagged vlan 10 20 30 40

650) this.width=650;” src=” /wp-content/uploadshttp:/img.voidcn.com/vcimg/static/loading.png” title=”`0NVB7TPZKGAW`RBKKBKTOO.png “alt=”wKiom1Wd_BWzgS15AAF55-NlJQA909.jpg” d=”4576552″ s=”69a_2ca “t=”jpg”>

Verify that VLAN10 cannot communicate with other VLANs

650) this.width=650;” src=”/wp-content/uploadshttp:/img.voidcn.com/vcimg/static/loading.png” title=”%_}`KK[HU}7TWFCMBN0R}74.png “alt=”wKioL1Wd_sbAKnNoAAE58_tuBM0665.jpg” d=”4576554″ s=”1a3_138″ t=”jpg”>

Verify that vlan20 can communicate with vlan30 C5 but Cannot communicate with C6

650) this.width=650;” src=”/wp-content/uploadshttp:/img.voidcn.com/ vcimg/static/loading.png” title=”04RB8]Y4XA60[Q4F`31SHHC.png “alt=”wKiom1Wd_jDCQuopAAFkEZWqOFk820.jpg” d=”4576556″ s=”60c_f0a” t=”jpg”>

Verify that VLAN20 cannot access VLAN40

650) this.width=650;” src=”/wp-content/uploadshttp:/img.voidcn. com/vcimg/static/loading.png” titl e=”ND@5]%WO[7NC02_E[H~QP}3.png” alt=”wKiom1Wd_07wU5GQAAMC13sHbpA272.jpg” d=”4576558″ s=”123_917″ t=”jpg”>

Leave a Comment

Your email address will not be published.