BGP cheat sheet

Session states, eBGP and iBGP rules, the best-path order and the attributes you change.

01 Sessions

router bgp 65000
 bgp router-id 10.255.255.1
 neighbor 192.0.2.1 remote-as 65001
 network 203.0.113.0 mask 255.255.255.0
 neighbor 192.0.2.5 route-map PREFER-B in
ip route 203.0.113.0 255.255.255.0 null0
route-map PREFER-B permit 10
 set local-preference 200
StateMeans
IdleNot trying (shut, no route to the neighbour)
Connect / ActiveTrying TCP 179; Active for long = no answer
OpenSent / OpenConfirmExchanging OPEN messages
EstablishedUp: routes are exchanged

On the full sheet

  1. Best path, in order
  2. Exam traps (4)