PATCH//NOTES Open it in the app
← All hands-on practice
Networking · 25 min

Inter-VLAN routing: letting VLANs talk

Harbourside College's VLANs keep staff, students and guests apart. Now they need to reach each other: route between them with one router, then keep students out of staff.

Start it: free, in your browser, no account

What you will do

  1. From PC1 (Staff), ping PC2 (Students) at 10.10.20.12. PC1's gateway is 10.10.10.1.
  2. On S1, make Fa0/24 (the cable to R1) an 802.1Q trunk.
  3. On R1, bring up GigabitEthernet0/0. Router interfaces start shut down.
  4. On R1, create subinterface G0/0.10 for VLAN 10 with the address 10.10.10.1 255.255.255.0.
  5. Do the same for VLAN 20 (10.10.20.1) and VLAN 30 (10.10.30.1).
  6. From PC1, ping PC2 again.
  7. On R1, look at the routing table.
  8. Students mustn't reach staff. On R1, create an extended ACL named STUDENTS that denies 10.10.20.0/24 to 10.10.10.0/24 and permits everything else. Apply it inbound on G0/0.20.
  9. From PC2 (Students), ping PC1 (Staff).
  10. From PC2, ping PC3 (Guest). It should still work.
  11. From PC1 (Staff), ping PC2. The rule only blocks students, so why does this fail?

Exam objectives it practises

  • CompTIA Network+ 2.1 Routing technologies
  • CompTIA Network+ 2.2 Switching technologies and features
  • CompTIA Network+ 4.3 Network security features, defences and solutions
  • CompTIA Network+ 5.3 Network service issues
  • CompTIA Network+ 5.5 Tools and protocols for troubleshooting
  • CompTIA Security+ 2.5 Mitigation techniques
  • CompTIA Security+ 3.2 Securing enterprise infrastructure
  • CompTIA Security+ 4.5 Enhancing enterprise security
  • CompTIA PenTest+ 5.2 Lateral movement, pivoting and tunnelling

Simplified simulation of a Cisco 2911 router and Catalyst 2960 switches running IOS 15: only the commands this lab needs are modelled, and some long outputs are shortened (marked [Simulator]). Access lists: only named extended lists with ip and icmp entries, applied inbound. When an access list denies a packet, a real router answers with an ICMP "administratively prohibited" message unless no ip unreachables is set on the interface (security baselines ask for it); this lab behaves as if it is set, so a blocked ping times out. The switches start where the VLAN lab ends. IOS abbreviations work as on a real router (sh ip int br, int g0/0.10, enc dot1q 10, wr); pings are sent from the PCs, which are Windows (ipconfig, ping, hostname). Addresses are private (10.10.x.x) and the college is fictional.