VLAN Routing with Layer 2 Switch and Router on Huawei

huawei-vlan-routing-l2-switch

VLAN Routing with Layer 2 Switch and Router

VLAN Routing with Layer 2 Switch is done with the help of a Layer 3 device, a router. Mainly, in the router, in layer 3, gateways are created for the VLANs. These gateways are the subinterfaces under the physical interface. For each subinterface, an IP address is assigned.

Our VLAN Routing example topology is below:


huawei-vlan-routing-l2-switch
Let’s do the required configuration for VLAN Routing on Switch and Router.

Switch Configuration for VLAN Routing

On Huawei switch, firstly we will configure the VLAN interfaces. We will set link-types of this interfaces as access and we will set its default vlan.

[Huawei-Switch] interface GigabitEthernet0/0/1
[Huawei-Switch-GigabitEthernet0/0/1] port link-type access
[Huawei-Switch-GigabitEthernet0/0/1] port default vlan 10
[Huawei-Switch-GigabitEthernet0/0/1] quit
[Huawei-Switch] interface GigabitEthernet0/0/2
[Huawei-Switch-GigabitEthernet0/0/2] port link-type access
[Huawei-Switch-GigabitEthernet0/0/2] port default vlan 20
[Huawei-Switch-GigabitEthernet0/0/2] quit
[Huawei-Switch] interface GigabitEthernet0/0/3
[Huawei-Switch-GigabitEthernet0/0/3] port link-type access
[Huawei-Switch-GigabitEthernet0/0/3] port default vlan 30
[Huawei-Switch-GigabitEthernet0/0/3] quit

We will configure the router face interface of the switch as “trunk” and we will configure it to allow all vlans. If you want to allow only specific VLANs, it allows only these VLANs.

We're Sorry!

Full Access is for only IPCisco Crew...

With IPCisco Membership, You Can Access:

• All Certification Courses (Cisco, Juniper, Nokia and Huawei),
• Thousands of Questions (Lesson Quizes and Special Quiz Section),
• Carieer Consultancy, CV/Resume Check, Career Advice Meeting,
• Cheat Sheets, Job Interview Trainings, Network Tools,
You will be Member of a Big IPCisco Community,
You will Learn Network Lessons with Always,
New And Different Learning Styles!
We are waiting for you!

Lesson tags: VLAN Routing, Huawei
Back to: HCNA > VLAN Routing

HCNA