cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
407
Views
5
Helpful
4
Replies

Question about a static route

imran_mo
Level 1
Level 1

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.

1 Accepted Solution

Accepted Solutions

Kevin Dorrell
Level 10
Level 10

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.

View solution in original post

4 Replies 4

Jon Marshall
Hall of Fame
Hall of Fame

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

Kevin Dorrell
Level 10
Level 10

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.

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.

§-) 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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card