Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

BGP Next-hop 0.0.0.0

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

2 REPLIES
Cisco Employee

BGP Next-hop 0.0.0.0

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

New Member

BGP Next-hop 0.0.0.0

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

485
Views
0
Helpful
2
Replies
CreatePlease login to create content