06-12-2019 12:27 PM
what would cause an issue with seeing a route in the show ip bgp table but not in the show ip route table?
CORE-9500-01#show ip bgp neighbors 10.53.100.1 received-routes
BGP table version is 64, local router ID is 10.10.10.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
* i 10.20.40.0/24 10.53.100.18 0 100 0 i
* i 10.53.100.0/30 10.53.100.1 100 0 ?
* i 10.53.100.8/30 10.53.100.1 100 0 ?
*>i 10.53.100.12/30 10.53.100.10 0 100 0 i
* i 10.53.100.16/30 10.53.100.1 100 0 ?
*>i 10.53.100.20/30 10.53.100.18 0 100 0 i
Total number of prefixes 6
CORE-9500-01#show ip bgp neighbors 10.53.100.5 received-routes
BGP table version is 64, local router ID is 10.10.10.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
* i 10.20.40.0/24 10.53.100.22 0 100 0 i
* i 10.53.100.4/30 10.53.100.5 100 0 ?
*>i 10.53.100.8/30 10.53.100.14 0 100 0 i
* i 10.53.100.12/30 10.53.100.5 100 0 ?
*>i 10.53.100.16/30 10.53.100.22 0 100 0 i
* i 10.53.100.20/30 10.53.100.5 100 0 ?
Total number of prefixes 6
CORE-9500-01#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 8 subnets, 2 masks
C 10.53.100.0/30 is directly connected, FortyGigabitEthernet1/0/29
L 10.53.100.2/32 is directly connected, FortyGigabitEthernet1/0/29
C 10.53.100.4/30 is directly connected, FortyGigabitEthernet1/0/30
L 10.53.100.6/32 is directly connected, FortyGigabitEthernet1/0/30
B 10.53.100.8/30 [200/0] via 10.53.100.14, 00:36:11
B 10.53.100.12/30 [200/0] via 10.53.100.10, 00:36:11
B 10.53.100.16/30 [200/0] via 10.53.100.22, 00:36:11
B 10.53.100.20/30 [200/0] via 10.53.100.18, 00:36:11
CORE-9500-01#
!
!
CORE-9500-01#show run | sec router
router bgp 65001
bgp router-id 10.10.10.1
bgp log-neighbor-changes
neighbor 10.53.100.1 remote-as 65001
neighbor 10.53.100.5 remote-as 65001
!
address-family ipv4
network 10.53.100.0 mask 255.255.255.252
network 10.53.100.4 mask 255.255.255.252
neighbor 10.53.100.1 activate
neighbor 10.53.100.1 soft-reconfiguration inbound
neighbor 10.53.100.5 activate
neighbor 10.53.100.5 soft-reconfiguration inbound
maximum-paths ibgp 2
exit-address-family
!
!
06-12-2019 01:08 PM
Hi Steven,
which route is in BGP table and not in IP routing table?
All 4 best routes are in ( if I understood your question)
06-12-2019 01:08 PM
You should have the Next Hop IP addresses shown in the BGP table learned via any IGP (EIGRP, OSPF, ISIS) instead of learned via the same iBGP adjacency.
For testing purposes, create a valid Static Route pointing to those Next Hops.
CORE-9500-01#show ip bgp neighbors 10.53.100.1 received-routes BGP table version is 64, local router ID is 10.10.10.1 Network Next Hop Metric LocPrf Weight Path * i 10.20.40.0/24 10.53.100.18 0 100 0 i * i 10.53.100.0/30 10.53.100.1 100 0 ? * i 10.53.100.8/30 10.53.100.1 100 0 ? *>i 10.53.100.12/30 10.53.100.10 0 100 0 i * i 10.53.100.16/30 10.53.100.1 100 0 ? *>i 10.53.100.20/30 10.53.100.18 0 100 0 i CORE-9500-01#show ip bgp neighbors 10.53.100.5 received-routes BGP table version is 64, local router ID is 10.10.10.1 Network Next Hop Metric LocPrf Weight Path * i 10.20.40.0/24 10.53.100.22 0 100 0 i * i 10.53.100.4/30 10.53.100.5 100 0 ? *>i 10.53.100.8/30 10.53.100.14 0 100 0 i * i 10.53.100.12/30 10.53.100.5 100 0 ? *>i 10.53.100.16/30 10.53.100.22 0 100 0 i * i 10.53.100.20/30 10.53.100.5 100 0 ?
Gateway of last resort is not set 10.0.0.0/8 is variably subnetted, 8 subnets, 2 masks C 10.53.100.0/30 is directly connected, FortyGigabitEthernet1/0/29 L 10.53.100.2/32 is directly connected, FortyGigabitEthernet1/0/29 C 10.53.100.4/30 is directly connected, FortyGigabitEthernet1/0/30 L 10.53.100.6/32 is directly connected, FortyGigabitEthernet1/0/30 B 10.53.100.8/30 [200/0] via 10.53.100.14, 00:36:11 B 10.53.100.12/30 [200/0] via 10.53.100.10, 00:36:11 B 10.53.100.16/30 [200/0] via 10.53.100.22, 00:36:11 B 10.53.100.20/30 [200/0] via 10.53.100.18, 00:36:11 CORE-9500-01#
06-12-2019 01:19 PM
06-12-2019 01:54 PM
06-12-2019 01:55 PM
06-12-2019 02:14 PM
Hello Steven,
from the debug output that you have provided you can see that you have race conditions:
without using an IGP your iBGP routes have BGP next-hops learned over other iBGP routes.
This can cause some prefixes to be installed with an iBGP next-hop and later they are deleted, because BGP choices a different BGP next-hop for the next-hop of the affected /deleted prefix.
You understand that there is ambiguity caused by excessive recursion in resolving BGP next hops.
Also some prefixes that contain BGP next hops are advertised by multiple iBGP peers.
I would recommend you to consider again the use of an IGP and iBGP sessions over loopbacks to achieve a stable and deterministic routing environment.
Hope to help
Giuseppe
06-12-2019 03:19 PM
I thought we could use RR for some of these issues? I have read people not using an IGP so what are they doing? Static?
06-12-2019 04:36 PM - edited 06-12-2019 04:46 PM
It usually depends on the network environment.
You can often find BGP running on the “WAN Routers” to peer with the ISP where it does redistribution to exchange routes between the ISP and the IGP running on the LAN side.
BGP also has an important role inside ISP networks when using MPLS L3 VPN or L2 VPN where all their PEs (Provider Edge Routers) usually peer with the BGP Route Reflectors to avoid the “full mesh” of iBGP sessions requirement.
Also, Data Centers nowadays use BGP EVPN in VXLAN environments to exchange IP & MAC reachability.
In any of those cases, an IGP is usually present and BGP is “on top” of it.
Perhaps you can share more about your use case for this.
I’ve personally never really seen a “BGP-only Core” and I see lots of networks.
Cheers
06-12-2019 04:44 PM
06-12-2019 11:23 PM
Hello Steven,
once you deploy iBGP with loopbacks and OSPF you don't need anymore to redistribute from eBGP on border routers into OSPF.
Also the reason why an iBGP only environment like the one in your lab is not stable is related to the BGP scanning process.
BGP to achieve the very high scalability it has does not wait for a topology change to occur, it uses a scheduled process called BGP scanning to evaluate every 60 seconds (this is the default timer for address family IPv4 unicast) each BGP prefix and its BGP next-hop.
In your tests some BGP next-hops were resolved by other BGP routes and multiple BGP advertisements could provide the BGP next hop prefix.
So in the process of periodic re-evalution of the BGP table competition for the BGP route can occur and your tests show that this can lead some prefixes to be deleted for excessive recursion.
Hope to help
Giuseppe
06-12-2019 03:47 PM
06-12-2019 04:25 PM
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