Static route to null0 doesn't appear into show ip route

Answered Question
Dec 7th, 2009
User Badges:

Hello, All.


I added static route like this:

ip route xx.yy.zz.0 255.255.255.0 Null0 254

But "show ip route static" doesn't show it.

I use this static route to redistribute it into BGP.

Platform is Catalyst 6509 with SUP2.


Why doesn't this route appear in RIB?

Correct Answer by Nagendra Kumar ... about 7 years 7 months ago

Hi,


Yes. Setting administrative distance as 255 will make the router to consider the prefix as invalid and will not install the same in routing table.


HTH,

Nagendra

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Nagendra Kumar ... Mon, 12/07/2009 - 00:31
User Badges:
  • Cisco Employee,

Hi,


Does your routing table already have xx.yy.zz.0 entry?.


What does "show ip route xx.yy.zz.0" gives you?.


You have configured this static route with 254 as administrative distance. If you have learnt this network from any other routing protocol, they will have less administrative distance and will be preferred.


Regards,

Nagendra

Evgeny Khorokhorin Mon, 12/07/2009 - 01:00
User Badges:

"show ip route xx.yy.zz.0" gives me info that I get this route from ospf from other router.

After that I shut ospf on router that originates this xx.yy.zz.0 and found my mistake: on 6509 I wrote 255 as administrative distance. I changed it to 254 and this route appeared in RIB and was redistributed to BGP.

Does distance 255 prevent route to be inserted into RIB?

Correct Answer
Nagendra Kumar ... Mon, 12/07/2009 - 01:10
User Badges:
  • Cisco Employee,

Hi,


Yes. Setting administrative distance as 255 will make the router to consider the prefix as invalid and will not install the same in routing table.


HTH,

Nagendra

Actions

This Discussion

Related Content