BGP Troubleshoot Lab
BGP Troubleshoot Lab
BGP Troubleshoot Lab
In previous articles, we have learned how to face OSPF and EIGRP routing
issues. If you havent already, please check out my previous articles. It is a
very challenging and responsible task to maintain Border Gateway Protocol
(BGP) properly because we have to deal with external routing; if any
breakdown occurs it should be resolved quickly.
GNS3LabBGPTroubleshooting.zip
BGP often stuck in idle or active state; some common issues are described
below.
For the IDLE state, common issues are:
Interface flapping.
To resolve most common BGP routing issues I have designed a GNS3 Lab
which is posted here for your hands-on practice so that you can start the
implementation or trouble-shooting as per the described objective. You will
also find a solution file so that you can tally your configuration.
Scenario
In this GNS3 lab (as shown in Fig. 1), you will begin with preloaded
configuration scripts on each of the routers. These scripts contain errors
that will prevent end-to-end communication across the network, especially
between Router LA and NY. This means you have to establish
communication from 10.1.1.1 to 10.2.2.2. To achieve this task, you will
need to troubleshoot each router to determine the configuration errors,
and then use the appropriate commands to correct the configurations.
When you have corrected all of the configuration errors, loopback on the
Download the GNS3 file and turn on all the devices. First we will check BGP
peering using sh ip bgp summary on routers LA, WDC1, WDC2, WDC3,
WDC4, WDC5 and NY. You will see that neighborship between WDC1WDC4
(1.1.1.1 to 4.4.4.4) is in active state, as shown in Fig. 2.
But if you check the running configuration on routers WDC1 and WDC4,
you will see that update-source command is missing from BGP
configuration, as shown below:
!
router bgp 10
no synchronization
bgp log-neighbor-changes
neighbor 4.4.4.4 remote-as 10
neighbor 11.1.1.1 remote-as 20
no auto-summary
!
After configuring the above commands, your neighborship will comes up.
But on router WDC4, you will see the log messages of BAD Authentication
for BGP neighbor 56.1.1.1, as shown below:
*Mar 1 00:04:49.731: %TCP-6-BADAUTH: No MD5 digest
56.1.1.1(14121)
*Mar 1 00:04:49.871: %TCP-6-BADAUTH: No MD5 digest
56.1.1.1(14121)
from 56.1.1.2(179) to
from 56.1.1.2(179) to
You can find the answer with next hop; if you closely look at the next hops,
11.1.1.1 and 56.1.1.2, both are eBGP routes and we have not advertised
11.1.1.0 or 56.1.1.0 anywhere in BGP. Thats why both next hops are
unreachable from WDC4, so the solution is to advertise 11.1.1.0 on WDC1
under BGP and 56.1.1.0 on WDC5 but this is not feasible solution to
advertise eBGP networks.
A better and more feasible solution is to use Next-hop-self and you know
very well when to use this command; if not, then the next line is for you.
To inject networks learned from eBGP peer to iBGP peer
The next hop command is only for iBGP peers; now you can go to routers
WDC1 and WDC5 to configure next-hop-self under BGP for router WDC4,
as shown below:
self
self
Now if you check the BGP database on router WDC4 , you will get the
result shown in Fig. 4.
Both networks are best, but you will not get 10.2.2.2 on router WDC1 and
10.1.1.1 on router WDC5 because of the BGP split-horizon rule, which says
Routes learned from iBGP peer will not be forwarded to other iBGP peer.
Feasible solutions of BGP split-horizon are:
* Route-reflector
The confederation method is not as popular as a solution of BGP splithorizon just because of its complex implementation and lack of flexibility
for technology updating, whereas route reflector is a far better and more
widely used solution for BGP split-horizon.
Route reflector is deployed over centralized routers in iBGP; as per our
topology, WDC4 is a centralized router, so WDC4 will be configured as
route reflector and WDC1-WDC5 will be router reflector clients so that
WDC4 can exchange routing information with WDC1 and WDC2. You can
use following commands to implement route reflector:
WDC4(config)#router bgp 10
WDC4(config-router)#neighbor 1.1.1.1 route-reflector-client
WDC4(config-router)#neighbor 45.1.1.2 route-reflector-client
Now you can see the 10.2.2.2 in LAs BGP routing table as shown in Fig. 5.
Now you have end to end reachability between AS 20 & AS 30 and you can
check the reachability using ping from router LA loopback to router NYs
loopback as shown in Fig. 6
I have also posted a solution file for BGP GNS3 lab so that you can tally
your solutions with that file.
All of us know very well that it is not possible to describe BGP issues in a
single article, but I have tried to discuss most common BGP problems with
their solutions. I hope that now you can deal with BGP issues and resolve
them quickly and thanks all for appreciating my previous articles. If you
like this article, then say thanks to intenseschool.com @ comment section
for providing you with such technologies. Your feedback is also welcome.
References
1. Cisco Certified Internetwork Expert by Wendell Odom and others,
Ciscopress.com
2. Routing TCP/IP Vol. 2 by Jeff Doyle
3. CCNP Route Quick Reference by Denis Donohou, Ciscopress.com
4. Cisco Certified Internetwork Expert Quick Reference by Brad Ellis,
Ciscopress.com