Professional Documents
Culture Documents
default routes
partial updates
full updates
BGP Routing Algorithm
Tables
and Tables
Open: Starts the session (like the hello packet)
Keepalive: Checks whether neighbor is stil alive
Update: Network reachability exchanges
Notifications: Something bad has happened; close session
Neighbor table: the connected BGP friends
BGP table: a list of ALL BGP routes (can be big)
Routing table: a list of the best routes
host route:
conf t
int lo4
ip address 4.4.4.4 255.255.255.255
neighbor 1.1.1.1 update-source lo4
ip route [ip][mask]
! it is recommended that this be less than 5, otherwise it can cause routing loops
20 - BGP - Implementation and Tuning 2
Two ways to get networks into BGP
network command
redistribution
BGP Synchronization (is off by default in iOS versions 12.2(8)T and later)
Do not use or advertise a route learned via IBGP until the same
route has been learned from the internal routing protocol
BGP next-hop processing
peer-group
remote-as 5500
next-hop-self
update-source lo1
BGP split-horizon: do not send updates that you receive via IBGP to other IBGP
peers
How BGP Neighbor relationships form
1. Idle: Verifying route to neighbor
2. Active: Attempting connectivity to neighbor
3. Open sent: Open message (hello) sent to neighbor
4. Open confirm: Neighbor replied with open message
4a. Active: Neighbor failed to reply or mismatched parameters
5. Established
A router can sometimes become "stuck in active", where it will keep going
back and forth between 3 and 4a
"clear ip bgp *" for configurations to take effect
attributes
autonomous system path (AS-path - mandatory)
next hop address (mandatory)
origin (mandatory)
local preference (discretionary)
atomic aggregate (discretionary)
Optional attributes
aggregator
10. When both paths are external, prefer the path that was received first (the
oldest one)
11. Prefer the route that comes from the BGP router with the lowest router ID
12. If the originator or router ID is the same for multiple paths, prefer the path
with the minimum cluster list length
13. Prefer the path that comes from the lowest neighbor address
23 - BGP - Tuning Attributes 2
neighbor 10.1.13.2 shutdown: keeps all the settings for that neighbor