What for
A switch connects devices into a local network. It works on layer 2: it reads the destination MAC of every frame and sends it only to the port behind which the destination lies (MAC table). It has nothing to do with IP addresses; a simple switch needs no configuration.
What a switch can do in leyoNET
| Function | Page |
|---|---|
| MAC table, flooding, broadcast | Ethernet and MAC addresses |
| VLANs: access ports and trunks with 802.1Q tag | VLANs and trunks |
| spanning tree against loops | Spanning tree (STP) |
| port channel with LACP | Port channel and LACP |
| access lists on ports | Access control lists (ACL) |
shutting down ports (shutdown), colours and descriptions | Documenting networks |
| command line and SSH | SSH |
Depending on the model a switch has 8, 16, 24 or more RJ45 ports and SFP slots for fibre. The front view on the right shows the ports as on the device; clicking an occupied port and then a free one moves the cable.
Command line
Switch# show mac address-table
Switch# configure terminal
Switch(config)# interface port3
Switch(config-if)# switchport access vlan 20
Switch(config-if)# description Office printer
How to do it in leyoNET
The same text as in the app’s help (F1 key).
Switch
Connects devices in the same network. It learns which MAC address is on which port and forwards frames accordingly (Switching). Managed switches support VLANs, Trunks and Spanning tree (STP). SFP slots accept fibre modules (SFP modules).
Management address: with the VLAN feature the switch has a VLAN interface in the Addresses tab, reachable by ping and SSH (interface vlan 1, ip address …, ip default-gateway …). It does not route.
Practise
- ★★☆☆☆ Small LAN with a switch · 4 goals · Worksheet (German)
- ★☆☆☆☆ Lock out the guest · 2 goals · Worksheet (German)
- ★★★☆☆ Separate networks with VLANs · 4 goals · Worksheet (German)
- ★★★☆☆ A loop without a storm · 3 goals · Worksheet (German)
In leyoNET under Tools → Exercise catalogue. Every exercise checks itself.