12-05-2007 04:02 AM - edited 03-03-2019 07:48 PM
Hi Experts,
I have a doubt about adding a static route, hope I dont seem silly.
ip route 0.0.0.0 0.0.0.0 10.225.251.248
is this a valid route statement if the address 10.225.251.248 is a few hops away and not a directly connected network.
Please advise,
Regards,
Imran.
Solved! Go to Solution.
12-05-2007 04:09 AM
Not a silly question at all. (Silly questions are rare - silly answers are much more common.)
That is a valid static route, and it will work provided the router has a route to 10.225.251.248 itself. It doesn't matter how many hops away it is, but there must be a routing table entry that covers it.
If your router does not have a route that covers 10.255.251.248, then it will not know which interface to point the default route to. In fact, your static default route will not even make it into the routing table.
In these cases, you get a lot more information from show ip route than from the config statements.
12-05-2007 04:05 AM
Hi
You can do this as long as the router can recursively find a route to 10.225.251.248.
So can your router ping 10.225.251.248 ?
Jon
12-05-2007 04:09 AM
Not a silly question at all. (Silly questions are rare - silly answers are much more common.)
That is a valid static route, and it will work provided the router has a route to 10.225.251.248 itself. It doesn't matter how many hops away it is, but there must be a routing table entry that covers it.
If your router does not have a route that covers 10.255.251.248, then it will not know which interface to point the default route to. In fact, your static default route will not even make it into the routing table.
In these cases, you get a lot more information from show ip route than from the config statements.
12-05-2007 04:15 AM
Thank you guys for the quick help.
The route made its way to the routing table after I added it-
B 10.5.254.4/30 [20/0] via 10.63.172.14, 1w1d
S* 0.0.0.0/0 [1/0] via 10.225.251.248
B 206.70.0.0/16 [20/0] via 10.63.172.14, 1w1d
Thanks once again.
12-05-2007 04:45 AM
§-) That's not the complete routing table is it? 'Cos apart from the default route itself, I don't see anything that covers 10.225.251.248. I don't think a default route can recurse itself, can it?
Def. recursion - see "recursion".
Kevin Dorrell
Luxembourg
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