i had configured the same topology and it looks like the following on my R4 router
R4#show ip bgp
BGP table version is 4, local router ID is 4.4.4.4
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,
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 1.1.1.0/24 3.3.3.3 0 100 0 100 i
*>i 2.2.2.2 0 100 0 100 i
*>i 3.3.3.0/24 3.3.3.3 0 100 0 i
r>i 192.168.34.0 3.3.3.3 0 100 0 i
R4#
R4#ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
why cant i ping 1.1.1.1 , when the best route to 1.1.1.1 is via 2.2.2.2 (R2) ?
if i set the local pref on R3 to 600 by using bgp default local-preference 600
, and then doing clear ip bgp
it pings as mentioned below from r4
R4#show ip bgp
BGP table version is 10, local router ID is 4.4.4.4
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,
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 1.1.1.0/24 3.3.3.3 0 600 0 100 i
* i 2.2.2.2 0 100 0 100 i
*>i 3.3.3.0/24 3.3.3.3 0 600 0 i
r>i 192.168.34.0 3.3.3.3 0 600 0 i
R4#ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 56/97/132 ms