Wiki DE Start in the browser

Wiki › Devices

Switch

Connects devices in the same network, learns MAC addresses, separates networks with VLANs and prevents loops with spanning tree.

Layer
2 (Sicherung)

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

FunctionPage
MAC table, flooding, broadcastEthernet and MAC addresses
VLANs: access ports and trunks with 802.1Q tagVLANs and trunks
spanning tree against loopsSpanning tree (STP)
port channel with LACPPort channel and LACP
access lists on portsAccess control lists (ACL)
shutting down ports (shutdown), colours and descriptionsDocumenting networks
command line and SSHSSH

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.

Read on

Found a mistake or have an idea? Source of this page on GitHub.