The mental model — one Virtual Router, four route sources
Every interface on a Palo Alto firewall belongs to a Virtual Router (VR) — the routing context. A VR can run static routes, OSPF, BGP, RIP, and multicast all at once. Each one feeds the RIB with route candidates; PAN-OS picks the best per-destination using Administrative Distance, marks it Active, and installs it in the FIB for actual forwarding.
One sentence to memorise: "RIB collects, FIB forwards. AD breaks ties, metric breaks ties within the same protocol." Stack that on top of PAN-OS's specific AD defaults (which differ from Cisco's) and routing arguments end quickly.
A self-contained routing context — its own RIB, FIB, route protocols, redistribution rules. You can have multiple VRs on one firewall for tenant separation or SD-WAN-style designs.
Routing Information Base. Holds all route candidates from every protocol. Sorted by destination. Only one per destination is marked A (Active) — that's the AD winner.
Forwarding Information Base. The dataplane copy of the Active routes. Every packet does a FIB lookup at line rate — RIB is too slow to consult per-packet.
The route that won AD selection and got installed in the FIB. show routing route | match A shows just the winners — the route table the dataplane actually uses.
① Static routes + PAN-OS administrative-distance defaults
Sneha at Infosys adds a static default route 0.0.0.0/0 → 203.0.113.1 on her firewall's VR. Then OSPF brings in another default-route candidate. Which wins? On Palo Alto, the static route — PAN-OS's static AD = 10, OSPF Intra-area AD = 30, OSPF External AD = 110. The static beats OSPF every time, the opposite of what Cisco people expect.
▶ Route-Decision Animator — which route drops into FIB
Destination 10.20.30.0/24. Four candidate routes arrive — watch AD pick a winner.
10 (PAN-OS default).
30.
110.
20 (industry default).
Static = 10 (Cisco = 1). OSPF Intra-area = 30 (Cisco = 110). OSPF Inter-area = 30. OSPF External = 110. eBGP = 20 (same as Cisco). iBGP = 200 (same as Cisco). Why does PAN-OS use these unusual defaults? Historical — to make routing more deterministic by default. If you mix Cisco and Palo Alto, set AD explicitly on every static / OSPF / BGP statement instead of relying on defaults — saves 4-hour debug sessions.
Rahul at TCS configures a static default route on a PA firewall AND learns the same default from OSPF Type-5 (External). He intentionally wants OSPF to win (his backup ISP is reachable via OSPF only). What's the cleanest configuration change?
② OSPF — the 4 area types and what each one filters
Priya at HCL inherits a fresh OSPF design. Backbone (Area 0) is fine. The spokes have varying needs: pure leaf needs minimal route info; some spokes import external routes (NSSA). OSPF area types determine which LSA types flow into a given area — getting this wrong wastes link bandwidth and forces every router to hold the full external routing table.
▶ Area-Type Filter Animator
Each area type filters specific LSA types. Watch which LSAs reach a router in each area.
show routing protocol ospf neighbor show routing protocol ospf summary
Neighbor Pri State Dead Time Interface 192.168.1.2 1 Full/DR 00:00:38 ethernet1/2 192.168.2.5 1 Full/- 00:00:36 ethernet1/3
A spoke site at Karthik's Flipkart office has 8 routers but only needs a default route from HQ. It has no local route redistribution. Which OSPF area type minimises the routing table without breaking anything?
③ BGP — the 6 peer states and where flaps come from
Aditya at Wipro brings up an eBGP peer to AWS. The peer cycles between Connect, Active, OpenSent, OpenConfirm, never reaches Established. Or worse — it reaches Established, holds for 30 seconds, drops back to Idle, retries. The BGP state machine tells you exactly where the failure lives.
▶ BGP State Machine — Idle to Established
Healthy progression. At each state, the kind of failure that keeps you stuck there.
start event. Stuck here = peer is administratively down OR no route to the remote peer IP.
1. MTU mismatch on the peering link. BGP uses TCP, TCP path MTU is sensitive. A 9000-byte LSP arriving at a 1500-byte hop gets fragmented or dropped — keepalives lost. 2. Hold Timer too aggressive. Default 180s. Cut it to 9s under heavy keepalive loss and you flap every 9 seconds. Match peer's timers explicitly. 3. CPU or control-plane policer drops. If the firewall's mgmt-plane CPU spikes, BGP control messages get dropped — peer expires hold, session resets. Check show system resources.
A BGP peer is cycling between Established and Idle every 3 minutes. show routing protocol bgp peer confirms the flap; logs show "Hold Timer expired". Which root cause is MOST consistent with these symptoms?
④ FIB vs RIB — when a route is "there but not there"
Final layer. You can see a route in show routing route output — but traceroute doesn't use it. Why? Either the route lost AD selection (didn't get the A flag), or the next-hop isn't reachable (recursive lookup fails), or the protocol marked it inactive for a different reason. The FIB is the dataplane truth.
▶ "Route present but not forwarding" — 5-step diagnosis
Symptom: show routing route shows the prefix, but traffic doesn't take it.
show routing route destination 10.20.30.0/24. Is the route marked A? No A = lost AD selection. Identify the winner.
show routing fib | match 10.20.30.0. Route in RIB but missing from FIB = RIB has it but couldn't install (next-hop unreachable, recursion broken).
show routing fib | match <next-hop>. If the next-hop itself has no FIB entry, recursion fails. Static route pointing at an unreachable IP is the classic.
show routing bfd session.
test routing fib-lookup virtual-router default ip 10.20.30.42. Final source of truth — what the dataplane will actually do for this destination.
A static route shows in show routing route with no A flag. The next-hop IP is reachable. Why might PAN-OS still refuse to install the route into the FIB?
show routing fib for the next-hop to confirm reachability before assuming AD is the cause.🤖 Ask the AI Tutor
Tap any question — instant context-aware answer. No login, no waiting.
Pre-curated answers from PAN-OS docs + LIVECommunity. For complex prod issues, paste your show routing route + show routing protocol bgp peer output into chat.techclick.in.
📝 Wrap-up — six more
You've already answered 4 inline. Six left. 70% (7 of 10) total marks the lesson complete on your profile.
📚 Sources
- Palo Alto Docs — Static Route Overview & Configure Route Redistribution (PAN-OS 10.x / 11.x). docs.paloaltonetworks.com
- Palo Alto Docs — Configure OSPFv2 on an Advanced Routing Engine. docs.paloaltonetworks.com
- Palo Alto Docs — Network → Routing → Routing Profiles → BGP (PAN-OS 11.2). docs.paloaltonetworks.com
- Palo Alto KB — How to Influence Routes in OSPF to Take Precedence Over Static + Routing Table has Multiple Prefixes for the Same Route. knowledgebase.paloaltonetworks.com
- LIVECommunity — Support FAQ: How to Troubleshoot BGP on Palo Alto Networks Firewalls (thread 1230588). live.paloaltonetworks.com
- LIVECommunity — BGP Session flaps for every 3 minutes — PAN OS (thread 447212). live.paloaltonetworks.com
- RFC 2328 (OSPFv2) & RFC 4271 (BGP-4) — protocol reference for state machine + area types.
What's next?
Routing controls where packets go in steady-state. Next: HA — what happens when the active firewall dies. Active/Passive vs Active/Active, election factors, heartbeat link saturation, the 2-hour-flap diagnosis.