Wiki DE Start in the browser

Wiki › Devices

PC and notebook

End devices with a desktop: command line, web browser, e-mail and network settings – static or via DHCP.

Layer
1 bis 7 (Endgerät)

What for

PCs and notebooks are the devices people work on. They send and receive but do not forward anything. The notebook can also join the network via Wi-Fi; a PC needs a cable.

Settings

SettingMeaning
IP address and maskown address and size of the network
Default gatewayrouter that receives everything not in the own network
DNS serverwho translates names like www.schule.example into addresses
DHCPeverything automatically from the DHCP server instead of fixed values
IPv6automatic (SLAAC/DHCPv6) or static, depending on the project’s IP version

The desktop

In the simulation a double-click opens the device’s desktop:

  • Command line (also on its own with the T key, even from design mode, or “Open console” in the device window): ping, tracert, ipconfig /all, ipconfig /release and /renew, ifdown eth0 and ifup eth0 (switch the port off and on, also ip link set eth0 down|up or netsh interface set interface Ethernet disable|enable), arp -a, nslookup, netstat, ssh. Linux spellings such as ip addr, ifconfig, dhclient -r work too.
  • Web browser: shows every step (DNS, TCP, HTTP) and the page.
  • E-mail: sending via SMTP, fetching via POP3 or IMAP.
  • Network: addresses and tables at a glance.
C:\> ipconfig /all
C:\> ping 192.168.1.1
C:\> tracert www.schule.example

How to do it in leyoNET

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

PC

End device with one Ethernet port. Needs an IP address, mask, gateway and DNS server (IP addresses). Its desktop has a command prompt (ping, tracert, ipconfig, nslookup), a browser and mail.

Notebook

End device with Ethernet and Wi-Fi. Gets its address statically or via DHCP. When on Wi-Fi it roams to the closer access point if moved during simulation (Roaming).

Console of end devices

Every end device (PC, notebook, server, phone) has a command prompt. Open it: select the device and press T, «Open console» in the device window, or double-click the device in the simulation. The commands need the running simulation; leyoNET switches to it if needed.

  • ipconfig (also ipconfig /all, Linux: ip addr, ifconfig): address, mask, gateway, DNS
  • ipconfig /release and ipconfig /renew (Linux: dhclient -r, dhclient): give back or fetch a DHCP address
  • ifdown eth0 / ifup eth0 (also ip link set eth0 down|up, Windows: netsh interface set interface Ethernet disable|enable): switch a port off or on. This changes the configuration just like switching it off in the «Ports» window
  • ping: -t runs until Ctrl+C (you see live when a connection drops), -n 10 or -c 10 sets the count, -i 1 the TTL (then the first router reports “TTL expired”)
  • tracert, nslookup, arp -a, arp -d, netstat, nmap (see Network scanner), ssh, cls; help lists them all

Routers and switches have a Command line instead.

Practise

  • ★☆☆☆☆ Connect two computers · 3 goals · Worksheet (German)
  • ★☆☆☆☆ Who has the address twice? · 3 goals · Worksheet (German)
  • ★★★☆☆ Assign addresses via DHCP · 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.