zNetLaB › Guided labs › Enterprise
Router on a stick 43 — VLANs 14 and 15
Enterprise Intermediate 4 devices 4 checked tasks 100 points Plan lab
HR (VLAN 14) and Guests (VLAN 15) sit on one switch and must reach each other through one router port. Trunk the switch uplink, create the two 802.1Q sub-interfaces on the router (gateways .1 of 192.168.62.0/24 and 192.168.162.0/24), and ping between the departments. You build it in a browser, type real commands at each device, and every task below is
checked against the running configuration — so you find out it is wrong before anybody else does.
Open this lab in the simulator
The simulator runs in your browser with nothing to install. This lab is part of the full simulator: open it free for 7 days with a new account, then with a plan. It needs an account, which keeps your progress.
The scenario
HR (VLAN 14) and Guests (VLAN 15) sit on one switch and must reach each other through one router port. Trunk the switch uplink, create the two 802.1Q sub-interfaces on the router (gateways .1 of 192.168.62.0/24 and 192.168.162.0/24), and ping between the departments.
Your role: a network engineer on the enterprise team. Level: Intermediate Done when: all 4 goals show as passed (100 points).
Network status
Devices: 1 router, 1 switch, 2 PCs, cabled as drawn. No Layer 1 or Layer 2 faults: every link is connected and up. SW-Aizawl starts with and VLAN 14, VLAN 15 already configured. HR-PC is a host with 192.168.62.10/24, gateway 192.168.62.1. Guests-PC is a host with 192.168.162.10/24, gateway 192.168.162.1. R-Aizawl starts with an empty configuration.
Known problems
None: nothing is misconfigured. The network is simply not finished: what the goals list is what you have to build or secure.
Goals
The switch uplink Gi0/1 is a trunk (25 pts) Sub-interface Gi0/0.14 uses dot1Q 14 and is the gateway of HR (25 pts) Sub-interface Gi0/0.15 uses dot1Q 15 and is the gateway of Guests (25 pts) HR reaches Guests (25 pts)
The activity, in order
The switch uplink Gi0/1 is a trunk Make GigabitEthernet0/1 on SW-Aizawl a trunk (switchport mode trunk; add the encapsulation line first if the switch asks for it).Why: A trunk carries many VLANs over one cable, tagged with 802.1Q. Both ends must agree. Verify with: show interfaces trunk Sub-interface Gi0/0.14 uses dot1Q 14 and is the gateway of HR The configuration of R-Aizawl must contain the line: interface GigabitEthernet0/0.14[^!]*encapsulation dot1Q 14[^!]*ip address 192.168.62.1. Type it in the right mode (global, interface or line) and check it appears.Why: This is the task that checks your configuration directly: the line must really be there, not just look right. Verify with: show running-config Sub-interface Gi0/0.15 uses dot1Q 15 and is the gateway of Guests The configuration of R-Aizawl must contain the line: interface GigabitEthernet0/0.15[^!]*encapsulation dot1Q 15[^!]*ip address 192.168.162.1. Type it in the right mode (global, interface or line) and check it appears.Why: This is the task that checks your configuration directly: the line must really be there, not just look right. Verify with: show running-config HR reaches Guests From HR-PC, ping 192.168.162.10. If it fails, walk the path hop by hop: gateway, then each router’s routing table, then the way back.Why: A ping needs a route in BOTH directions. This is the end-to-end proof that everything before it worked. Verify with: ping 192.168.162.10
Tips
Work in the order given: later goals depend on the earlier ones. After every change, run the verify command before moving on; do not guess. Stuck? Read the verify output first. It names the interface, neighbour or route that is wrong. Common mistake: Forgetting no shutdown on the physical interface Common mistake: Sub-interface number and dot1Q id that disagree Common mistake: Trunk allowed list missing a VLAN
Why this matters
Hosts in different VLANs are in different subnets, so they need a router. One physical router port carries them all as an 802.1Q trunk with a sub-interface per VLAN — the classic router on a stick.
What you will be able to do
Configure an 802.1Q trunk
Create sub-interfaces with encapsulation dot1Q
Explain inter-VLAN routing
The network
ISR 2911, Catalyst 2960-24TT, PC — 4 devices in all, already cabled.
Gi0/0 Gi0/1 Fa0/1 Fa0 Fa0/2 Fa0 R-Aizawl SW-Aizawl HR-PC 192.168.62.10/24 · gw 192.168.62.1 Guests-PC 192.168.162.10/24 · gw 192.168.162.1 Drawn from this lab: devices, cables, ports and the addresses already set.
Device Model Address already set
R-Aizawl ISR 2911 configure it
SW-Aizawl Catalyst 2960-24TT configure it
HR-PC PC 192.168.62.10 / 255.255.255.0 gw 192.168.62.1
Guests-PC PC 192.168.162.10 / 255.255.255.0 gw 192.168.162.1
Cabling
R-Aizawl Gi0/0 ↔ SW-Aizawl Gi0/1
SW-Aizawl Fa0/1 ↔ HR-PC Fa0
SW-Aizawl Fa0/2 ↔ Guests-PC Fa0
What is configured at the start
These are already configured when the lab opens — including, where this is a troubleshooting lab, the fault itself:
SW-Aizawl vlan 14
exit
vlan 15
exit
interface fa0/1
switchport mode access
switchport access vlan 14
exit
interface fa0/2
switchport mode access
switchport access vlan 15
exit
Tasks, and how each one is checked
Every task is decided by reading the live network — a neighbour in FULL, a ping that succeeds, a line in the running configuration — not by looking for a keyword you typed. The same command shows you what the lab sees.
# Task Pts How to verify it yourself
1 The switch uplink Gi0/1 is a trunk 25 On SW-Aizawl: show interfaces trunk lists Gi0/1.
2 Sub-interface Gi0/0.14 uses dot1Q 14 and is the gateway of HR 25 On R-Aizawl: show running-config contains the line(s) matching interface GigabitEthernet0/0\.14 … encapsulation dot1Q 14 … ip address 192\.168\.62\.1 .
3 Sub-interface Gi0/0.15 uses dot1Q 15 and is the gateway of Guests 25 On R-Aizawl: show running-config contains the line(s) matching interface GigabitEthernet0/0\.15 … encapsulation dot1Q 15 … ip address 192\.168\.162\.1 .
4 HR reaches Guests 25 On HR-PC: ping 192.168.162.10 must succeed.
Stuck? Ask the coach
Tell the coach what you see or what you tried. It gives you a hint, not the answer, the way a senior engineer would. Included with a free trial or any plan.
Ask the coach
Common mistakes
Forgetting no shutdown on the physical interface
Sub-interface number and dot1Q id that disagree
Trunk allowed list missing a VLAN
Reference solution
Try it yourself first — the lab checks your work either way. This is one configuration that makes every task pass, device by device:
SW-Aizawl interface g0/1
switchport mode trunk
exit
R-Aizawl interface g0/0
no shutdown
exit
interface g0/0.14
encapsulation dot1Q 14
ip address 192.168.62.1 255.255.255.0
exit
interface g0/0.15
encapsulation dot1Q 15
ip address 192.168.162.1 255.255.255.0
exit
Where this is examined
CCNA 2.0 inter-VLAN routing.
This lab practises these topics in the zNetLaB certification courses:
Related labs
Where to start
The lessons are open to everyone, all guided labs are listed by track, and
plans explains what is free and what is not.
CCNA®, CCNP® and Cisco® are trademarks of Cisco Systems, Inc. zNetLaB is not affiliated with or endorsed by Cisco.