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

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

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?

Everyone's tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

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

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

4 REPLIES
Cisco Employee

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

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

Community Member

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

"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?

Cisco Employee

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

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

Community Member

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

Thank You, Naikumar

1520
Views
0
Helpful
4
Replies
CreatePlease to create content