cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
1271
Views
0
Helpful
8
Replies
Highlighted

Cisco 3750 what does it mean to have ip route 10.0.0.0 255.255.255.0 0.0.0.0

Could some one explain what the command

ip route 10.0.0.0 255.255.255.0 0.0.0.0

will result in?

Thanks,

8 REPLIES 8
Highlighted
Advisor

Hi,

it's not a valid command  so it will be rejected because the only  value after the mask is the administrative distance which is an integer between 1 and 255.

Regards

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.
Highlighted

Alain,

This is from a running configuration and I believe it is refrencing the null0 interface but haven't found any documentation to verify that.

So the command is a valid command but does it equal to:

ip route 10.0.0.0 255.255.255.0 null 0

 

Thanks,

Fraydoon

Highlighted
Contributor

It routes 10.0.0.0/24 via the default route. 

If there is no default route, then the route is ignored. 

Highlighted

Is it safe to assume in this situation that if the route to 10.0.0.0 is to go to the default gateway, that you could just simply remove this route and have the same net effect? (assuming a default route exists).

Highlighted

If there's a shorter prefix (say 10.0.0.0/8) with a different next hop, the 10.0.0.0/24 may be an attempt to create an exception.  So removing it could actually have an ill effect.

Highlighted

Assuming there is a valid default route set, would 10.0.0.0/24 be visible in the routing table?

Highlighted

Yes, if there is a valid default route, 10.0.0.0/24 should show up in the routing table.  Assuming you have "ip classless" configured.

Highlighted

Interesting. I get the message "%Invalid next hop, looping back to the network", but the route is still inserted into the routing table and obviously the recursive lookup works anyway.

Content for Community-Ad