Open the lab

[ YOUR LAB FILE ]

Download the starting topology, then work through the lesson in SwitchLab.

Download SwitchLab Lab (.swlab)

  1. Save the .swlab file without renaming its extension.
  2. Open SwitchLab. Import and export controls currently require a desktop-width window. On a smaller screen, Tools → Fit brings the topology into view.
  3. Select Import Sandbox (folder icon), choose the downloaded file, and confirm the device and cable counts below.
  4. Select a device, then choose Open device on desktop or its name in the bottom bar on smaller screens. Select CLI for switches/routers or Desktop → Terminal for PCs. Enter enable only when the prompt ends in >.
  5. Follow this page beside the simulator. Use a free account to export your work. Reimport the original download to restart; export any work you want to keep first.

Prerequisites

  • Complete the focused lessons for the features used in this scenario.
  • For campus policy scenarios, complete VLANs, trunks, IPv4, OSPF and ACL lessons first.

Follow the CCNA study path · Browse all SwitchLab labs

Topology

Connect Departmental VLANs through Routed Gateways: starting network imported into the SwitchLab sandbox.
Starting topology captured in SwitchLab. Select the image to view it at full size.

9 devices · 9 links

Scenario

The routing core is prepared, but the campus handoff left both LAN gateways disabled and a restricted uplink incomplete. Complete the department connectivity plan.

Objectives

  • Implement or restore the approved network design without breaking required control paths.
  • Verify configuration, end-to-end behavior and completed-network persistence.
  • Produce an operational handoff with evidence and a deterministic reset path.

CCNA blueprint

200-301 v1.1 objectives — this lab covers the following specific skills, not every subtopic in the domain.

  • 1.6 — Apply and verify the scenario’s IPv4 addressing.
  • 2.1.a — Verify data access-port membership.
  • 2.2 — Verify the restricted interswitch trunk.

Starting information

  • USERS VLAN 10: PC1/PC2, subnet 10.10.10.0/24, gateway R1 g0/0=10.10.10.1. STAFF VLAN 20: PC3/PC4, subnet 10.20.20.0/24, gateway R1 g0/2=10.20.20.1.
  • SW1/SW2 g0/1 are Users ports and g0/2 are Staff ports. Their g0/8 trunk carries exactly VLANs 10,20. SW1 g0/6 connects to the Users gateway; SW1 g0/7 connects to the Staff gateway.
  • R1 g0/1=172.16.12.1/30 connects to R2 g0/1=172.16.12.2/30. R2 g0/0=10.30.30.1/24 serves PC5=10.30.30.50.
  • Use single-area OSPF process 1: router IDs R1=1.1.1.1 and R2=2.2.2.2, area 0 on transit and LAN prefixes, LAN interfaces passive. No static routes are required.
HostIPv4 addressMaskGateway
PC110.10.10.10255.255.255.010.10.10.1
PC210.10.10.20255.255.255.010.10.10.1
PC310.20.20.30255.255.255.010.20.20.1
PC410.20.20.40255.255.255.010.20.20.1
PC510.30.30.50255.255.255.010.30.30.1
RouterInterfaceIPv4 addressMask
R1g0/010.10.10.1255.255.255.0
R1g0/210.20.20.1255.255.255.0
R1g0/1172.16.12.1255.255.255.252
R2g0/010.30.30.1255.255.255.0
R2g0/1172.16.12.2255.255.255.252
Device / portDevice / port
PC1 / eth0SW1 / g0/1
PC2 / eth0SW2 / g0/1
PC3 / eth0SW1 / g0/2
PC4 / eth0SW2 / g0/2
SW1 / g0/8SW2 / g0/8
SW1 / g0/6R1 / g0/0
SW1 / g0/7R1 / g0/2
R1 / g0/1R2 / g0/1
R2 / g0/0PC5 / eth0

Tasks

  1. Separate same-VLAN switching, inter-VLAN routing and remote routing in a baseline matrix.
  2. Enable the approved dedicated LAN gateways and carry both department VLANs across every required trunk.
  3. Verify each gateway subnet as a connected route and the remote LAN as an OSPF route.
  4. Test local peers, the other department and PC5; save/export with an addressing and cable handoff.

Useful commands

show vlan brief
show interfaces trunk
show running-config
show ip ospf neighbor
show ip route
copy running-config startup-config

Progressive hints

Hint 1

Break the end-to-end path into host settings, local VLAN carriage, gateway reachability, route selection and any access policy.

Hint 2

Use a working control at each layer. Do not remove security controls or add broad routes just to make one ping succeed.

Hint 3

Compare each affected host, interface and route against the approved plan; use the earlier focused lessons for the exact command patterns.

Verification

  • The final network matches every approved addressing, VLAN, routing and policy requirement above.
  • Every required positive path succeeds and every forbidden path remains blocked.
  • Completed export/reload retains the result; reimporting the starter restores the original exercise.

Solution / walkthrough

Show Solution

Use enable only from a > prompt; if already at #, begin with configure terminal.

R1

Commission both dedicated routed LAN gateways.

enable
configure terminal
interface g0/0
no shutdown
exit
interface g0/2
no shutdown
end
copy running-config startup-config

SW2

Restore Staff carriage to the second closet without changing the permitted Users VLAN.

enable
configure terminal
interface g0/8
switchport trunk allowed vlan 10,20
end
copy running-config startup-config

Run every verification check above after the changes. A saved configuration alone does not prove packet delivery.

Previous lab

Restore a Branch after a Failed Change

Related labs

Related articles and tools

Next recommended lab

Migrate a Routed Site from Static Routes to OSPF