Professional Documents
Culture Documents
Privacy Policy
Topology is quite simple, we have two routers that are directly connected and they will form an eBGP (
BGP race condition occurs only in ebgp peering) neighbor relationship that is sourced by each loopback
address of the router.
OSPF is activated on the physical links and ont the lo0 of the routers and they are fully adjacent within
area 0.
http://www.networksbaseline.in/2014/08/bgpracecondition.html 1/10
10/24/2016 BGP RACE CONDITION ~ << Networks Baseline Cisco Engineers Live >>
R2#conf t
R2(config)#router bgp 2
R2(config-router)#no auto
R2(config-router)#no sync
R2(config-router)#neighbor 1.1.1.1 remote-as 1
R2(config-router)#neighbor 1.1.1.1 update-source lo0
As we will see the bgp neighborship will not come up! Why?
Well as the routers try to start the BGP adjacency from their loopbacks they are not directly
connected.
So we need to configure the bgp option “disable-connected-check”. This option makes directly
connected neighbors to build an adjacency even if they connect via their loopbacks.
Now we are going to advertise the lo10 of each router into bgp to see if it works fine.
Verifying on R2:
R2#sh ip bgp
BGP table version is 167, local router ID is 2.2.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 10.10.10.10/32 1.1.1.1 0 0 1 i
*> 20.20.20.20/32 0.0.0.0 0 32768 I
Verifying n R1:
R1#sh ip bgp
BGP table version is 172, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
http://www.networksbaseline.in/2014/08/bgpracecondition.html 2/10
10/24/2016 BGP RACE CONDITION ~ << Networks Baseline Cisco Engineers Live >>
Looks good.
No we come to the “race condition”. We will now also advertise the lo0 of each router into BGP. Very
many people might do this as they say “Hey its good to have lo0 in it here”.
R1#sh ip bgp
BGP table version is 176, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 1.1.1.1/32 0.0.0.0 0 32768 i
*> 2.2.2.2/32 2.2.2.2 0 0 2 i
*> 10.10.10.10/32 0.0.0.0 0 32768 i
*> 20.20.20.20/32 2.2.2.2 0 0 2 i
But what we are going to see after some time is that the BGP adjacency will tear down!
R1#
*Mar 1 02:25:15.855: %BGP-5-ADJCHANGE: neighbor 2.2.2.2 Down BGP Notification sent
R1#
*Mar 1 02:25:15.855: %BGP-3-NOTIFICATION: sent to neighbor 2.2.2.2 4/0 (hold time expired) 0
bytes
R2#
*Mar 1 02:25:16.359: %BGP-5-ADJCHANGE: neighbor 1.1.1.1 Down BGP Notification sent
R2#
*Mar 1 02:25:16.359: %BGP-3-NOTIFICATION: sent to neighbor 1.1.1.1 4/0 (hold time expired) 0
bytes
Some seconds after that log message the BGP session comes up again.
http://www.networksbaseline.in/2014/08/bgpracecondition.html 3/10
10/24/2016 BGP RACE CONDITION ~ << Networks Baseline Cisco Engineers Live >>
R2#
*Mar 1 02:25:45.999: %BGP-5-ADJCHANGE: neighbor 1.1.1.1 Up
R1#
*Mar 1 02:25:45.991: %BGP-5-ADJCHANGE: neighbor 2.2.2.2 Up
When you take a look into the routing table you can see the problem. Usually you should see the
loopback of the peering router known via the IGP (OSPF in that case).
R1#sh ip route 2.2.2.2
Routing entry for 2.2.2.2/32
Known via "ospf 1", distance 110, metric 11, type intra area
Last update from 172.16.21.2 on FastEthernet0/0, 00:00:15 ago
Routing Descriptor Blocks:
* 172.16.21.2, from 172.16.21.2, 00:00:15 ago, via FastEthernet0/0
Route metric is 11, traffic share count is 1
When the BGP session comes up you see it know via BGP because the AD of eBGP is 20 and that is
lower than 110
R1#sh ip route 2.2.2.2
Routing entry for 2.2.2.2/32
Known via "bgp 1", distance 20, metric 0
Tag 2, type external
Last update from 2.2.2.2 00:00:42 ago
Routing Descriptor Blocks:
* 2.2.2.2, from 2.2.2.2, 00:00:42 ago
Route metric is 0, traffic share count is 1
AS Hops 1
Route tag 2
And this is the problem here. We know the loopback of R2 which is 2.2.2.2 via the loopback of R2. This
cannot work. In case of the BGP advertising the route to 2.2.2.2/32 thats problematic as BGP here
sets its BGP peer address as next-hop.
So this route recursion points to the fact that the loopback addresses of the routers cannot reach
each other and the BGP session times out.
Related Posts:
http://www.networksbaseline.in/2014/08/bgpracecondition.html 4/10
10/24/2016 BGP RACE CONDITION ~ << Networks Baseline Cisco Engineers Live >>
A path vector protocol could be a network routing protocol that maintains the trail data
that gets updated dynamically. Updates that have coiled thro… Read More
0 comments:
Post a Comment
http://www.networksbaseline.in/2014/08/bgpracecondition.html 5/10
10/24/2016 BGP RACE CONDITION ~ << Networks Baseline Cisco Engineers Live >>
Enter your comment...
OSI Model
The Open Systems Interconnection model ( OSI )is a conceptual model that characterizes
and standardizes the inner functions of a communica...
Traceroute
Traceroute, by default, sends a sequence of User Datagram Protocol (UDP) packets
addressed to a destination host; ICMP Echo Request or TCP ...
http://www.networksbaseline.in/2014/08/bgpracecondition.html 6/10
10/24/2016 BGP RACE CONDITION ~ << Networks Baseline Cisco Engineers Live >>
Search Search
TOTAL PAGEVIEWS
1,561,278
BLOG ARCHIVE
Blog Archive
LIKE US !!
http://www.networksbaseline.in/2014/08/bgpracecondition.html 7/10
10/24/2016 BGP RACE CONDITION ~ << Networks Baseline Cisco Engineers Live >>
NetworksBaseline
82,630 likes
Liked Sign Up
You like this
CATEGORIES
access Lists (3) ADSL (3) Alcatel-Lucent (2) ARP (4) ASA (8) ATM (2) Basic Commands (3) Basics (13)
BGP (31) Brocade (1) Cables (1) CatOS (1) CCIE (3) CCIE Datacenter (22) CCNA (7)
CCNP (1) Checkpoint (3) Cisco (4) Cisco ASR (7) Cisco Icons (1) Cisco MDS Switch Cisco Routers (12)
(1)
Cisco Switches (7) Cisco Wireless (2) Cloud Computing (2) Data Center (17) DHCP (4) DWDM (1)
EIGRP (7) Etherchannel (3) F5 (2) Fiber Optics (1) Firewall (2) Fortinet (1) GLBP (5) GNS3 (2) Huawei (4)
interview Questions (1) IOS (1) IOS Upgradation (3) IoT (1) IP Addressing (2) IPV6 (2) Juniper (13) LABS (2)
MPLS (21) MPLS Traffic Engg. (3) MTU (5) Multicast (3) Nexus (20) OSI
Load Balancing (5)
Model (1) OSPF (22) OTV (2) Palo-Alto (2) Password Recovery (1) Physical (1) PPP (2) Riverbed (3) RSTP
(2) SDN & NFV (2) SSL (1) Stack (1) subnetting (3) Switching (9) TACACS (1) TCP (2) TCP and UDP ports (2)
Technology (1) Terminal Server (1) Topologies (5) Traceroute (2) VLAN (4) VPN (3) VRRP (4) WAN
optimization (4)
FEEDJIT
http://www.networksbaseline.in/2014/08/bgpracecondition.html 8/10
10/24/2016 BGP RACE CONDITION ~ << Networks Baseline Cisco Engineers Live >>
Live Traffic Feed
A visitor from Stockton,
California viewed "Pointto
Point Protocol (PPP), the
Link Control Protocol (LCP)
and CHAP (Challenge
A visitor from Lansing,
Handshake Authentication
Michigan viewed "The
Protocol) ~" 1 min ago
Concept of PHP (Penultimate
Hop Popping) MPLS ~" 2
A visitor from United States
mins ago
viewed "F5 Load Balancers:
LTM vs GTM ~" 6 mins ago
A visitor from La Paz viewed
"BGP: Path Selection Criteria
Path Vector Protocol ~" 7
A visitor from Ramsis, Al
mins ago
Buhayrah viewed ": BGP" 7
mins ago
A visitor from Pune,
Maharashtra viewed "F5 Load
Balancers: LTM vs GTM ~"
11 mins ago
A visitor from Karachi, Sindh
viewed "OSPF Area and LSAs
Propagation. ~" 20 mins ago
A visitor from Doha, Ad
Dawhah viewed "25 Things to
remember about EIGRP:
Short and Simple ~" 24 mins
A visitor from San Diego,
ago
California viewed "Pointto
Point Protocol (PPP), the
Link Control Protocol (LCP)
and CHAP (Challenge
A visitor from San Francisco,
Handshake Authentication
California viewed "The
Protocol) ~" 26 mins ago
Concept of PHP (Penultimate
Hop Popping) MPLS ~" 34
Realtime view · Get Feedjit
ALEXA
http://www.networksbaseline.in/2014/08/bgpracecondition.html 9/10
10/24/2016 BGP RACE CONDITION ~ << Networks Baseline Cisco Engineers Live >>
Copyright © 2016 << Networks Baseline - Cisco Engineers Live >> | Powered by Blogger
Design by BluChic | Blogger Theme by Lasantha - PremiumBloggerTemplates.com | BTheme.net | Distributed
By Gooyaabi Templates
http://www.networksbaseline.in/2014/08/bgpracecondition.html 10/10