Scenario

Sales (VLAN 10) and Engineering (VLAN 20) are on SW1, and the VLANs and access ports are already set. The two PCs cannot reach each other, because VLANs are separate broadcast domains. One cable runs from SW1 to R1, and R1 has to do the routing between them.

Topology

SW1R1

Requirements

  1. 1SW1 Gi0/1 is a trunk that carries VLANs 10 and 20
  2. 2R1 Gi0/0 is switched on
  3. 3Gi0/0.10 uses 802.1Q VLAN 10 and has the address 192.168.10.1 255.255.255.0
  4. 4Gi0/0.20 uses 802.1Q VLAN 20 and has the address 192.168.20.1 255.255.255.0
  5. 5PC-Sales can ping its gateway, 192.168.10.1
  6. 6PC-Sales can reach PC-Eng across the VLANs

SW1 has its VLANs and access ports. R1 is unconfigured. Pick a device above, type ? for the commands you can use, and start with: enable

R1> show running-config

CCNA lab · about 15 min

Inter-VLAN routing (router on a stick)

Two VLANs cannot talk until a router joins them. Build the trunk and the subinterfaces, then prove it with a ping.

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

Sales (VLAN 10) and Engineering (VLAN 20) are on SW1, and the VLANs and access ports are already set. The two PCs cannot reach each other, because VLANs are separate broadcast domains. One cable runs from SW1 to R1, and R1 has to do the routing between them.

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

Questions about this lab

Why does the router need subinterfaces?

A switch keeps VLANs apart, so a router has to route between them. With one cable between SW1 and R1, the router port is split into one logical interface per VLAN, called subinterfaces, each with its own 802.1Q VLAN and its own address.

Is this a real Cisco router?

No. It is a simulator written by CertAce. It models switching, VLANs and routing well enough to practise the ideas, but real devices print more and the exam can ask for things this lab does not cover.

Do I need to pay?

The labs after the first one are included in the free trial and in the CCNA plans.

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.