Configuring Router-on-a-stick (ROAS) for VLANs
Nerd Cafe
In this guide, we will configure Router-on-a-Stick (ROAS) to allow inter-VLAN communication using a Cisco Router and a Layer 2 Switch in GNS3.
Scenario
A company has two departments: Sales and HR, each in a separate VLAN. The company uses a single router to enable communication between VLANs.
VLAN 10 (Sales) β 192.168.10.0/24
VLAN 20 (HR) β 192.168.20.0/24
Router-on-a-stick is implemented on a Cisco Router
Cisco Switch is used
Two PCs for testing
Topology
Cisco Router (R1)
Cisco Switch (SW1)
Two PCs:
PC1 (Sales) β VLAN 10
PC2 (HR) β VLAN 20
Trunk Link between SW1 and R1 using FasrEthernet 0/0
π§ Topology Diagram:

Step 2: Configure VLANs on the Switch (SW1)
π» Switch Configuration
Step 3: Configure the Router for Inter-VLAN Routing
π» Router Configuration
Step 4: Assign IPs to PCs
π» PC1 (Sales Department)
π» PC2 (HR Department)
Step 5: Test Connectivity
πΉ PC1 β Ping Router (192.168.10.1)
πΉ PC2 β Ping Router (192.168.20.1)
πΉ PC1 β Ping PC2 (192.168.20.2)
Keywords
Router-on-a-Stick, VLAN configuration, Cisco Packet Tracer, inter-VLAN routing, Cisco 2960 switch, Cisco 2911 router, subinterfaces, trunk port, encapsulation dot1Q, VLAN 10, VLAN 20, access ports, network topology, IP addressing, default gateway, network simulation, switch configuration, router configuration, network troubleshooting, ping test, Ψ³ΫΨ³Ϊ©Ω
Last updated