10-27-2006 05:30 AM - edited 03-03-2019 02:29 PM
Hello,
Can anyone tell me how the routing would work if i had the following static routing table:
ip route 0.0.0.0 0.0.0.0 Dialer1
ip route 200.0.0.0 255.0.0.0 Dialer2
Which of the Dialers would the router go through if i requested an address that starts with 200 ?
thanks
10-27-2006 05:39 AM
Should use Dialer 2. It will match to the most specific route known.
10-27-2006 07:04 AM
Hi,
The command
ip route 0.0.0.0 0.0.0.0 dialer 1
defines a default route and also the gateway of last resort in routing table.
This default route is only used when there is no route to the requested destination in the routing table.
Since your routing table has route to 200.0.0.0 network via dialer 2
This route will be prefered over the dialer 1 route.
Hope this helps you,
Thanks,
Raj
10-27-2006 08:00 AM
your first line is default route and it will be used when there are no matches in the routing table... so traffic that did not match any of the entry in the routing table for the given destination... then that packet will forwarded as per the DEFAULT ROUTE...
regards
Devang
10-27-2006 02:15 PM
Hello,
This is how route recursion happens:
You router will try to find the longest match. This means the router will search for more specific match for the destination.
If one match is found the router will use it.
If two matches are found the router will check if they are from the same routing protocol or different routing protocols.
If both routes are from the same routing protocols the one with a lower metric is used.
If routes are from different protocols the one with lower administrative distance is used.
If non of the above is true the router will fall back to last resort known as the default route.
The above explanation will let you answer the question,
Please rate if you find my post helpful,
Regards,
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