Scenario

Ticket: R1 routes between VLAN 10 (Sales, 10.35.10.0/24, gateway 10.35.10.1) and VLAN 20 (Engineering, 10.35.20.0/24, gateway 10.35.20.1) over one trunk cable to SW1, with subinterfaces on Gi0/0. The PCs, 10.35.10.10 and 10.35.20.10, use those gateway addresses. Neither PC can reach its gateway. SW1 is correct: its port to R1 is a trunk that allows VLANs 10 and 20, and it cannot be changed. Gi0/1 is the server link and works. Fix R1.

Topology

SW1R1

Requirements

  1. 1Gi0/0, the parent interface, is switched on
  2. 2Gi0/0.10 uses dot1Q VLAN 10 and the address 10.35.10.1/24, and is up
  3. 3Gi0/0.20 uses dot1Q VLAN 20 and the address 10.35.20.1/24, and is up
  4. 4R1 has connected routes for both VLAN subnets
  5. 5R1 reaches both PCs
  6. 6The server link Gi0/1 keeps its address and stays up

R1 has subinterfaces on Gi0/0 and no routing between the VLANs. Type ? for the commands you can use. Start with: enable

R1> show running-config

CCNA lab · about 15 min

Troubleshoot: router-on-a-stick does not route between VLAN 10 and VLAN 20

Three faults, a wrong dot1Q VLAN ID on a subinterface, a wrong gateway address on the other and a shut-down parent interface, stop the routing between two VLANs. Find them with show ip interface brief and show vlans.

This lab is included in the CCNA plans and in the free trial.

Start the free trial Try the free VLAN lab Today's free lab

All labs

About this lab

Ticket: R1 routes between VLAN 10 (Sales, 10.35.10.0/24, gateway 10.35.10.1) and VLAN 20 (Engineering, 10.35.20.0/24, gateway 10.35.20.1) over one trunk cable to SW1, with subinterfaces on Gi0/0. The PCs, 10.35.10.10 and 10.35.20.10, use those gateway addresses. Neither PC can reach its gateway. SW1 is correct: its port to R1 is a trunk that allows VLANs 10 and 20, and it cannot be changed. Gi0/1 is the server link and works. Fix R1.

About 15 minutes. Included in the CCNA plans and the free trial.

Questions about this lab

Is this a real Cisco router?

No. It is a small simulator written by CertAce. It understands a handful of commands and keeps the state of one router, so you can practise the ideas without lab gear. Real devices print more, and the exam may ask for things this lab does not cover. CertAce is not affiliated with Cisco.

What is router-on-a-stick?

One physical router link is a trunk to a switch, and the router has one subinterface per VLAN. Each subinterface has encapsulation dot1Q <vlan> and an address that is the gateway of that VLAN. The router routes between the VLANs.

Does the subinterface number have to match the VLAN ID?

No, but it is good practice. The router uses the number in encapsulation dot1Q <id>, not the number in the name Gi0/0.10.

What is the native VLAN on a subinterface?

Untagged frames belong to the native VLAN. A subinterface for it needs encapsulation dot1Q <id> native. This lab uses only tagged VLANs 10 and 20.

CertAce is not affiliated with or endorsed by Cisco Systems. CCNA and Cisco are trademarks of Cisco Systems, Inc. The simulator and every command output here were written by CertAce.