zNetLaB › Guided labs › Enterprise
Router on a stick 13 — VLANs 34 and 35
Enterprise Intermediate 4 devices 4 checked tasks 100 points Plan lab
Cameras (VLAN 34) and Research (VLAN 35) 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.32.0/24 and 192.168.132.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
Cameras (VLAN 34) and Research (VLAN 35) 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.32.0/24 and 192.168.132.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-Patna starts with and VLAN 34, VLAN 35 already configured. Cameras-PC is a host with 192.168.32.10/24, gateway 192.168.32.1. Research-PC is a host with 192.168.132.10/24, gateway 192.168.132.1. R-Patna 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.34 uses dot1Q 34 and is the gateway of Cameras (25 pts) Sub-interface Gi0/0.35 uses dot1Q 35 and is the gateway of Research (25 pts) Cameras reaches Research (25 pts)
The activity, in order
The switch uplink Gi0/1 is a trunk Make GigabitEthernet0/1 on SW-Patna 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.34 uses dot1Q 34 and is the gateway of Cameras The configuration of R-Patna must contain the line: interface GigabitEthernet0/0.34[^!]*encapsulation dot1Q 34[^!]*ip address 192.168.32.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.35 uses dot1Q 35 and is the gateway of Research The configuration of R-Patna must contain the line: interface GigabitEthernet0/0.35[^!]*encapsulation dot1Q 35[^!]*ip address 192.168.132.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 Cameras reaches Research From Cameras-PC, ping 192.168.132.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.132.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-Patna SW-Patna Cameras-PC 192.168.32.10/24 · gw 192.168.32.1 Research-PC 192.168.132.10/24 · gw 192.168.132.1 Drawn from this lab: devices, cables, ports and the addresses already set.
Device Model Address already set
R-Patna ISR 2911 configure it
SW-Patna Catalyst 2960-24TT configure it
Cameras-PC PC 192.168.32.10 / 255.255.255.0 gw 192.168.32.1
Research-PC PC 192.168.132.10 / 255.255.255.0 gw 192.168.132.1
Cabling
R-Patna Gi0/0 ↔ SW-Patna Gi0/1
SW-Patna Fa0/1 ↔ Cameras-PC Fa0
SW-Patna Fa0/2 ↔ Research-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-Patna vlan 34
exit
vlan 35
exit
interface fa0/1
switchport mode access
switchport access vlan 34
exit
interface fa0/2
switchport mode access
switchport access vlan 35
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-Patna: show interfaces trunk lists Gi0/1.
2 Sub-interface Gi0/0.34 uses dot1Q 34 and is the gateway of Cameras 25 On R-Patna: show running-config contains the line(s) matching interface GigabitEthernet0/0\.34 … encapsulation dot1Q 34 … ip address 192\.168\.32\.1 .
3 Sub-interface Gi0/0.35 uses dot1Q 35 and is the gateway of Research 25 On R-Patna: show running-config contains the line(s) matching interface GigabitEthernet0/0\.35 … encapsulation dot1Q 35 … ip address 192\.168\.132\.1 .
4 Cameras reaches Research 25 On Cameras-PC: ping 192.168.132.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-Patna interface g0/1
switchport mode trunk
exit
R-Patna interface g0/0
no shutdown
exit
interface g0/0.34
encapsulation dot1Q 34
ip address 192.168.32.1 255.255.255.0
exit
interface g0/0.35
encapsulation dot1Q 35
ip address 192.168.132.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.