cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
559
Views
0
Helpful
2
Replies

Issue with floating static route

d.wingert
Level 1
Level 1

Hello Everyone,

I am having issues with my floating static route - this must be something easy but I am not "seeing" it today... :-)

I have a few hundred prefixes from the 10.0.0.0/12 range in my BGP table and I want to be able to advertise another range (192.168.1.0/27) when any element of the 10.0.0.0/12 aggregate is present in the routing table. Example: If 10.1.1.1/32 is present, then advertise 192.168.1.0/27. My current problem is that the floating static doesn't kick in, even when the locally originated aggregate is present. Looks like the floating static doesn't like following another static route that is pointing to Null0 (which gets dynamically originated by the aggregate). Currently the floating static only kicks in when a prefix is present in the routing table that has zeros in all of the last three octets, i.e. 10.0.0.0/12 , 10.0.0.0/16 , 10.0.0.0/32

Any solutions / ideas to get around this?


!

ip route 192.168.1.0 255.255.255.224 10.0.0.0

!

router bgp 65000

aggregate-address 10.0.0.0 255.240.0.0

network 192.168.1.0 mask 255.255.255.224

!

CE1#sh ip route 10.0.0.0 255.240.0.0
Routing entry for 10.0.0.0/12
  Known via "bgp 65000", distance 200, metric 0, type locally generated
  Routing Descriptor Blocks:
  * directly connected, via Null0
      Route metric is 0, traffic share count is 1
      AS Hops 0

Thanks,

Dirk

1 Accepted Solution

Accepted Solutions

Harold Ritter
Level 12
Level 12

Hi Dirk,

Try changing the next hop address for your static route as follow:

ip route 192.168.1.0 255.255.255.224 10.0.0.1

10.0.0.1 should always be resolvable via the aggregate route (10.0.0.0/12), which should always be present in the RIB as long as there is a more specific route in the RIB.

Hope this helps

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

View solution in original post

2 Replies 2

Harold Ritter
Level 12
Level 12

Hi Dirk,

Try changing the next hop address for your static route as follow:

ip route 192.168.1.0 255.255.255.224 10.0.0.1

10.0.0.1 should always be resolvable via the aggregate route (10.0.0.0/12), which should always be present in the RIB as long as there is a more specific route in the RIB.

Hope this helps

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

That's the ticket! Thank you so much Harold!

Review Cisco Networking for a $25 gift card