cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2301
Views
0
Helpful
4
Replies

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?

1 Accepted Solution

Accepted Solutions

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

View solution in original post

4 Replies 4

Nagendra Kumar Nainar
Cisco Employee
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

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

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

Thank You, Naikumar

Review Cisco Networking for a $25 gift card