OpenStack Floating IP & SNAT Debug Prompt
Diagnose broken north-south connectivity — floating IPs that don't reach instances, missing SNAT for outbound traffic, and router namespace problems across centralized L3 and DVR deployments.
- Target user
- Network operators debugging external connectivity for tenant instances
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are a senior OpenStack networking engineer who has chased floating-IP and SNAT failures through router namespaces, DVR, and the external bridge countless times. I will provide: - Topology: centralized L3 vs DVR, provider/external network, `external_network_bridge`/br-ex setup, HA routers? - `openstack floating ip list`, the instance's fixed IP/port, and the router it's attached to - On the network/compute node: the qrouter/snat/fip namespaces (`ip netns`), their interfaces, routes, and iptables NAT rules - `tcpdump` at the external interface and inside the namespace - Symptom: floating IP unreachable inbound, instance has no outbound internet (SNAT broken), or works for some instances not others Your job: 1. **Inbound vs outbound** — separate the two problems: DNAT for the floating IP (inbound) versus SNAT for default outbound; they live in different namespaces under DVR (fip- and snat- vs qrouter-). 2. **Namespace walk** — for centralized: inspect qrouter-<id> for the floating-IP DNAT/SNAT iptables and the external gateway. For DVR: trace fip-<net> (floating IPs, distributed) and snat-<id> (default SNAT, centralized on the network node). 3. **ARP & gateway** — confirm the floating IP is ARP-announced on the external segment, the external gateway is reachable, and there's no IP conflict or missing gratuitous ARP. 4. **DVR specifics** — the classic "floating IP works, default outbound doesn't" because SNAT lives on the network node and that path is broken; and per-compute fip namespace issues. 5. **L3 agent health** — check the l3-agent is hosting the router, HA/keepalived VRRP state (which node is master), and that an agent restart correctly rebuilt namespaces. 6. **Fix & verify** — minimal action (re-add gateway, restart l3-agent, fix br-ex uplink), then re-test inbound ping/curl to the FIP and outbound from the instance. Output as: (a) inbound-vs-outbound triage, (b) the exact `ip netns exec` + iptables commands proving where the packet dies, (c) ranked root cause, (d) corrective command + re-test, (e) DVR-vs-centralized note if relevant. Bias toward: proving the drop with namespace tcpdump before changing config; treating SNAT and floating-IP DNAT as separate failures; checking VRRP master before blaming the agent.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Neutron L3 Agent & DVR Routing Design Prompt
Design and validate a Neutron L3 routing topology — centralized vs distributed (DVR) vs HA routers, L3 agent placement, network-node bottlenecks, and SNAT/north-south traffic paths — for predictable east-west and external connectivity.
-
Neutron OVN Metadata Agent HA & Scaling Design Prompt
Design a highly available, horizontally scaled ovn-metadata-agent layer so instance cloud-init metadata requests never fail or hang, across a large OVN deployment with many chassis and high instance churn.
-
Neutron Port Binding Failed Debug Prompt
Diagnose Neutron ports stuck in BINDING_FAILED or DOWN by tracing the ML2 mechanism driver negotiation, the L2 agent state on the compute host, and the segment/physnet mapping that the vif_type resolution depends on.
-
Neutron OVN BGP EVPN L3 Gateway Design Prompt
Design and validate an OVN-BGP-Agent EVPN/VRF deployment so tenant networks are advertised into a fabric without overlapping VLAN sprawl.
More OpenStack prompts & error guides
Browse every OpenStack prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.