07-13-2014 12:44 AM - edited 03-04-2019 11:19 PM
hi,
i have the following cli show command output,
R2#show bgp ipv4 unicast
BGP table version is 11, local router ID is 192.168.220.252
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
* i192.168.30.0 192.168.110.70 0 100 0 63000 i
*> 192.168.220.70 0 0 63000 63000 i
* i192.168.40.0 192.168.110.70 0 100 0 63000 63000 i
*> 192.168.220.70 0 0 63000 i
R2#
why isn't the route through the shortest AS path not selected as the best route for 192.168.30.0. ?
thanks,
uddika
Solved! Go to Solution.
07-13-2014 01:39 AM
It seems that one is ibgp learnt route. Please show the output form the command show ip bgp 192.168.30.0.
07-15-2014 01:07 AM
Hello Uddika,
yes use of next-hop-self is a good practice.
However, there are two other options:
a) to have each border router to advertise its own border link(s) subnet(s) in iBGP with a network command under BGP process
b) to use an IGP like OSPF with the passive-interface option to make border links connecting to other ASes known to other iBGP speakers as IP subnets.
Hope to help
Giuseppe
07-13-2014 01:39 AM
It seems that one is ibgp learnt route. Please show the output form the command show ip bgp 192.168.30.0.
07-15-2014 12:36 AM
R2#
R2#
R2#show ip bgp 192.168.30.0
BGP routing table entry for 192.168.30.0/24, version 7
Paths: (2 available, best #2, table Default-IP-Routing-Table)
Advertised to update-groups:
2
63000
192.168.110.70 (inaccessible) from 192.168.111.251 (192.168.111.251)
Origin IGP, metric 0, localpref 100, valid, internal
63000 63000, (received & used)
192.168.220.70 from 192.168.220.70 (192.168.220.70)
Origin IGP, metric 0, localpref 100, valid, external, best
R2#
R2#
thanks, i noticed that R2 does not have the route for the next hop, 192.168.110.70.
07-15-2014 12:38 AM
i guess the recommended configuration is to advertise routes to ibgp peers with next-hope-self, isn't it?
07-15-2014 01:07 AM
Hello Uddika,
yes use of next-hop-self is a good practice.
However, there are two other options:
a) to have each border router to advertise its own border link(s) subnet(s) in iBGP with a network command under BGP process
b) to use an IGP like OSPF with the passive-interface option to make border links connecting to other ASes known to other iBGP speakers as IP subnets.
Hope to help
Giuseppe
07-24-2014 05:04 AM
Hi,
Already the route is learned via shortest as path only i think since the route is correctly learned from EBGP nly not IBGP..So why the additional config is required here? pls clarify
07-14-2014 05:38 AM
Hi,
isn't there
'bgp bestpath as-path ignore'
configured on the router?
Best regards,
Milan
07-15-2014 12:10 AM
no,.. i checked that.
07-15-2014 12:28 AM
Hi,
in that case, can you paste more details?
sh ip bgp 192.168.30.0
output from both R2 and R1 plus BGP config section from both of them?
Best regards,
Milan
07-14-2014 10:16 AM
07-15-2014 12:09 AM
didn't work, even rebooted all router.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide