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 LabDevices: SW1, HUB1, PC1, LAP1, PC2
SW1 Fa0/1 goes to a hub where PC1 sits. Lock that port to one device: int fa0/1 → switchport mode access → switchport port-security → switchport port-security mac-address sticky Then connect the rogue laptop LAP1 to the hub - the port goes err-disabled! (show port-security, show interfaces status). Recover with shutdown / no shutdown after removing it.
▶ Start this lab in the browser📖 Command guide🧭 Watch how Ethernet switching works