ā08-13-2020 06:26 PM - edited ā08-13-2020 06:42 PM
i can't ping from r1 to r6 or vice versa although this routes exist in the routing tables
create pingable AS1 ---------------------- conf t hostname R1 int s2/0 no sh ip add 10.0.0.1 255.255.255.252 int s 2/1 no sh ip add 10.0.0.5 255.255.255.252 int lo 0 ip add 1.1.1.1 255.255.255.255 router ospf 1 net 10.0.0.0 0.0.0.255 ar 0 net 1.1.1.1 0.0.0.0 ar 0 ........................................................ conf t hostname R2 int s2/0 no sh ip add 10.0.0.2 255.255.255.252 int s 2/1 no sh ip add 12.0.0.1 255.255.255.252 int lo 0 ip add 2.2.2.2 255.255.255.255 router ospf 1 net 10.0.0.0 0.0.0.255 ar 0 net 2.2.2.2 0.0.0.0 ar 0 ........................................................ conf t hostname R3 int s2/0 no sh ip add 10.0.0.6 255.255.255.252 int s 2/1 no sh ip add 12.0.0.5 255.255.255.252 int lo 0 ip add 3.3.3.3 255.255.255.255 router ospf 1 net 10.0.0.0 0.0.0.255 ar 0 net 3.3.3.3 0.0.0.0 ar 0 ....................................................... ....................................................... ....................................................... create pingable AS1 ---------------------- conf t hostname R4 int s2/0 no sh ip add 12.0.0.2 255.255.255.252 int s 2/1 no sh ip add 11.0.0.1 255.255.255.252 int lo 0 ip add 4.4.4.4 255.255.255.255 router ospf 1 net 11.0.0.0 0.0.0.255 ar 0 net 4.4.4.4 0.0.0.0 ar 0 ........................................................ conf t hostname R5 int s2/0 no sh ip add 12.0.0.6 255.255.255.252 int s 2/1 no sh ip add 11.0.0.5 255.255.255.252 int lo 0 ip add 5.5.5.5 255.255.255.255 router ospf 1 net 11.0.0.0 0.0.0.255 ar 0 net 5.5.5.5 0.0.0.0 ar 0 ........................................................ conf t hostname R6 int s2/0 no sh ip add 11.0.0.2 255.255.255.252 int s 2/1 no sh ip add 11.0.0.6 255.255.255.252 int lo 0 ip add 6.6.6.6 255.255.255.255 router ospf 1 net 11.0.0.0 0.0.0.255 ar 0 net 6.6.6.6 0.0.0.0 ar 0 .................................................... clear ip ospf process y ...................................................... BGP configuration ---------------------- R1 --- router bgp 1 neighbor 2.2.2.2 remote-as 1 neighbor 2.2.2.2 update-source lo 0 neighbor 2.2.2.2 password cisco neighbor 3.3.3.3 remote-as 1 neighbor 3.3.3.3 update-source lo 0 neighbor 3.3.3.3 password cisco network 1.1.1.1 mask 255.255.255.255 ----------- R2 --- router bgp 1 neighbor 1.1.1.1 remote-as 1 neighbor 1.1.1.1 update-source lo 0 neighbor 1.1.1.1 password cisco neighbor 1.1.1.1 next-hop-self neighbor 3.3.3.3 remote-as 1 neighbor 3.3.3.3 update-source lo 0 neighbor 3.3.3.3 password cisco neighbor 4.4.4.4 remote-as 2 neighbor 4.4.4.4 update-source lo 0 neighbor 4.4.4.4 password cisco neighbor 4.4.4.4 ebgp-multihop ip route 4.4.4.4 255.255.255.255 12.0.0.2 ----------- R3 --- router bgp 1 neighbor 1.1.1.1 remote-as 1 neighbor 1.1.1.1 update-source lo 0 neighbor 1.1.1.1 password cisco neighbor 1.1.1.1 next-hop-self neighbor 2.2.2.2 remote-as 1 neighbor 2.2.2.2 update-source lo 0 neighbor 2.2.2.2 password cisco neighbor 5.5.5.5 remote-as 2 neighbor 5.5.5.5 update-source lo 0 neighbor 5.5.5.5 password cisco neighbor 5.5.5.5 ebgp-multihop ip route 5.5.5.5 255.255.255.255 12.0.0.6 R4 --- router bgp 2 neighbor 6.6.6.6 remote-as 2 neighbor 6.6.6.6 update-source lo 0 neighbor 6.6.6.6 password cisco neighbor 6.6.6.6 next-hop-self neighbor 5.5.5.5 remote-as 2 neighbor 5.5.5.5 update-source lo 0 neighbor 5.5.5.5 password cisco neighbor 2.2.2.2 remote-as 1 neighbor 2.2.2.2 update-source lo 0 neighbor 2.2.2.2 password cisco neighbor 2.2.2.2 ebgp-multihop ip route 2.2.2.2 255.255.255.255 12.0.0.1 R5 --- router bgp 2 neighbor 6.6.6.6 remote-as 2 neighbor 6.6.6.6 update-source lo 0 neighbor 6.6.6.6 password cisco neighbor 6.6.6.6 next-hop-self neighbor 4.4.4.4 remote-as 2 neighbor 4.4.4.4 update-source lo 0 neighbor 4.4.4.4 password cisco neighbor 3.3.3.3 remote-as 1 neighbor 3.3.3.3 update-source lo 0 neighbor 3.3.3.3 password cisco neighbor 3.3.3.3 ebgp-multihop ip route 3.3.3.3 255.255.255.255 12.0.0.5 R6 --- router bgp 2 neighbor 5.5.5.5 remote-as 2 neighbor 5.5.5.5 update-source lo 0 neighbor 5.5.5.5 password cisco neighbor 4.4.4.4 remote-as 2 neighbor 4.4.4.4 update-source lo 0 neighbor 4.4.4.4 password cisco net 6.6.6.6 mask 255.255.255.255 ------------------------------------ router bgp maximum-paths 2 maximum-paths ibgp 2
Solved! Go to Solution.
ā08-14-2020 11:42 AM
One of issues when pinging BGP is all networks (routes) along the patch must be advertised. Solution is to do extended ping, ping 6.6.6.6 source 1.1.1.1
Another one is when peering BGP with loopbacks instead of directly connected routes, those loopbacks are not advertised. Sort of "back hole" is created and traffic gets stuck. Using Loopacks when Peering BGP is common inside organization (iBGP and ISPs) but outside of that I think we use directly connected links (eBGP).
Regards, ML
**Please Rate All Helpful Responses **
ā08-14-2020 05:48 AM
Hi
please post a sh ip route and sh ip bgp for each router.
Bye
Enrico
ā08-14-2020 07:50 AM
thanks for your interest and your time
ā08-14-2020 08:39 AM
Hi
the problem is due to the fact that you are using the Loopback as update source interface but their IP is not in the routing table. For example R4 opath to R1 has next-hop 2.2.2.2, but 2.2.2. is not in it's routing table. Use the connected interface over the eBGP session and I guss it will work
Bye
enrico
PS Rate if useful
ā08-14-2020 11:37 AM
Or redistribute connected in BGP maybe another solution to avoid this "back hole", right?
Regards, ML
**Please Rate All Helpful Responses **
ā08-14-2020 01:20 PM
ā08-14-2020 11:42 AM
One of issues when pinging BGP is all networks (routes) along the patch must be advertised. Solution is to do extended ping, ping 6.6.6.6 source 1.1.1.1
Another one is when peering BGP with loopbacks instead of directly connected routes, those loopbacks are not advertised. Sort of "back hole" is created and traffic gets stuck. Using Loopacks when Peering BGP is common inside organization (iBGP and ISPs) but outside of that I think we use directly connected links (eBGP).
Regards, ML
**Please Rate All Helpful Responses **
ā08-14-2020 01:17 PM
ā08-14-2020 01:36 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