04-02-2012 09:42 AM - edited 03-04-2019 03:53 PM
Hi Folks,
Have a bit of a odd problem that I hope you can help with.
I have four routers that are redistributing a static route in to BGP. The static route points to an IP address as the next hop.
When I look in the BGP table three of the routers show the next hop as the address configured for the static route as I would expect.
On one router however the next hop shows as 0.0.0.0.
Any idea why?
Phil
04-02-2012 09:58 AM
Hi Phil,
Can you share the relevant config with show ip route, show ip bgp <> and show ip cef output?.
If I remember it right, when the NH in static route is directly connected, the NH in BGP will be set as configured address. if it is not directly connected, the NH will be 0.0.0.0
Thanks,
Nagendra
04-02-2012 10:16 AM
Hi Negendra - Thanks for the reply. The next hop is directly connected.
The output for the router which is working correctly...
Network Next Hop Metric LocPrf Weight Path
*> 193.113.131.32/28
192.168.1.254 0 32768 ?
sh ip route 193.113.131.32
Routing entry for 193.113.131.32/28
Known via "static", distance 1, metric 0
Redistributing via bgp 65501, ospf 1
Advertised by bgp 65501 route-map static-to-bgp
Routing Descriptor Blocks:
* 192.168.1.254
Route metric is 0, traffic share count is 1
sh ip cef 193.113.131.32 255.255.255.240
193.113.131.32/28
nexthop 192.168.1.254 GigabitEthernet0/0
FOR THE ROUTER THAT DOES NOT APPEAR CORRECT
Network Next Hop Metric LocPrf Weight Path
*> 193.113.131.32/28
0.0.0.0 0 32768 ?
sh ip route 193.113.131.32
Routing entry for 193.113.131.32/28
Known via "static", distance 1, metric 0
Redistributing via bgp 65501, ospf 1
Advertised by bgp 65501 route-map static-to-bgp
ospf 1 metric 40 subnets route-map static-to-ospf1
Routing Descriptor Blocks:
* 192.168.1.254
Route metric is 0, traffic share count is 1
sh ip cef 193.113.131.32 255.255.255.240
193.113.131.32/28
nexthop 192.168.1.254 GigabitEthernet0/0
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