>Hello all I was just wondering if you could have 2 Default gateways, 
>using static routes?  If so what would you do just enter the ip default 
>route command twice?  Also will the router auto detect if one of those 
>routes goes down and pass traffic only to the active interface.  I know 
>you can do load balancing with routing protocols, but it seems to me 
>that if you were on a stub, why would you want to run a routing 
>protocol?  I'm interested in this because of a post a while back.  Any 
>info would be helpful.
>
>Thanks,
>Steven

You're probably thinking of a default route, not a default gateway, per
say.  The 'ip default-gateway' command on a router is used only when a
router is not routing IP, which is probably not the situation you're
considering.

To statically enter a default route you simply add a static route like this:

ip route 0.0.0.0 0.0.0.0 next_hop_address

If you have more than one possible default route you can add more than on
static route and the router will load balance.  If you want to prefer one
over the other you can change the administrative distance.

ip route 0.0.0.0 0.0.0.0 primary_default_ip
ip route 0.0.0.0 0.0.0.0 secondary_default_ip 50

In this example, the primary and secondary default routes have ADs of 1 and
50, respectively.  The route with the lowest AD will be prefered as long as
it is valid.  Should the next hop address not be available the router will
begin using the secondary route.

Does that answer your question?

Regards,
John




Message Posted at:
http://www.groupstudy.com/form/read.php?f=7&i=64915&t=64913
--------------------------------------------------
FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html
Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]

Reply via email to