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
Requirements
- 1SW1 Gi0/1 is a trunk that carries VLANs 10 and 20
- 2R1 Gi0/0 is switched on
- 3Gi0/0.10 uses 802.1Q VLAN 10 and has the address 192.168.10.1 255.255.255.0
- 4Gi0/0.20 uses 802.1Q VLAN 20 and has the address 192.168.20.1 255.255.255.0
- 5PC-Sales can ping its gateway, 192.168.10.1
- 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.