+91 90691 39140 | +1 253 214 3115 | info@hub4tech.com | hub4tech

InterVLAN routing



Devices within a VLAN can communicate with each other without the need of Layer 3 routing. But devices in separate VLANs require a Layer 3 routing device to communicate with one another.

To allow hosts in different VLANs communicate with each other, we need a Layer 3 device (like a router).

The routing traffic from one VLAN to another VLAN is called InterVLAN routing.



On Switch

Switch # config terminal
Switch (config) # vlan 10 
Switch (config-vlan) # exit
Switch (config) #vlan 20 
Switch (config-vlan) # exit
Switch (config) # interface fastethernet 0/1
Switch (config-if) #switchport mode access
Switch (config-if) #switchport access vlan 10
Switch (config) # interface fastethernet 0/2
Switch (config-if) # switchport mode access 
Switch (config-if) # switchport access vlan 20
Switch (config) # interface fastethernet 0/3
Switch (config-if) #switchport mode trunk


On Router

Router # config terminal
Router (config) # interface fastethernet 0/0.10
Router (config-subif) # encapsulation dot1q 10
Router (config-subif) #ip address 10.1.1.10 255.255.255.0
Router (config) # interface fastethernet 0/0.20
Router (config-subif) # encapsulation dot1q 20
Router (config-subif) #ip address 20.1.1.10 255.255.255.0
Router (config-if) # no shut


On Laptop 0

IP address 10.1.1.1
Subnet mask 255.255.255.0
Gateway 10.1.1.10
On Laptop 1
IP address 20.1.1.1
Subnet mask 255.255.255.0
Gateway 20.1.1.10




Is it Helpful?
Copyright ©2015 Hub4Tech.com, All Rights Reserved. Hub4Tech™ is registered trademark of Hub4tech Portal Services Pvt. Ltd.
All trademarks and logos appearing on this website are the property of their respective owners.
FOLLOW US