Hybrid-vlan Configuration, add the interface batch to VLAN, configuration detailed

Source: Internet
Author: User



Experimental topology



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6F/7D/wKiom1Wd7-Pw1yLkAAFCmeJywRY388.jpg "title="}~ 4SQ4DEE8$8ZEM~F3 (8bh4.png "alt=" Wkiom1wd7-pw1ylkaafcmejywry388.jpg "/>



C1 ip:192.168.10.1/24 C5 ip:192.168.10.5/24



C2 ip:192.168.10.2/24 C6 ip:192.168.10.6/24



C3 ip:192.168.10.3/24 C7 ip:192.168.10.7/24



C4 ip:192.168.10.4/24






Experimental requirements



1, C1 and C2 belong to VLAN10,C3 and C4 belong to Vlan20,c5 and C6 belong to VLAN30,C7 belong to Vlan40






2, members of the VLAN10 are required to access the members of the VLAN40, VLAN20 members can access the C5 of VLAN30, other VLAN members cannot communicate with each other






SW1 configuration:






<sw1>system-view //Enter system view



[Sw1]vlan Batch ten + //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 //Join the interface to the port group



[Sw1-port-group-1]port hybrid Pvid VLAN ten //VLAN10 tag for incoming packet



[Sw1-ethernet0/0/2]port hybrid untagged VLAN //Add interfaces untagged to Vlan10 and vlan40, allowing Vlan10 and VLAN40 members to be tagged



[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 40 +//Add the interface tagged to vlan10 20 30, configuration relay allows certain VLAN traffic to be tagged /c0>









650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6F/7E/wKiom1Wd91GilnWhAAGZA2WtWy8739.jpg "title="%1% Go6i$8 ' q98hv]fy9k (nu.png "alt=" Wkiom1wd91gilnwhaagza2wtwy8739.jpg "/>






SW2 configuration:



<sw2>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=" Http://s3.51cto.com/wyfs02/M00/6F/7A/wKioL1Wd_TeSfE0PAAG3bbcOyEo962.jpg "title=" ( 8eqy405%1ryud~8$[j2]w8.png "alt=" Wkiol1wd_tesfe0paag3bbcoyeo962.jpg "/>






Verify that VLAN10 and vlan40 can communicate C1 ping C7



650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6F/7E/wKiom1Wd_BWzgS15AAF55-NlJQA909.jpg "title=" 0nvb7tpzkgaw ' Rbkkbktoo.png "alt=" Wkiom1wd_bwzgs15aaf55-nljqa909.jpg "/>






Verify that VLAN10 cannot communicate with other VLANs



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6F/7E/wKiom1Wd_KOwZTGSAAE-xVl8hGA443.jpg "title=" IDD2WC } (%i$_3h[({@9 ' 42k.png "alt=" Wkiom1wd_kowztgsaae-xvl8hga443.jpg "/>






650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6F/7A/wKioL1Wd_sbAKnNoAAE58_tuBM0665.jpg "title="%_} ' KK [Hu}7twfcmbn0r}74.png "alt=" Wkiol1wd_sbaknnoaae58_tubm0665.jpg "/>






Verify that Vlan20 can communicate with Vlan30 C5 but not with C6



650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6F/7A/wKioL1Wd_8eD1THrAAGaPqbJGlc454.jpg "title=" 473zcnm3aybn5u$vv~w{o0o.png "alt=" Wkiol1wd_8ed1thraagapqbjglc454.jpg "/>






650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6F/7E/wKiom1Wd_jDCQuopAAFkEZWqOFk820.jpg "title=" 04rb8] y4xa60[q4f ' 31shhc.png "alt=" Wkiom1wd_jdcquopaafkezwqofk820.jpg "/>






Verify that VLAN20 does not have access to VLAN40



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6F/7A/wKioL1WeAI-jJ5fiAAFFyQh6c28831.jpg "title=" oh~zm6 ' Bu$w5 ' xcs1_x8j6b.png "alt=" Wkiol1weai-jj5fiaaffyqh6c28831.jpg "/>






Verify that VLAN30 cannot be accessed with other VLAN members






650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6F/7E/wKiom1Wd_07wU5GQAAMC13sHbpA272.jpg "title=" nd@5]% Wo[7nc02_e[h~qp}3.png "alt=" Wkiom1wd_07wu5gqaamc13shbpa272.jpg "/>



This article is from the "Resource Sharing" blog, so be sure to keep this source http://sunjie123.blog.51cto.com/1263687/1672495





Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.