02-19-2013 08:16 AM - edited 03-07-2019 11:47 AM
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,
02-19-2013 10:49 AM
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.
02-19-2013 11:47 AM
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
02-19-2013 01:41 PM
It routes 10.0.0.0/24 via the default route.
If there is no default route, then the route is ignored.
02-19-2013 02:06 PM
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).
02-19-2013 03:43 PM
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.
02-19-2013 06:11 PM
Assuming there is a valid default route set, would 10.0.0.0/24 be visible in the routing table?
02-22-2013 02:27 PM
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.
02-22-2013 04:15 PM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide