Wiki DE Start in the browser

Wiki › Crash course for teachers

The first network in 10 minutes

Two PCs, a switch and a ping: shop, cabling, configuring and switching to the simulation.

The screen

On the left is the shop with all devices, in the middle the canvas, on the right the settings of the selected device. At the top right the switch toggles between Design (build) and Simulation (run); the M key does the same.

Step by step

  1. In the shop click “End devices” and drag two PCs onto the canvas.
  2. Under “Switches”, place a switch between them.
  3. Press K (cable), then click PC 1 and the switch one after the other; likewise PC 2 and the switch. leyoNET takes the next free interface; the link LEDs at the cable ends turn green.
  4. Click PC 1 and enter the IP address 192.168.1.10 with mask 255.255.255.0 on the right. For PC 2 use 192.168.1.11. Entries are saved when you leave the field; there is no “Apply” button.
  5. Press M: the simulation is running.
  6. Double-click PC 1, open the command line on the desktop and enter ping 192.168.1.11.

Four replies? Then the network works. The packet list at the bottom now first shows two ARP frames (who has 192.168.1.11?) and then the ICMP echoes. ARP explains why ARP comes first.

Useful shortcuts

KeyEffect
F1Help for the selected device or window
Ctrl+KCommand search: type a command or device name
EAdvanced settings with all tabs (addresses, routing, VLAN …)
Ctrl+DDuplicate selection
Ctrl+ZUndo
IIP calculator
?All keyboard shortcuts

Common pitfalls

  • No ping, message “Request timed out”: addresses in different networks? Both must be in the same network (same network address after applying the mask), see IPv4.
  • Red exclamation mark on the device: two devices have the same address.
  • Red cable: the interface is shut down or the cable type does not fit (e.g. fibre without SFP module, see Cables, fibre and radio).

How to do it in leyoNET

The same text as in the app’s help (F1 key).

Overview

leyoNET lets you build a network from devices and cables, configure it and then run it. Devices send real packets following the standards (ARP, DHCP, DNS, TCP, HTTP, OSPF, BGP …) that you can capture and inspect layer by layer.

  • Left: the shop with all devices (Shop)
  • Centre: the canvas
  • Right: settings of the selected item
  • Top: menu bar, project name (becomes the file name when saving) and the Design and simulation switch

Everything stored is purely technical: no names, no accounts.

More space: the areas on the left (shop), right (properties) and bottom (packet list) can be hidden and shown with the grips at the edge of the canvas (‹ ›) or under View.

leyoNET is free and ad-free. If you would like to support its development: Help → Support leyoNET opens our Patreon page in the browser.

Design and simulation

There are two modes; switch with M or F5.

Design: add devices, cable, configure and document them (areas, colour tags, descriptions, VLAN colours).

Simulation: the network runs. End devices ping, browse or open the command line. Devices can be moved (Wi-Fi roaming, Roaming), ports shut down and packets captured (Packet list). New devices are added only in Design.

Starting the simulation creates a Snapshots automatically.

Shop

The shop on the left is grouped by category. Clicking a category opens its variants with ports and typical price.

  • Drag a device onto the canvas or click it (placed in the centre)
  • Connections: pick a type, then click two devices
  • Modules: drag an SFP module onto a switch or router

What the shop shows depends on the Features.

Select, move, copy

In design mode you can work on several devices and areas at once:

  • Selection frame: drag on empty space. Every device whose centre lies inside the frame is selected, and every area that lies completely inside it. With Shift the frame adds to the current selection and can also be drawn inside an area.
  • Shift+click adds or removes a device or area, Ctrl+A selects everything on the floor shown.
  • Moving: dragging a selected item moves the whole selection; so do the arrow keys (further with Shift). An area only moves itself; the devices inside it only move along if they are selected too (e.g. with a frame around everything).
  • Copy and paste: Ctrl+C copies, Ctrl+V pastes with an offset (again and again, each time further along), Ctrl+D duplicates directly. Cables between the selected devices are copied too, cables to the outside are not. A single device comes without IP addresses because it usually belongs in the same network. A group keeps all its settings, e.g. for a second branch office. If it later ends up in the same network, leyoNET warns about duplicate addresses (Duplicate addresses).
  • Del deletes the whole selection, Undo brings it back.

Panning the view: drag with the right or middle mouse button, or hold Space and drag. In the simulation, dragging on empty space also pans. The mouse wheel zooms.

Advanced settings

The inspector on the right shows only the basic settings: name, addresses, the SSID for an access point. Advanced … (key E) opens everything else in a separate window with tabs:

  • General, Addresses, Ports (front view and port table)
  • Routing: routing table coloured by origin (C connected, S static, S* default route, O OSPF, R RIP, B BGP). Enter a new route in the last row and add it with +, edit it with ✎. Sorted by prefix like the route lookup (most specific first, default route last); the order of entry does not matter
  • depending on the device NAT, DHCP, VLAN & STP, Wi-Fi, Email, Services, Access
  • in the simulation also State (ARP, MAC and NAT tables)

The window can be moved by its header and resized at its bottom corners: bottom right to the right and down, bottom left to the left and down (handy when it sits at the right edge). When opened again it has its normal size. Each device can have its own window (up to six) while the canvas stays usable. ◀ ▶ or Page Up/Page Down switches straight to the previous or next device; the tab stays.

Input is saved as soon as you leave a field (Tab, click elsewhere or Enter). Errors only appear when you leave the form so that half-finished input does not get in the way.

Keyboard shortcuts

? lists every shortcut, Ctrl+K (⌘K) searches any command.

  • M / F5 Design ↔ Simulation
  • V select, K cable, B area
  • Ctrl+C / Ctrl+V copy and paste, Ctrl+D duplicate, Ctrl+A select all (Select, move, copy)
  • F2 rename, Del delete
  • A show IP addresses, P show interface names on cables, R rack view, I IP calculator
  • + / − / 0 zoom
  • F1 help for the selected item

Practise

  • ★☆☆☆☆ Connect two computers · 3 goals · Worksheet (German)
  • ★★☆☆☆ Small LAN with a switch · 4 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.