Huawei three-layer switch inter-VLAN routing configuration detailed

Source: Internet
Author: User
Tags get ip

Experimental topology

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6F/93/wKiom1Wgz6yQRSAIAAEE1Z-_Pis893.jpg "title=" p028wn (19qdj$3egpk0ltv3.png "alt=" Wkiom1wgz6yqrsaiaaee1z-_pis893.jpg "/>

Experimental requirements

1, C1 and C3 belong to VLAN10,C2 and C4 belong to VLAN20, on SW1 to create VLAN100 do upstream VLAN

2. End all VLANs on SW1

3. Use DHCP to get IP on all VLAN members

4, the whole network interoperability


IP planning

Vlan10:192.168.10.0/24

Vlan20:192.168.20.0/24

Vlan100:192.168.100.10/24

R1 g0/0/0:192.168.100.1/24


SW1 configuration:


<sw1>system-view//Enter system view

[Sw1]vlan Batch 10 20 100//Create VLAN

[SW1]DHCP Enable//Turn on DHCP service

[Sw1]inter G0/0/1

[Sw1-gigabitethernet0/0/1]port hybrid Pvid VLAN 10

[Sw1-gigabitethernet0/0/1]port hybrid untagged VLAN 10//Add the interface to the VLAN in untagged way

[Sw1-gigabitethernet0/0/1]int G0/0/2

[Sw1-gigabitethernet0/0/2]port hybrid Pvid VLAN 20

[Sw1-gigabitethernet0/0/2]port hybrid untagged VLAN 20

[Sw1-gigabitethernet0/0/2]int G0/0/10

[Sw1-gigabitethernet0/0/10]port hybrid Pvid VLAN 100

[Sw1-gigabitethernet0/0/10]port hybrid untagged VLAN 100

[Sw1-gigabitethernet0/0/10]int g0/0/24

[Sw1-gigabitethernet0/0/24]port Hybrid Tagged VLAN 10 20//Add interface to VLAN in tagged way

[Sw1-gigabitethernet0/0/24]quit

[Sw1]inter VLAN 10//Enter VLAN10

[SW1-VLANIF10]IP Address 192.168.10.1 24//Configure VLAN10 member's Gateway

[SW1-VLANIF10]DHCP Select interface//apply DHCP to the interface

[Sw1-vlanif10]int VLAN 20

[Sw1-vlanif20]ip Address 192.168.20.1 24

[Sw1-vlanif20]dhcp Select interface

[Sw1-vlanif20]int VLAN 100

[Sw1-vlanif100]ip Address 192.168.100.10 24


SW2 configuration:


<sw2>system-view

[Sw2]vlan Batch 10 20

[Sw2]inter G0/0/1

[Sw2-gigabitethernet0/0/1]port hybrid Pvid VLAN 10

[Sw2-gigabitethernet0/0/1]port hybrid untagged VLAN 10

[Sw2-gigabitethernet0/0/1]int G0/0/2

[Sw2-gigabitethernet0/0/2]port hybrid Pvid VLAN 20

[Sw2-gigabitethernet0/0/2]port hybrid untagged VLAN 20

[Sw2-gigabitethernet0/0/2]int g0/0/24

[Sw2-gigabitethernet0/0/24]port Hybrid tagged vlan 10 20


R1 configuration:


<r1>system-view

[R1]ip route-static 0.0.0.0 0.0.0.0 192.168.100.10

[R1]inter g0/0/0

[R1-gigabitethernet0/0/0]ip Address 192.168.100.1 24


Test:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6F/90/wKioL1Wg2jnyQJz3AALyOMH4ZVA721.jpg "title="}l5q$ Znv2rph7xt6z$ajkht.jpg "alt=" Wkiol1wg2jnyqjz3aalyomh4zva721.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6F/93/wKiom1Wg2cTh7yjXAAItzDv1QAs575.jpg "title=" @i${ MRXM) p[sh~i~j5j (em3.png "alt=" Wkiom1wg2cth7yjxaaitzdv1qas575.jpg "/>

Huawei three-layer switch inter-VLAN routing configuration detailed

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.