zNetLaB › Guided labs › Enterprise
Router on a stick 19 — VLANs 46 and 47
Enterprise Intermediate 4 devices 4 checked tasks 100 points Plan lab
Admin (VLAN 46) and Marketing (VLAN 47) 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.38.0/24 and 192.168.138.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
Admin (VLAN 46) and Marketing (VLAN 47) 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.38.0/24 and 192.168.138.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-Mysuru starts with and VLAN 46, VLAN 47 already configured. Admin-PC is a host with 192.168.38.10/24, gateway 192.168.38.1. Marketing-PC is a host with 192.168.138.10/24, gateway 192.168.138.1. R-Mysuru 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.46 uses dot1Q 46 and is the gateway of Admin (25 pts) Sub-interface Gi0/0.47 uses dot1Q 47 and is the gateway of Marketing (25 pts) Admin reaches Marketing (25 pts)
The activity, in order
The switch uplink Gi0/1 is a trunk Make GigabitEthernet0/1 on SW-Mysuru 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.46 uses dot1Q 46 and is the gateway of Admin The configuration of R-Mysuru must contain the line: interface GigabitEthernet0/0.46[^!]*encapsulation dot1Q 46[^!]*ip address 192.168.38.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.47 uses dot1Q 47 and is the gateway of Marketing The configuration of R-Mysuru must contain the line: interface GigabitEthernet0/0.47[^!]*encapsulation dot1Q 47[^!]*ip address 192.168.138.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 Admin reaches Marketing From Admin-PC, ping 192.168.138.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.138.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-Mysuru SW-Mysuru Admin-PC 192.168.38.10/24 · gw 192.168.38.1 Marketing-PC 192.168.138.10/24 · gw 192.168.138.1 Drawn from this lab: devices, cables, ports and the addresses already set.
Device Model Address already set
R-Mysuru ISR 2911 configure it
SW-Mysuru Catalyst 2960-24TT configure it
Admin-PC PC 192.168.38.10 / 255.255.255.0 gw 192.168.38.1
Marketing-PC PC 192.168.138.10 / 255.255.255.0 gw 192.168.138.1
Cabling
R-Mysuru Gi0/0 ↔ SW-Mysuru Gi0/1
SW-Mysuru Fa0/1 ↔ Admin-PC Fa0
SW-Mysuru Fa0/2 ↔ Marketing-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-Mysuru vlan 46
exit
vlan 47
exit
interface fa0/1
switchport mode access
switchport access vlan 46
exit
interface fa0/2
switchport mode access
switchport access vlan 47
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-Mysuru: show interfaces trunk lists Gi0/1.
2 Sub-interface Gi0/0.46 uses dot1Q 46 and is the gateway of Admin 25 On R-Mysuru: show running-config contains the line(s) matching interface GigabitEthernet0/0\.46 … encapsulation dot1Q 46 … ip address 192\.168\.38\.1 .
3 Sub-interface Gi0/0.47 uses dot1Q 47 and is the gateway of Marketing 25 On R-Mysuru: show running-config contains the line(s) matching interface GigabitEthernet0/0\.47 … encapsulation dot1Q 47 … ip address 192\.168\.138\.1 .
4 Admin reaches Marketing 25 On Admin-PC: ping 192.168.138.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-Mysuru interface g0/1
switchport mode trunk
exit
R-Mysuru interface g0/0
no shutdown
exit
interface g0/0.46
encapsulation dot1Q 46
ip address 192.168.38.1 255.255.255.0
exit
interface g0/0.47
encapsulation dot1Q 47
ip address 192.168.138.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.