Everything you need to answer "why did BGP choose that path?" on one page.
Essentials
Item
Value
Transport
TCP port 179
Administrative distance
eBGP 20, iBGP 200
Timers
Keepalive 60 seconds, hold 180 seconds (defaults)
Private AS numbers
64512 to 65534, and 4200000000 to 4294967294
eBGP TTL
1 by default; loopback peering needs multihop
iBGP rule
A route learned from an iBGP peer is not passed to another iBGP peer
Best path selection (in order)
Weight, highest (local to the router)
Local preference, highest
Locally originated routes
AS path, shortest
Origin: IGP, then EGP, then incomplete
MED, lowest
eBGP over iBGP
IGP metric to the next hop, lowest
Oldest eBGP path
Lowest router ID
Lowest neighbour address
Before any of this, the route must be valid: the next hop has to be reachable.
Neighbour states
State
Meaning
Idle
Not trying, or waiting to retry
Connect
Waiting for the TCP connection
Active
TCP attempt failed, trying again. Not a healthy state.
OpenSent
OPEN sent, waiting for the peer OPEN
OpenConfirm
Waiting for the first keepalive
Established
Up. Routes are exchanged.
Stuck in Active or Connect: check reachability to the peer address, update source, TCP 179 filtering, multihop. Flapping between OpenSent and Idle: AS number, authentication or capability mismatch.
Welcome to my blog, dedicated to network and security engineering enthusiasts. Here, you can learn about various vendors and gain valuable insights and resources to excel in the field of network engineering!
0 Comments
Post a Comment