Guessing costs time. A proven approach is to work through the OSI model and encapsulationfrom the bottom up: a layer can only work if the one below it works.
Layer
Question
Tool
1 Physical
Is the cable plugged in, is the port active?
link LED, show ip interface brief, show interfaces status
2 Data link
Right VLAN, does the switch learn the MAC?
show vlan brief, show mac address-table, arp -a
3 Network
Are address, mask and gateway correct? Is there a route there and back?
ipconfig, ping, tracert, show ip route
4 Transport
Is the port open, does the firewall let it through?
netstat, nmap, show firewall, show access-lists
7 Application
Is the service running, is the name right?
nslookup, browser, packet list
Two more strategies: top-down (start from the user's symptom, e.g. “the web page does not load”) and splitting (divide and conquer: test the middle of the path with ping and so rule out half of it). The only important thing is to change one thing at a time and to test again after each change.
show ip ospf neighbor, show ip protocols: are the routers talking to each other?
show vlan brief, show interfaces trunk: is the port in the right VLAN, does the VLAN run over the trunk?
show running-config: the whole configuration at a glance, good for comparing.
show logging: messages from the device (e.g. port security, OSPF neighbour lost).
Typical symptoms
Symptom
Common cause
Ping within the own network works, into the other network not
gateway missing or wrong; router interface without address
Ping reaches the router, but not beyond
route missing, often the return route on the other router (Static routing)
Two PCs in the same network cannot reach each other
different VLANs, wrong mask, duplicate IP address
Ping by address works, by name not
DNS server entered wrongly or record missing
Ping works, web page does not
service not running, firewall blocks port 80/443, wrong port forwarding
Only reachable sometimes
duplicate IP or MAC address, loop without spanning tree
PC has 169.254.x.x (in leyoNET: “No address received from the DHCP server yet”)
DHCP server unreachable, relay missing, pool empty
Document
Write down symptom, cause and solution briefly, ideally with the output of the decisive command. That makes it faster next time and makes the troubleshooting assessable. How to record a network is described under Documenting networks.
In leyoNET
Every end device has a command prompt (key T or double-click in the simulation); routers and switches have a command line.
The packet list shows where a packet gets lost. Filters such as icmp, arp or lost help; a click shows every frame layer by layer.
Step back and single step slow down the simulation until you can see every frame.
Exercises: “Who has the address twice?”, “IPv6 BC 3” (missing return route) and, in the class network, troubleshooting per site.
How to do it in leyoNET
The same text as in the app’s help (F1 key).
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, firewalls and switches can be configured on the command line (modelled on Cisco IOS and FRRouting). Open it: double-click the device or “Command line” in its window. Everything you set in the CLI appears in the forms and vice versa.
Usage:Tab completes, ? shows the options, ↑/↓ recalls earlier commands (kept until reload, also when switching between design and simulation). Right-click pastes; several lines (e.g. a whole show running-config) run one after another. Abbreviations like conf t, int g0/0, sh ip ro work. A command of another level (e.g. interface vlan 10 while in router ospf) jumps there.
Modes:enable (privileged), configure terminal (configuration), interface …, vlan …, router ospf 1, ip dhcp pool …, ip access-list extended …; exit one level up, end all the way out.
`do`: run a show command from configuration mode without leaving it: do show ip interface brief, do ping 192.168.1.1, do write.
Examples: - Address: interface eth0 → ip address 192.168.1.1 255.255.255.0 → no shutdown - VLAN and access port: vlan 10 → name ENTWICKLUNG → interface port1 → switchport access vlan 10 - Trunk: interface port8 → switchport mode trunk → switchport trunk allowed vlan 10,20 - Router on a stick: interface eth0.10 → encapsulation dot1q 10 → ip address 192.168.10.1/24 - Layer 3 switch: ip routing → interface vlan 10 → ip address 192.168.10.1/24 → ip helper-address 192.168.20.200 - Static route: ip route 10.0.0.0 255.0.0.0 192.168.1.254 - OSPF: router ospf 1 → network 0.0.0.0 255.255.255.255 area 0 - DHCP pool: ip dhcp excluded-address 192.168.10.1 192.168.10.9 → ip dhcp pool VLAN10 → network 192.168.10.0 255.255.255.0 → default-router 192.168.10.1 - ACL: ip access-list extended GAST → permit tcp any host 192.168.1.80 eq 80 → interface port2 → ip access-group GAST in - Port channel: interface range port7 - 8 → channel-group 1 mode active - Checks: show running-config, show ip route, show vlan brief, show interfaces trunk, show ip ospf neighbor, show access-lists, show ip dhcp binding, show etherchannel summary
All commands: documentation docs/cli.md.
Saving:show running-config shows the running configuration. As on a real device, copy running-config startup-config (short write memory) saves it as startup-config; show startup-config shows the saved one. The header of the CLI window shows whether anything changed since the last save.
Packet list
The packet list shows every frame crossing a cable: time, path, protocol, source, destination and a summary. Clicking opens the details following the OSI model model. Use the Display filter to hide what you don't need, and pcap export to take the capture into Wireshark. Each packet once hides unchanged forwards by switches; turn it off to see every segment.
Follow TCP stream: click a packet, then “Follow TCP stream”. The list shows only that connection (like “Follow TCP Stream” in Wireshark); the bar on top shows whether setup (SYN, SYN/ACK, ACK), data and teardown (FIN) occurred.
Example: dhcp or (icmp and host PC1). The chips below the filter set common expressions.
See an example
Slow motion This is how it looks in the simulation: every dot is a frame on the cable.Default gateway
Two subnets connected by a router.
PC 1 sees that the target is in another network and sends the packet to its router. The TTL drops by one.
Three computers on a switch; the notebook has the same MAC address as PC 2.
PC 1 pings PC 2 while the notebook pings PC 1. The switch learns the MAC alternately on two ports and reports «MAC moves»; replies reach the wrong device and pings are lost.
OSI model and encapsulationSeven layers that describe every network connection, and why a packet is built like a Russian doll.
ICMP, ping and tracerouteEcho request and reply, “destination unreachable” and “TTL expired”: how ping and traceroute work.
How routing worksDefault gateway, routing table, longest prefix and administrative distance – and when to route statically, automatically or dynamically.
DNSTranslating names into addresses: zones, records (A, AAAA, CNAME, MX, PTR …), forwarding, cache and nslookup.
PC and notebookEnd devices with a desktop: command line, web browser, e-mail and network settings – static or via DHCP.