Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Routing Question

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

4 REPLIES
New Member

Re: Routing Question

Should use Dialer 2. It will match to the most specific route known.

Bronze

Re: Routing Question

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

Re: Routing Question

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

Silver

Re: Routing Question

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,

94
Views
10
Helpful
4
Replies
CreatePlease login to create content