Pcornel
Virtualization · Virtual Networking

Virtual Network Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=3541

Back to the Topic

Answer

Virtual Network Troubleshooting isolates faults by following the actual guest traffic path from the workload and guest stack through the vNIC, virtual port/switch/bridge, host uplink or overlay/NAT function, external network and return path.

Remember

  • Start with the exact failing source, destination, protocol and time; “network down” is too broad.
  • Prove each boundary in order and stop at the first point where expected traffic/state diverges.
  • Local link/port success does not prove VLAN, routing, NAT, MTU, DNS or application success.
  • Make one controlled change at a time and retest the original workload, not only a substitute ping.

First checks

  • virsh domifstat <vm> <vnet> — VM NIC counters
  • tcpdump -e -i <tap|bridge> — see frames at each hop
  • bridge fdb show | grep <mac> — MAC learned

Commands

bridge link
Operational command for Inspect Linux bridge port state. Focus fields: interface, bridge master, state, flags and forwa…
ip addr
ip route
ip neigh
ip a
ip r
esxcli network vm port list -w <world>
show mac address-table address <mac>

Verify in this order

guest → vNIC → vSwitch → uplink → physical switch

Where it usually breaks

First mismatch in guest NIC → virtual switch/bridge → VLAN/port group/security policy → physical uplink → routed path → peer/workload; preserve identity/native error/pre-state before mutation.

Virtual Networking → Virtual Network Troubleshooting reference map

BoundaryMeaningEvidence limit
GuestLink/IP/route/neighborStart boundary
VirtualizationvNIC/port/VLAN/switchHypervisor boundary
Hostuplink/team/bond/tunnel/NATHost boundary
Externalswitch/router/service/returnEnd-to-end boundary

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3541

Confirmation

Confirm action

Continue?