Network & Protocols
Cheat sheet · https://pcornel.dk/topic.php?topic=157
Answer
Network protocols are the rules for how devices address each other and forward data: Ethernet, VLANs and spanning tree at Layer 2; IPv4, IPv6, ARP and ICMP at Layer 3; OSPF and BGP for routing; TCP and UDP for transport.
Remember
Each protocol has a state you can read: a MAC table, a spanning-tree role, an ARP entry, an OSPF neighbour state, a BGP session state, a TCP connection state. Find the first protocol whose state is not what it should be.
First checks
show mac address-table— Layer 2 learning.show spanning-tree vlan <id>— root and port roles.show ip arp/show ipv6 neighbors— next-hop resolution.show ip ospf neighbor— OSPF adjacencies.show bgp ipv4 unicast summary— BGP sessions.show ip route <dst>— the route actually used.
Commands
show interfacesshow ip route <addr>
Verify in this order
link and Ethernet framing → VLAN and spanning tree forwarding → ARP/ND resolved → routing protocol adjacent → route installed → transport connection established
Where it usually breaks
physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=157