VLANs on a switch

Practise this lab in the free NanoTech-kw Network Lab - a Cisco-style simulator that runs in your browser, with hints, an event log and automatic checking.

▶ Open the free Network Lab

Devices: SW1, PC1, PC2, PC3, PC4

Your task

Task: put PC1+PC2 in VLAN 10 and PC3+PC4 in VLAN 20 on SW1:
 conf t
 vlan 10
 vlan 20
 int fa0/1
 switchport access vlan 10
 ...
Then press ✔ Check.

Step by step

  1. Create VLAN 10 and VLAN 20 on SW1.
  2. Put Fa0/1 and Fa0/2 (PC1, PC2) in VLAN 10.
  3. Put Fa0/3 and Fa0/4 (PC3, PC4) in VLAN 20.
  4. Prove it: PC1 reaches PC2 but not PC3.

▶ Start this lab in the browser📖 Command guide🧭 Watch how Ethernet switching works

More labs

Two PCs on a switchRouter between two networksStatic routingInter-VLAN routing (router-on-a-stick)Layer-3 switch with SVIsDHCP server on a routerDHCP server + relay + DNSOSPF between three routersRIP v2NAT/PAT to the InternetACL: protect a serverWireless access pointIPv6 static routingEIGRP between three routersProject: build a small office networkHuawei switch VLANs + Cisco routerOSPF between Huawei and Cisco routersSpanning Tree: who blocks?EtherChannel (LACP)HSRP: a gateway that never diesPort securitySecure remote access (SSH)To the Internet: NAT + DNS + webIPv6 SLAAC + OSPFv3🔧 Fix 1: PC can't leave its network🔧 Fix 2: same VLAN, no ping🔧 Fix 3: one-way routing🔧 Fix 4: inter-VLAN broken🔧 Fix 5: odd subnet problem