VPC Network Troubleshooting
Symptoms, causes and fixes for Spinifex VPC networking: missing public IPs, unreachable instances, upstream MAC filtering, OVN database faults and stale ARP.
Overview
Each entry below starts from a symptom. The commands that inspect each layer, from the OVN databases to the physical NIC, are in the Debugging Toolkit. For how the network is set up, see VPC Networking.
Troubleshooting
VPC Creation Fails
Check OVN services and vpcd daemon:
sudo systemctl is-active ovn-controller
journalctl -u spinifex-vpcd -f
Instances Cannot Reach Each Other
Geneve tunnels may not be established:
sudo ovs-vsctl show | grep -i geneve
sudo ss -ulnp | grep 6081
From inside a VM:
ip addr show
ip route show
Instance Has No Public IP
- Check subnet has
MapPublicIpOnLaunch:
``bash aws ec2 describe-subnets --subnet-ids $SUBNET \ --query 'Subnets[0].MapPublicIpOnLaunch' ``
- Check IGW is attached:
``bash aws ec2 describe-internet-gateways \ --filters Name=attachment.vpc-id,Values=$VPC ``
- Check external IP pool:
``bash nats kv get spinifex-external-ipam wan ``
- Check OVN NAT rules:
``bash sudo ovn-nbctl lr-nat-list vpc-$VPC ``
Instance Has Public IP But No Internet
The instance shows a public IP in describe-instances but cannot reach the internet, and inbound connections hang. The usual cause is a missing default route: the subnet's effective route table has no 0.0.0.0/0 route to the IGW, so Spinifex gates the subnet with a drop policy.
# Find the route table that applies to the subnet and check its routes
aws ec2 describe-route-tables \
--filters Name=association.subnet-id,Values=$SUBNET \
--query 'RouteTables[0].Routes'
# Expect a route with DestinationCidrBlock 0.0.0.0/0 and a GatewayId of igw-...
If the subnet has no explicit association it falls back to the VPC's main route table — check that one too, then add the route to whichever table applies:
aws ec2 create-route --route-table-id $RT \
--destination-cidr-block 0.0.0.0/0 --gateway-id $IGW
On the host, the drop policy installed when a subnet lacks an IGW route appears as a Logical_Router_Policy on the VPC router:
sudo ovn-nbctl lr-policy-list vpc-$VPC
# A drop policy matching the subnet CIDR means the subnet is gated.
Public IP Not Reachable from WAN
Work through these checks in order — each eliminates a class of issues.
1. Verify OVS wiring
# br-int and br-ext must exist
sudo ovs-vsctl show | grep -E "Bridge (br-int|br-ext)"
# br-ext should have a veth port linking it to br-wan
sudo ovs-vsctl list-ports br-ext
# The Linux WAN bridge should have the physical NIC and the veth peer
bridge link show | grep br-wan
# Bridge mappings must point at br-ext
sudo ovs-vsctl get Open_vSwitch . external-ids:ovn-bridge-mappings
# Expected: "external:br-ext"
2. Verify chassis and gateway scheduling
# What OVS thinks the chassis name is
sudo ovs-vsctl get Open_vSwitch . external-ids:system-id
# What OVN SB registered (must match the system-id above)
sudo ovn-sbctl show
# Look for: Chassis {name}
# What vpcd scheduled as gateway chassis (must match SB chassis name)
sudo ovn-nbctl list Logical_Router_Port gw-$VPC | grep gateway_chassis
If these don't match, see "Chassis name mismatch" below.
3. Verify NAT rule
sudo ovn-nbctl lr-nat-list vpc-$VPC | grep dnat_and_snat
# Must show the public IP → private IP mapping
# For distributed NAT, external_mac and logical_port should be set
# (the VM's MAC and ENI port name)
4. Verify ARP resolution
From another host on the same LAN, check if OVN responds to ARP:
# On the remote host:
ping -c 1 {public_ip}
ip neigh show {public_ip}
# Should show the VM's ENI MAC (distributed NAT) or the OVN router MAC
If ARP fails, confirm the WAN bridge is forwarding:
# Physical NIC must be enslaved to br-wan
ip -d link show {nic} | grep "master br-wan"
# br-wan must be UP and have an IP
ip -br addr show br-wan
# br-ext must have a veth port whose peer is enslaved to br-wan
sudo ovs-vsctl list-ports br-ext
bridge link show | grep br-wan
5. Verify packet flow with tcpdump
Capture at each layer to find where packets stop:
# Layer 1: Does the ARP/ICMP arrive on the physical NIC?
sudo tcpdump -i {nic} -n "host {public_ip}"
# Layer 2: Does it cross the Linux WAN bridge?
sudo tcpdump -i br-wan -n "host {public_ip}"
# Layer 3: Does it reach the OVS uplink bridge?
sudo tcpdump -i br-ext -n -e "host {public_ip}"
If traffic arrives on the physical NIC but not br-wan, the NIC is not enslaved to the bridge. If it reaches br-wan but not br-ext, the veth pair between them is missing or down — re-run setup-ovn.sh. If replies leave the physical NIC but the remote host does not receive them, see Public IP Replies Leave the Host but Do Not Arrive.
6. Use ovn-trace for pipeline debugging
Simulate a packet through the entire OVN pipeline:
sudo ovn-trace --ct=new ext-shared \
'inport=="ext-port-shared" && eth.dst==ff:ff:ff:ff:ff:ff && \
arp.op==1 && arp.sha=={remote_mac} && arp.spa=={remote_ip} && \
arp.tpa=={public_ip}'
The output shows every table the packet passes through and what action is taken. Look for drop actions or unexpected paths.
Public IP Replies Leave the Host but Do Not Arrive
Symptom: In pool mode, an instance has a public IP or an Elastic IP, and its security group allows the traffic. A ping or SSH connection from another host on the LAN gets no reply. A capture on the host shows each reply leave the physical NIC:
sudo tcpdump -e -n -i {nic} "host {public_ip} and icmp"
# The echo reply leaves {nic}. Its source MAC is the ENI MAC of the instance,
# not the MAC of {nic}.
Cause: In pool mode, each public IP sends frames on the wire with the ENI MAC of its instance. The device upstream of the host drops frames from a MAC address that it did not assign or learn. Some home routers and access points do this, a switch port with port security or a MAC limit does this, and a cloud VNIC always does this. The host sends the reply correctly, so no log on the host shows the drop.
To confirm the cause, run the same capture on the remote host. If the reply does not arrive there, the upstream device drops it.
Fix: Use nat mode with a public pool. In this mode, the host answers for each public IP with its own MAC address, so the upstream device sees only the MAC of the host. The setup is in Public IPs in NAT mode:
sudo /usr/local/share/spinifex/setup-ovn.sh --management --nat-uplink
sudo spx admin init --external-mode=nat --external-source=dhcp \
--external-bind-bridge br-wan
Use --external-pool and --external-gateway instead of --external-source=dhcp for a static range. On a node that is already initialised, spx admin init needs --force, which overwrites /etc/spinifex/spinifex.toml. Make a copy of the file before you run it.
OVN SB Commit Failure Loop
Symptom: ovn-controller log shows:
OVNSB commit failed, force recompute next time.
Repeated millions of times. Port binding never happens (up: false).
Cause: Stale entries in the OVN Southbound DB (old chassis records, port bindings, datapath bindings) conflict with ovn-controller's expected state, typically after an ungraceful shutdown.
Fix: Delete both OVN DB files and restart:
sudo systemctl stop ovn-central ovn-controller
sudo rm -f /var/lib/ovn/ovnnb_db.db /var/lib/ovn/ovnsb_db.db
sudo systemctl start ovn-central ovn-controller
# vpcd reconcile will recreate the NB topology on next startup
WAN NIC Not Enslaved to a Bridge
Symptom: setup-ovn.sh exits with an error like "WAN interface 'eno1' (192.168.1.31) is a physical NIC. Cannot auto-create a bridge" and refuses to continue.
Cause: Spinifex requires the WAN NIC to be enslaved to a Linux bridge (typically br-wan). Macvlan is no longer supported, and attaching the NIC directly to OVS would break SSH and any other host services using the NIC. The same error lists the other options: a dedicated WAN NIC with --wan-bridge=br-wan --wan-iface=<nic>, overlay-only networking, or routed nat mode with --nat-uplink.
Fix: Move the host IP and default route onto a Linux bridge. Example netplan:
network:
version: 2
ethernets:
wan:
dhcp4: false
bridges:
br-wan:
interfaces: [wan]
dhcp4: true
Apply (sudo netplan apply), confirm the host IP is now on br-wan (ip -br addr show br-wan), and re-run setup-ovn.sh.
Stale ARP on Remote Hosts
Symptom: Ping from a LAN host to a VM public IP fails after a reset, but worked before. The remote host has a stale ARP entry with the old MAC.
Fix: Flush the ARP entry on the remote host:
# On the remote host:
sudo ip neigh flush dev {nic} {public_ip}
ping {public_ip} # should work now
OVN sends periodic gratuitous ARPs from the chassis hosting the VM that will eventually update remote ARP caches, but flushing is faster for testing.
Security Group Rules Not Taking Effect
# The port group name is the SG ID with "-" changed to "_"
PG=${SG_ID//-/_}
# Check port is in correct port group
sudo ovn-nbctl pg-get-ports $PG
# Check ACLs
sudo ovn-nbctl acl-list $PG