You are on page 1of 19

T

VLAN Routing

www.huawei.com

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved


A VLAN effectively isolates broadcasts,
but also restricts communication between
different VLANs. The ability to enable
communication across these VLAN
boundaries becomes an issue. VLAN
routing resolves this problem to allow
successful communication between
selected VLANTboundaries.

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 2


Upon completion of this section, you
should expect to:

Understand VLAN routing

Acquire knowledge necessary to


configure VLAN routing

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 3


Chapter 1 What is VLAN Routing

Chapter 2 VLAN Routing Configuration

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 4


VLAN Disadvantages

VLANs isolate not only layer-2 broadcasts, but also VLAN traffic. As
a result users belonging to different VLANs are unable communicate
with each other.

Port 1 Port 2

VLAN 100 VLAN 200


T

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 5


Communication between VLANs

Port 5 Ethernet0
192.168.200.200 VLAN200 192.168.200.1
VLAN 200 Port 2

Port 1

Port 3 Ethernet1
VLAN100 192.168.100.1

192.168.100.100
VLAN 100 T

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 6


One Physical Connection for Every VLAN

VLANs are configured on layer 2 switches, and each VLAN


can use a separate physical link to interface with the router.

VLAN 300

VLAN 200 Ethernet0


Ethernet1
Ethernet2

VLAN 100
T

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 7


Using VLAN Trunking
Configuration of the switch port to support trunking over the
link between the switch and router will allow multiple VLANs to
share one physical link.

VLAN 300

Ethernet0.300
Ethernet0.200
VLAN 200 Trunk Ethernet0.100

VLAN 100
T

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 8


Integration of Switching and Routing
VLAN 100 VLAN 200

VLAN 300

VLAN 100 VLAN 200

L3 switch

VLAN 300
L2 switch

Functional integration of layer 2 switches and


T routers forms the basis for the
layer 3 switch. The layer 3 switch functionally enables VLAN classification,
VLAN based layer 2 switching and inter-VLAN routing.

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 9


Functionality of a L3 Switch

VLAN100 VLAN200 VLAN300


10.110.0.254/24 10.110.1.254/24 10.110.2.254/24

T
10.110.0.113/24 10.110.1.69/24 10.110.1.88/24 10.110.2.200/24

GW:10.110.0.254 GW:10.110.1.254 GW:10.110.1.254 GW:10.110.2.254

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 10


Chapter 1 What Is VLAN Routing

Chapter 2 VLAN Routing Configuration

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 11


VLAN Routing Configuration

IP:192.168.20.20
VLAN 200 GW:192.168.20.1

SWA RTA
Port 24
Port 2 Trunk Ethernet0/1

Port 1

VLAN 100

T
IP:192.168.10.10
GW:192.168.10.1

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 12


Standalone Routing ConfigurationSwitch
Configuration

SWA RTA
Port 24
Trunk Ethernet0/1

[SWA]vlan 100
[SWA-vlan100]port ethernet 0/1
[SWA]vlan 200
[SWA-vlan200]port ethernet 0/2
[SWA]interface ethernet 0/24
[SWA-Ethernet0/24]port link-type trunk
T
[SWA-Ethernet0/24]port trunk allow-pass vlan all

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 13


Standalone Routing ConfigurationRouter
Configuration

SWA RTA
Port 24
Trunk Ethernet0/1

[RTA]interface ethernet 0/1.1


[RTA-Ethernet0/1.1]control-vid 100 dot1q-termination
[RTA-Ethernet0/1.1]dot1q termination vid 100
[RTA-Ethernet0/1.1]arp broadcast enable
[RTA-Ethernet0/1.1]ip address 192.168.10.1 255.255.255.0
[RTA]interface ethernet 0/1.2
[RTA-Ethernet0/1.2]control-vid 200 dot1q-termination
T vid 200
[RTA-Ethernet0/1.2]dot1q termination
[RTA-Ethernet0/1.2]arp broadcast enable
[RTA-Ethernet0/1.2]ip address 192.168.20.1 255.255.255.0

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 14


VLAN Routing ConfigurationVerify Connectivity

Using the ping command, host 192.168.10.10 in VLAN100 can verify


connectivity between itself and host 192.168.20.20 in VLAN200
C:\>ping 192.168.20.20

Pinging 192.168.20.20 with 32 bytes of data:

Reply from 192.168.20.20: bytes=32 time=2ms TTL=254


Reply from 192.168.20.20: bytes=32 time=1ms TTL=254
Reply from 192.168.20.20: bytes=32 time=1ms TTL=254
Reply from 192.168.20.20: bytes=32 time=1ms TTL=254

Ping statistics for 192.168.20.20:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
T
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 2ms, Average = 1ms

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 15


L3 Switch Configuration

IP:192.168.20.20
VLAN 200 GW:192.168.20.1

SWA
Port 2

Port 1

VLAN 100

T
IP:192.168.10.10
GW:192.168.10.1

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 16


L3 Switch ConfigurationSwitch Configuration
SWA

[SWA]interface vlanif 100


[SWA-Vlanif100]ip add 192.168.10.1 255.255.255.0 create L3 interface of
[SWA]interface vlanif 200 VLAN
[SWA-Vlanif200]ip add 192.168.20.1 255.255.255.0

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 17


L3 Switch ConfigurationDetect Connectivity

Host 192.168.10.10 in VLAN100 ping host 192.168.20.20 in VLAN200

C:\>ping 192.168.20.20

Pinging 192.168.20.20 with 32 bytes of data:

Reply from 192.168.20.20: bytes=32 time=2ms TTL=254


Reply from 192.168.20.20: bytes=32 time=1ms TTL=254
Reply from 192.168.20.20: bytes=32 time=1ms TTL=254
Reply from 192.168.20.20: bytes=32 time=1ms TTL=254

Ping statistics for 192.168.20.20:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
T
Minimum = 1ms, Maximum = 2ms, Average = 1ms

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 18


Summary

What is the purpose of VLAN routing?

What methods can be used to

implement VLAN routing?

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 19

You might also like