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

  1. Cisco Router (R1)

  2. Cisco Switch (SW1)

  3. Two PCs:

    • PC1 (Sales) β†’ VLAN 10

    • PC2 (HR) β†’ VLAN 20

  4. Trunk Link between SW1 and R1 using FasrEthernet 0/0

πŸ–§ Topology Diagram:

Topology

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