Arista EOS BGP Configuration
eBGP and iBGP routing for Arista EOS with peer groups, route-maps, prefix-lists, communities, and multi-path ECMP support.
What is it?
Arista BGP uses the familiar Cisco IOS-like syntax with peer-groups and neighbor configuration. A key Arista feature is 'bgp bestpath ecmp-fast' and 'maximum-paths' — enabling ECMP load-balancing across multiple BGP paths, critical for data center spine routing. Arista is widely deployed as a data center BGP route reflector and spine switch where it must handle full BGP tables with high throughput. EOS also supports BGP unnumbered (using IPv6 link-local addresses) for simplified cabling in large fabrics.
When to use
- ·Internet edge routing with ISP eBGP peering
- ·Data center spine-leaf routing where spine acts as BGP route reflector
- ·Multi-homed deployments needing traffic engineering with AS-path or local-preference
- ·BGP EVPN overlay (covered in the bgp-evpn template) — this template covers the base BGP config
When NOT to use
- ·Internal campus routing — use OSPF for simpler IGP routing
- ·Very small networks — a static default route is less complex than BGP
How it compares
Prerequisites
- →Router ID should be a stable loopback address
- →For iBGP: OSPF or IS-IS underlay must be running so iBGP next-hops are reachable
- →AS number decided — use private AS (64512-65534) for iBGP / internal BGP, public AS for ISP peering
- →Route-maps should be created before referencing them in neighbor config
Config Generator
Verification commands
show bgp summaryShow all BGP peer states and prefix counts
ExpectedPeers show 'Estab' state with non-zero 'PfxRcd'. 'Active' or 'Idle' means session not up.
show ip bgpShow full BGP table with all paths and best-path selection
ExpectedBest path marked with '>'. ECMP paths marked with '='. Next-hop should be reachable.
show bgp neighbors <peer-ip> advertised-routesVerify which routes are being advertised to a specific peer
ExpectedLists routes being sent to peer. Empty means export policy or network statement missing.
Debug commands
show bgp neighbors <peer-ip>Show detailed BGP session state 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