This should work, except the null route
follow these steps to troubleshoot
source router, where you advertise the static
router bgp 1 no synchronization bgp log-neighbor-changes network 172.172.172.168 mask 255.255.255.255 network 172.172.172.169 mask 255.255.255.255 network 172.172.172.170 mask 255.255.255.255 network 172.172.172.171 mask 255.255.255.255 network 172.172.172.172 mask 255.255.255.255
you can configure "redis static" in here
neighbor 12.1.1.2 remote-as 2 neighbor 12.1.1.2 prefix-list BGP-TEST-OUT out no auto-summary ! ip classless ip route 172.172.172.168 255.255.255.255 Ethernet0/0 ip route 172.172.172.169 255.255.255.255 Ethernet0/0 ip route 172.172.172.170 255.255.255.255 Ethernet0/0 ip route 172.172.172.171 255.255.255.255 Ethernet0/0 ip route 172.172.172.172 255.255.255.255 Null0 254 ! ! ! ip prefix-list BGP-TEST-OUT seq 5 permit 172.172.172.168/32 ip prefix-list BGP-TEST-OUT seq 10 permit 172.172.172.169/32 ip prefix-list BGP-TEST-OUT seq 15 permit 172.172.172.170/32 ip prefix-list BGP-TEST-OUT seq 20 permit 172.172.172.171/32 ip prefix-list BGP-TEST-OUT seq 25 permit 172.172.172.172/32 !
check for the route in the rib, otherwise it will not make it to the bgp table
Gateway of last resort is not set
172.172.0.0/16 is variably subnetted, 5 subnets, 2 masks S 172.172.172.168/32 is directly connected, Ethernet0/0 S 172.172.172.169/32 is directly connected, Ethernet0/0 S 172.172.172.170/32 is directly connected, Ethernet0/0 S 172.172.172.171/32 is directly connected, Ethernet0/0 C 172.172.172.0/24 is directly connected, Ethernet0/0 12.0.0.0/24 is subnetted, 1 subnets C 12.1.1.0 is directly connected, Serial2/0 Router#
now check the the bgp table
Router#sh ip bgp BGP table version is 5, local router ID is 172.172.172.172 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
*> 172.172.172.168/32 0.0.0.0 0 32768 i
*> 172.172.172.169/32 0.0.0.0 0 32768 i
*> 172.172.172.170/32 0.0.0.0 0 32768 i
*> 172.172.172.171/32 0.0.0.0 0 32768 i
now check whether neighbour is up and then check advertised routes
Router#show ip bgp nei 12.1.1.2 ad Router#show ip bgp nei 12.1.1.2 advertised-routes BGP table version is 5, local router ID is 172.172.172.172 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
*> 172.172.172.168/32 0.0.0.0 0 32768 i
*> 172.172.172.169/32 0.0.0.0 0 32768 i
*> 172.172.172.170/32 0.0.0.0 0 32768 i
*> 172.172.172.171/32 0.0.0.0 0 32768 i
Total number of prefixes 4 Router#
in the other router =====================
check the bgp neighbour
Router#sh ip bgp summ BGP router identifier 12.1.1.2, local AS number 2 BGP table version is 23, main routing table version 23
4 network entries using 468 bytes of memory
4 path entries using 208 bytes of memory
2/1 BGP path/bestpath attribute entries using 264 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory BGP using 964 total bytes of memory BGP activity 9/5 prefixes, 13/9 paths, scan interval 60 secs
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
12.1.1.1 4 1 78 74 23 0 0
00:56:12 4 best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 172.172.172.168/32 12.1.1.1 0 0 1 i
*> 172.172.172.169/32 12.1.1.1 0 0 1 i
*> 172.172.172.170/32 12.1.1.1 0 0 1 i
*> 172.172.172.171/32 12.1.1.1 0 0 1 i
Total number of prefixes 4 Router#
check whether it is made to bgp table
Router#sh ip bgp BGP table version is 23, local router ID is 12.1.1.2 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
*> 172.172.172.168/32 12.1.1.1 0 0 1 i
*> 172.172.172.169/32 12.1.1.1 0 0 1 i
*> 172.172.172.170/32 12.1.1.1 0 0 1 i
*> 172.172.172.171/32 12.1.1.1 0 0 1 i Router#
from that to the rib
Router#sh ip route Codes: C - connected, S - static, I - IGRP, 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, E - EGP 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
Gateway of last resort is not set
172.172.0.0/32 is subnetted, 4 subnets B 172.172.172.168 [20/0] via 12.1.1.1, 00:57:36 B 172.172.172.169 [20/0] via 12.1.1.1, 00:57:36 B 172.172.172.170 [20/0] via 12.1.1.1, 00:57:36 B 172.172.172.171 [20/0] via 12.1.1.1, 00:57:36 12.0.0.0/24 is subnetted, 1 subnets C 12.1.1.0 is directly connected, Serial2/0
if the route flapping check for the time stamp or repeat the following many times more than 60 seconds
Router#sh ip route 172.172.172.171 Routing entry for 172.172.172.171/32 Known via "bgp 2", distance 20, metric 0 Tag 1, type external Last update from 12.1.1.1 00:57:59 ago Routing Descriptor Blocks: * 12.1.1.1, from 12.1.1.1, 00:57:59 ago Route metric is 0, traffic share count is 1 AS Hops 1, BGP network version 0 Route tag 1
Hope this helps good luck
Sanjeewa Alahakone