With the following config I try to advertise a network to neighbor but the show command only list 0 prefixes to this neighbor.
router bgp 2 bgp log-neighbor-changes neighbor 18.104.22.168 remote-as 1 ! address-family ipv4 network 22.214.171.124 network 126.96.36.199 mask 255.255.255.0 neighbor 188.8.131.52 activate neighbor 184.108.40.206 route-map red out exit-address-family ! ip route 220.127.116.11 255.255.255.0 Null0 200 ! ip prefix-list 1 seq 5 permit 18.104.22.168/28 ! route-map red permit 10 match ip address prefix-list 1 !
On one interface there is the network 22.214.171.124/30 connected (BGP neighbor) and on a second interface there is the network 126.96.36.199/28 connected, this second network should be advertised to the neighbor.
This is the routing table:
#sh ip route | inc 128.16.16. S 188.8.131.52/22 is directly connected, Null0 C 184.108.40.206/28 is directly connected, GigabitEthernet0/0/0 L 220.127.116.11/32 is directly connected, GigabitEthernet0/0/0 C 18.104.22.168/30 is directly connected, GigabitEthernet0/0/1 L 22.214.171.124/32 is directly connected, GigabitEthernet0/0/1
This is the output of sh bgp command:
#sh bgp | inc 128.16.16. BGP table version is 39103822, local router ID is 126.96.36.199 *> 188.8.131.52/22 0.0.0.0 0 32768 i 184.108.40.206 0 1 i 220.127.116.11 0 1 i
And this one the show advertised route command:
#sh ip bgp neighbors 18.104.22.168 advertised-routes Total number of prefixes 0
If I delete the
neighbor 22.214.171.124 route-map red out command then the sh advertised route command contains all routes. How can I debug why the route don't advertise the route from route map.