Lesson 3 of 9 · 26m
Bridges, Bonds, VLANs, and the MTU Trap
Understand common virtual link topologies and diagnose encapsulation, membership, and MTU mismatches with concrete interface evidence.
Real machines rarely have one cable and one address. Hypervisors bridge workloads, servers bond NICs, cloud images carry VLANs, containers hide behind virtual Ethernet pairs, and every layer can add encapsulation. The packet does not care about your intent. It only cares which interface it exits and how many bytes fit.
Draw the interface graph
Use ip link output as a graph, not a list:
5: vetha91c2@if4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master br0 state UP
4: vethb91c2@if5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master br0 state UP
6: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UPmaster br0 means the interface is enslaved to the bridge. @if4 identifies a veth peer by interface index. If the peer is down, traffic may still be queued into a dead-end. Bridges forward at layer 2; an IP address on br0 is for host access, not a requirement for forwarding.
Bonds hide physical truth
Bonding modes determine which slave carries which flow. A bond can be UP while one slave has no carrier:
cat /proc/net/bonding/bond0 2>/dev/null
ip -details link show dev bond0Mode 802.3ad requires switch-side LACP configuration. Active-backup is simpler but still depends on correct failover detection. Never infer redundancy because two interfaces exist; verify which slave currently carries traffic and whether both paths are actually healthy.
VLAN interfaces are just interfaces with tags
sudo ip link add link eth0 name eth0.20 type vlan id 20
sudo ip addr add 192.0.2.14/24 dev eth0.20
sudo ip link set eth0.20 upA VLAN subinterface cannot fix an untagged or wrongly tagged upstream port. Capture on both the parent and the VLAN interface when diagnosis gets muddy:
sudo tcpdump -ni eth0 vlan 20
sudo tcpdump -ni eth0.20If tagged frames arrive on the parent but nothing appears on the child, inspect interface configuration. If nothing arrives on the parent, the problem is upstream.
MTU mismatches rarely fail cleanly
Encapsulation consumes bytes. A 1500-byte physical MTU cannot carry a 1500-byte inner payload through VXLAN, GRE, IPsec, or WireGuard without adjustment or fragmentation:
ping -M do -s 1472 -c 3 192.0.2.10
ping -M do -s 1400 -c 3 192.0.2.10IPv4 size 1472 plus 20 bytes of IP and 8 bytes of ICMP equals 1500. If large packets fail while small ones pass, suspect path MTU before suspecting the application. TCP often hides the failure as slow stalls because retransmission and segmentation mask the original black hole.
Field notes
- Bridge member interfaces generally should not also carry the host's IP configuration; put the host address on the bridge in common designs.
- A bond slave can show traffic even when the bond MAC belongs elsewhere; source learning can confuse unmanaged switches.
- MTU must match end to end for jumbo frames; one 1500 hop silently invalidates a 9000-byte design.
tcpdumpshows packets before some netfilter drops but after many driver-level realities; it is evidence, not a complete packet oracle.- Interfaces named
eth0.20are convention, not magic; inspectvlan idrather than trusting the name.
Was this lesson helpful?