Palo Alto BGP Configuration
BGP configuration under a PAN-OS virtual router with eBGP/iBGP peers, import/export policy, prefix filtering, and route-map equivalents via PAN-OS route filters.
What is it?
BGP on Palo Alto runs within the virtual router context (not a standalone process). PAN-OS supports eBGP and iBGP under the same virtual router, with peer groups, import/export policies, and redistribution from connected/static/OSPF routes. Palo Alto BGP is commonly used for multi-homed internet connectivity (dual ISP with eBGP peering), SD-WAN underlay routing, or data center peering with spine switches. Route filtering is done via 'policy' objects referencing address prefix filters.
When to use
- ·Connecting to ISPs for multi-homed internet access with traffic engineering
- ·Data center deployments where the firewall peers with core switches (eBGP or iBGP)
- ·SD-WAN scenarios where the firewall needs to advertise and receive prefixes dynamically
- ·Receiving full BGP tables from an ISP for traffic path selection
When NOT to use
- ·Simple single-ISP deployments — a static default route (0.0.0.0/0) is simpler and more reliable
- ·Routing inside the campus/DC — use OSPF for internal routing; BGP for external/inter-domain
How it compares
Prerequisites
- →Virtual router must be configured first
- →AS number agreed with the ISP (public AS for internet peering, private AS 64512-65534 for internal BGP)
- →Route filters should be prepared before enabling BGP to prevent accidental route leaks
- →For ISP peering: the ISP must provide their peer IP and AS number
Config Generator
Verification commands
show routing protocol bgp peerShow BGP peer status and session state
ExpectedPeers should show 'Established' state with non-zero prefix counts for received/sent routes
show routing route type bgpShow BGP routes installed in the routing table
ExpectedLists BGP routes with next-hop, AS path, and preference. Missing routes indicate filtering or peering issues.
show routing protocol bgp ribShow the BGP RIB (Routing Information Base) before route selection
ExpectedShows all received paths including non-best paths. Best path marked with '*'
Debug commands
show routing protocol bgp peer <name> detailShow detailed BGP session state, capabilities, and error messages
Common mistakes & fixes
Further learning
Recommended books to go deeper on this topic.
BGP Design and Implementation
Randy Zhang & Micah Bartell · Cisco Press · The practical BGP bible — iBGP, eBGP, policies, communities, design patterns
Internet Routing Architectures
Sam Halabi · Cisco Press · BGP for ISPs and large enterprise — AS path, route reflectors, confederation