Posted:
23 Aug 07
C
C
N
P
B
S
C
I
B
G
P
|
BGP
-
Packet Type = Layer 4 protocol, Runs on tcp, port 179
-
Neighbors
-
tcp connectivity required - routers may be multiple hops away
-
neighbors are statically configured
-
Full mesh required, unless using route reflector because routers will
not re-advertise routes learned via iBGP to another internal neighbor
-
External neighbor - a neighbor in a different AS
-
Internal neighbor - neighbor in the same AS
-
keep-alives sent every 60 seconds by default
-
states
-
idle - router is looking for a route to the neighbor
-
connect - 3-way handshake completed
-
open sent - self explanatory
-
open confirm - an agreement on session parameters received
-
established - self explanatory
-
active - no response to the open message
-
Tables
-
BGP table
-
neighbor table
-
topology table
-
topology database
-
routing table
-
forwarding database
-
Messages
-
Open
-
Version
-
AS
-
hold time - 2 neighbors use the shortest configured hold-time
-
router id
-
optional parameters in TLV fields
-
Keepalive
-
Update
-
contains info on one path
-
includes
-
withdrawn routes
-
path attributes
-
IP prefixes that can be reached on the path
-
Notification - sent to report errors or special conditions
-
Attributes
-
Well-known mandatory - must appear in all BGP updates
-
as-path - list of all AS's a route has traversed
-
next hop - entry point for the next AS in the path
-
iBGP - next hop is carried into iBGP from eBGP
-
eBGP - IP of the neighbor who sent the advertised route is
used as next hop
-
origin
-
IGP
-
EGP (no longer used)
-
Incomplete
Well-known discretionary - must be supported by all BGP speakers, but
doesn't have to be included in an update
-
local preference
-
describes preferred exit point of the AS
-
higher is better
-
defaults to 100
-
atomic aggregate
-
Optional transitive
-
does not have to be understood by every bgp speaker
-
routers that do not implement an optional transitive attribute
should pass it on to other routers and mark it as partial
-
examples
-
aggregator - the router id of the router that summarized a
route
-
community
-
Optional non-transitive
-
not implemented by all speakers
-
should not be passed on if not implemented
-
example: MED - preferred path into an AS
-
Route selection
-
highest weight (cisco only, is not advertised to other routers)
-
highest local preference - factory default of 100
-
local routes (next hop of 0.0.0.0) - generated by this router
-
shortest AS-path
-
lowest origin code (IGP, EGP, then incomplete)
-
MED - lower MED prefered
-
prefer eBGP over iBGP
-
closest IGP neighbor, metric-wise
-
oldest route
-
lowest neighbor router id
-
lowest neighbor IP address
-
configuring
-
router bgp as#
-
configure at lease one neighbor -
neighbor ip-add remote-as
as router command
-
list networks - network
network-add mask
netmask
-
Peer groups
-
create a set of policies applied to multiple peers
-
neighbor group-name
peer-group router config
command
-
neighbor
ip-add peer-group
group-name router
command assigns a neighbor to a peer group
-
Authentication (optional)- neighbor
ip-add password
string router config
command
-
manipulating traffic
-
bgp default local-preference
value router config
command
-
neighbor
ip-add weight
weight
-
you can also use route-maps to apply these attributes to select
routes
-
Verifying and troubleshooting
-
show ip bgp
-
sh ip bgp rib-failure - shows routes that were not installed in the
routing information base and why
-
sh ip bgp neighbors
-
sh ip bgp summary
-
debug ip bgp
-
dampening - info about dampened routes
-
events
-
keepalives
-
updates
-
ipv4 unicast - view the progression through neighbor states
-
References
-
Cisco Press BSCI Authorized Self-Study Guide
-
cisco.com
Back to IS-IS - Up to index - Next to IPv6
| Updated:
23 Aug 07
C
C
N
P
B
S
C
I
B
G
P
|