Project title
Inter-VLAN Routing Configuration
Introduction: In modern network environments, it’s common to divide large networks into
smaller, logical segments called VLANs (Virtual Local Area Networks). By default, devices in
different VLANs cannot communicate with each other, which improves security but creates
challenges when cross-VLAN communication is needed.
Objective: The primary objective of this fundamental project was to enable communication
between VLANs while maintaining network segmentation, security and scalability.
I practiced how Inter-VLAN Routing works using two different methods:
Router-on-a-Stick (using sub-interfaces on a router).
Multilayer Switch-based routing (Layer 3 switching).
Work Procedure:
Created and configured VLANs on multiple switches.
Assigned specific switch ports to each VLAN for segmentation.
Configured trunk ports between switches and the router/switch.
Enabled routing on a Multilayer Switch using IP routing.
Assigned IP addresses to VLAN interfaces (SVIs).
Created sub-interfaces with dot1Q encapsulation for Router-on-a-Stick.
Tested communication between different VLANs successfully.
Inter-VLAN Routing(with Multilayer switch)
At first we have to create VLANs 10, 20, 30 in switch 1 and switch 2
Switch>en
Switch#conf
Switch#configure t
Switch#configure terminal
Switch(config)#vlan 10
Switch(config)#vlan 20
Switch(config)#vlan 30
Then assign port f0/1-2 in VLAN 10, port f0/3-4 in VLAN 20, port f0/5-6 in VLAN
30
Switch(config)#int range f0/1-2
Switch(config-if-range)#swit
Switch(config-if-range)#switchport acc
Switch(config-if-range)#switchport access vlan 10
Switch(config-if-range)#ex
Switch(config)#int range f0/3-4
Switch(config-if-range)#swit
Switch(config-if-range)#switchport acc
Switch(config-if-range)#switchport access vlan 20
Switch(config-if-range)#ex
Switch(config)#int range f0/5-6
Switch(config-if-range)#swit
Switch(config-if-range)#switchport acc
Switch(config-if-range)#switchport access vlan 30
Switch(config-if-range)#ex
Trunk switch0
Switch>en
Switch#configure terminal
Switch(config)#int range g0/1-2
Switch(config-if-range)#switchport m
Switch(config-if-range)#switchport mode t
Switch(config-if-range)#switchport mode trunk
Trunk Multilayer switch0
Switch>en
Switch#configure terminal
Switch(config)#int range g1/0/1
Switch(config-if-range)#switchport m
Switch(config-if-range)#switchport mode t
Switch(config-if-range)#switchport mode trunk
Create VLAN in Multilayer switch0 and use a command to make Multilayer switch0
work as router
Switch>en
Switch#conf
Switch#configure t
Switch#configure terminal
Switch(config)#vlan 10
Switch(config)#vlan 20
Switch(config)#vlan 30
Switch(config)#ip routing
Enter in VLANs 10, 20, 30 and assign IP address
Switch(config)#interface vlan 10
Switch(config-if)#ip add
Switch(config-if)#ip address [Link] [Link]
Switch(config-if)#interface vlan 20
Switch(config-if)#ip address [Link] [Link]
Switch(config-if)#interface vlan 30
Switch(config-if)#ip address [Link] [Link]
Inter-VLAN Routing(with Router)
Router port on
Router>en
Router#conf
Router#configure t
Router#configure terminal
Router(config)#int g0/0
Router(config-if)#no sh
Router(config-if)#no shutdown
Create sub-interfaces
Router(config)#
Router(config)#int g0/0.10
Router(config)#int g0/0.20
Router(config)#int g0/0.30
Port encapsulation and Give the IP address
Router(config)#int g0/0.10
Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip add
Router(config-subif)#ip address [Link] [Link]
Router(config-subif)#int g0/0.20
Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#ip address [Link] [Link]
Router(config-subif)#int g0/0.30
Router(config-subif)#encapsulation dot1Q 30
Router(config-subif)#ip address [Link] [Link]
Conclusion: In a nutshell, this project helped me understand network design principles, routing
logic and troubleshooting in a segmented network environment. It also strengthened my
confidence in working with real-world Cisco commands.