Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

default-route command vs ip route

Status
Not open for further replies.

imsnet

IS-IT--Management
Feb 10, 2001
6
US
what is the difference between a default-route and ip route 0.0.0.0 0.0.0.0 e0
 
default route is something like IGRP decides where everything should go where the 0.0.0.0 0.0.0.0 E0 hardcodes the path to E0. The difference is that if E0 goes down, there is not any other default route. A generated default route from IGRP (or others) can be tweaked to account for the E0 dropping off line and using a different port.

This just skims the whoel story. For more, check out the following link at Cisco for routing


Mike S
"Diplomacy; the art of saying 'nice doggie' till you can find a rock" Wynn Catlin
 
A default-route is what a router uses to send traffic to a non-connected network.
ip route 0.0.0.0 0.0.0.0 e0 will just send all traffic out the ethernet port.

Hope this helps
 
Keep in mind that the behavior of "ip route 0.0.0.0" etc. will depend on whether you are running "ip classless" or not.

With "no ip classless" the statement "ip route 0.0.0.0 0.0.0.0 s0.1" will route all of your traffic out that serial interface.

With "ip classless" the statement "ip route 0.0.0.0 0.0.0.0 s0.1" will route all traffic that the router does not have a more specific route for out that serial interface.

--chris
 
Chris- that is a very good point and one that is overlooked quite a bit. I myself have missed it in looking at a new config..oops!

Mike S
"Diplomacy; the art of saying 'nice doggie' till you can find a rock" Wynn Catlin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top