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
| Setting | Meaning |
|---|---|
| IP address and mask | own address and size of the network |
| Default gateway | router that receives everything not in the own network |
| DNS server | who translates names like www.schule.example into addresses |
| DHCP | everything automatically from the DHCP server instead of fixed values |
| IPv6 | automatic (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 /releaseand/renew,ifdown eth0andifup eth0(switch the port off and on, alsoip link set eth0 down|upornetsh interface set interface Ethernet disable|enable),arp -a,nslookup,netstat,ssh. Linux spellings such asip addr,ifconfig,dhclient -rwork 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(alsoipconfig /all, Linux:ip addr,ifconfig): address, mask, gateway, DNSipconfig /releaseandipconfig /renew(Linux:dhclient -r,dhclient): give back or fetch a DHCP addressifdown eth0/ifup eth0(alsoip 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» windowping:-truns until Ctrl+C (you see live when a connection drops),-n 10or-c 10sets the count,-i 1the TTL (then the first router reports “TTL expired”)tracert,nslookup,arp -a,arp -d,netstat,nmap(see Network scanner),ssh,cls;helplists 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.