Huawei Hybrid-vlan

Source: Internet
Author: User
Tags get ip define dns

Huawei Hybrid-vlan, three-layer switching, DHCP

Topology:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/54/73/wKioL1SC8-yidmH5AAFnbzaDL48113.jpg "title=" 1.png " alt= "Wkiol1sc8-yidmh5aafnbzadl48113.jpg"/>

Demand:

1. Router End VLAN

2. Inter-switch VLAN transmission in hybrid mode

3.PC Get IP with DHCP

Ideas:

1.TheGateway of the PC is on the router

2. Configure Hybrid-vlan

3. Configure DHCP

Steps:

Router AR1:

[Huawei]vlan 10

[Huawei-vlan10]vlan Partitioning VLANs

[Huawei-vlan20]int G0/0/1

[Huawei-gigabitethernet0/0/1]un shut activating the interface

[Huawei-gigabitethernet0/0/1]int g0/0/1.10

[huawei-gigabitethernet0/0/1.10]dot1q termination vid Configuring the Encapsulation protocol type

[huawei-gigabitethernet0/0/1.10]ip Add 192.168.10.1 Configure IP

[Huawei-gigabitethernet0/0/1.10]un shut

[Huawei-gigabitethernet0/0/1.10]arp Broadcast enable Enable ARP (must be turned on)

[Huawei-gigabitethernet0/0/1.10]int g0/0/1.20

[huawei-gigabitethernet0/0/1.20]dot1q Termination vid 20

[Huawei-gigabitethernet0/0/1.20]ip Add 192.168.20.1 24

[Huawei-gigabitethernet0/0/1.20]un shut

[Huawei-gigabitethernet0/0/1.20]arp Broadcast Enable

Define the DHCP address pool (two types):

1. interface-based DHCP:

[Huawei]dhcp Enable

[Huawei]int g0/0/1.10

[Huawei-gigabitethernet0/0/1.10]dhcp Select interface

[HUAWEI-GIGABITETHERNET0/0/1.10]DHCP Server Dns-list 8.8.8.8

The VLAN10 member PC obtains IP in this way

2. address pool-based DHCP:

[Huawei]ip Pool V20

[huawei-ip-pool-v20]network 192.168.20.0 Mask defining network segments

[Huawei-ip-pool-v20]gateway-list 192.168.20.1 Defining gateways

[Huawei-ip-pool-v20]dns-list 8.8.8.8 Define DNS

[Huawei-ip-pool-v20]int g0/0/1.20                       

[HUAWEI-GIGABITETHERNET0/0/1.20]DHCP Select Global Defining Interfaces

The VLAN20 member PC obtains IP in this way

Switch LSW1:

[Huawei]vlan Configure VLANs

[Huawei-vlan10]vlan 20

[Huawei-vlan20]int E0/0/1

[Huawei-ethernet0/0/1]port hybrid Pvid VLAN 10

Add the E0/0/1 interface to Hybrid Port joins to Vlan10

[Huawei-ethernet0/0/1]port hybrid untagged VLAN 10

Add the E0/0/1 interface to the VLAN10 in a untagged way

[Huawei-ethernet0/0/1]int E0/0/2

[Huawei-ethernet0/0/2]port hybrid Pvid VLAN 20

Add the E0/0/2 interface to Hybrid Port joins to Vlan20

[Huawei-ethernet0/0/2]port hybrid untagged VLAN 20

Add the E0/0/2 interface to the Vlan20 in a untagged way

[Huawei-ethernet0/0/2]int G0/0/2

[Huawei-gigabitethernet0/0/2]port Hybrid tagged vlan 10 20

Let the data frame through the G0/0/2 interface, with the VLAN10 20 label

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

[Huawei-gigabitethernet0/0/1]port Hybrid tagged vlan 10 20

Let the data frame through the G0/0/1 interface, with the VLAN10 20 label (from the trunk mouth function)

LSW2:

[Huawei]vlan                              

[Huawei-vlan10]vlan 20

[Huawei-vlan20]int E0/0/1

[Huawei-ethernet0/0/1]port hybrid Pvid VLAN 10

[Huawei-ethernet0/0/1]port hybrid untagged VLAN 10

[Huawei-ethernet0/0/1]int E0/0/2

[Huawei-ethernet0/0/2]port hybrid Pvid VLAN 20

[Huawei-ethernet0/0/2]port hybrid untagged VLAN 20

[Huawei-ethernet0/0/2]int G0/0/2

[Huawei-gigabitethernet0/0/2]port Hybrid tagged vlan 10 20

Configuration is complete.

Verify:

Set the PC to get address mode for DHCP:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/54/75/wKiom1SC86HTtwBSAAHgDJ-koOU813.jpg "style=" float: none; "title=" 2.png "alt=" Wkiom1sc86httwbsaahgdj-koou813.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/54/73/wKioL1SC9DKQxtbLAANsc-UiqN0267.jpg "style=" float: none; "title=" 3.png "alt=" Wkiol1sc9dkqxtblaansc-uiqn0267.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/54/75/wKiom1SC86LguCDpAAHcO5TSgC0902.jpg "style=" float: none; "title=" 4.png "alt=" Wkiom1sc86lgucdpaahco5tsgc0902.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/54/73/wKioL1SC9DOxINHyAAI8KZJORRE540.jpg "style=" float: none; "title=" 5.png "alt=" Wkiol1sc9doxinhyaai8kzjorre540.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/54/75/wKiom1SC86KCbRDPAAI9XKX0L6Q851.jpg "style=" float: none; "title=" 6.png "alt=" Wkiom1sc86kcbrdpaai9xkx0l6q851.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/54/73/wKioL1SC9DTjFkbPAAI8yWPpCKQ125.jpg "style=" float: none; "title=" 7.png "alt=" Wkiol1sc9dtjfkbpaai8ywppckq125.jpg "/>


DHCP configuration successful, verify data communication:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/54/73/wKioL1SC9KTDDIOvAAP1CmqyL5g135.jpg "title=" 11.png "alt=" Wkiol1sc9ktddiovaap1cmqyl5g135.jpg "/>

Communication between C1 and C3 is normal.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/54/73/wKioL1SC9N_xOS-AAAPAcJeaCyE712.jpg "title=" 12.png "alt=" Wkiol1sc9n_xos-aaapacjeacye712.jpg "/>

Communication between C1 and C4 is normal.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/54/73/wKioL1SC9QyzVO2EAAP4yT9VHTc623.jpg "title=" 13.png "alt=" Wkiol1sc9qyzvo2eaap4yt9vhtc623.jpg "/>

Communication between C2 and C4 is normal.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/54/75/wKiom1SC9JqBAx3EAAPBXqdJq7E073.jpg "title=" 14.png "alt=" Wkiom1sc9jqbax3eaapbxqdjq7e073.jpg "/>

Communication between C2 and C3 is normal.

configured correctly, end.


This article is from the "share some personal experience" blog, be sure to keep this source http://hyang.blog.51cto.com/9415026/1587166

Huawei Hybrid-vlan

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.