Escolar Documentos
Profissional Documentos
Cultura Documentos
BGP Configuration
Module 9
Objectives
BGP Overview
9-2
BGP Overview
iBGP peering
eBGP peering
AS-1
AS-2
AS-3
AS-4
External route
9-3
1.
2.
3.
9-4
OSPF
BGP
Version:
v2
v4
RFC:
2328
1771
IGP
EGP
Type:
Link state
Path vector
Algorithm:
Dijkstra
Convergence: (2)
Fast
Slow
Administrative distance:
110
20
IP / 89
TCP / 179
Configuration complexity:
Medium
Routing granularity:
Router
Scalable for:
Resource consumption:
Low to Medium
High
IGP stands for Interior Gateway Protocols, EGP for Exterior Gateway Protocols. EGPs are
used between independent administrative entities, often called autonomous systems and
IGPs are used inside them.
Convergence time: time needed for the routers to update their routing table after a
change in the network topology.
When several paths are available for a specific network, BGP chooses the route crossing
the smallest number of autonomous systems.
Export policy
What routes to announce to neighbors?
It depends on the relationship with the neighbor
9-5
9-6
9-7
Inbound
Policy
Engine
BGP Table
BGP Updates
RIB-Local
RIB-In
Prefixes
RIB-Out
Hardware
Forwarding
Table
9-8
Forwarding
Entries
IP Unicast
Route Table
Prefix Used
Outbound
Policy Engine
Best Path
9-9
Highest
Local
Preference
Locally
Originated
Path
Shortest
AS Path
Lowest
Origin
Code
Lowest
MED
Learned
via EBGP
Lowest
NEXT-HOP
Cost
Tie
Breakers
Lowest
Cluster ID
List
From
Lowest
Router ID
From
Lowest
Neighbor
Address
9-10
AS-path
MED
Local Preference
Origin
9-13
A
B
C
D
E
9-15
65111
bgp router-id 192.168.1.11
network 10.10.91.0/24
neighbor 192.168.1.12 remote-as 65111
neighbor 192.168.1.12 update-source Loopback 0
neighbor 10.10.91.9 no shutdown
65111
bgp router-id 192.168.1.11
network 10.10.91.0/24
neighbor 10.10.91.9 remote-as 65222
neighbor 10.10.91.9 no shutdown
9-16
Route Redistribution
You can add routes from other routing instances or protocols to the OSPF
process
With the redistribute command, you can include IGP, static, or directly
connected routes
Include, directly connected or user-configured (static) routes in BGP:
redistribute {connected | static} [route-map map-name]
9-17
9-18
2/22/2013
Dist/Metric
----------200/0
200/0
Last Change
----------00:06:16
00:06:21
9-19
AS
192.168.1.11
192.168.1.12
6501
6501
9-20
MsgRcvd
MsgSent
TblVer
InQ
21
14
34
32
3
3
0
0
OutQ Up/Down
0 00:18:08
0 00:10:51
State/Pfx
2
2
9-21
9-22
Troubleshooting: BGP
Are BGP peer sessions up?
show ip bgp summary
show ip bgp neighbors
debug ip bgp events
Are you receiving the routing information you expect?
show ip bgp neighbors <w.x.y.z> routes to see what route
prefixes you are receiving from the neighbor
Verify that you are receiving the prefixes you expect.
Check that a prefix list, filter list or route-map applied to the neighbor is
not blocking prefixes
Verify there is not a better path available
This should never happen if you are singly homed
Verify the path for the next-hop is available
show ip route <next-hop ip address> to verify the next hop
is known
If it is not in the routing table, review how the next hop should have
been learned
From an eBGP neighbor, if the local AS number appears in the path, the
path will be denied upon ingress and not installed into the BGP routinginformation base
9-23
9-24
9-25
Module
Summary
Troubleshooting
9-26