Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Mar 1999 12:18:26 -0700
From:      Wes Peters <wes@softweyr.com>
To:        Chris Watson <cwatson@worldmediaco.net>
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: Route add question
Message-ID:  <36E57402.685D3039@softweyr.com>
References:  <001901be6a56$3aa2c4b0$3d01a8c0@nt-trash.omaha.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Chris Watson wrote:
> 
> I was trying to figure out today how to add a default route to an interface
> that is in a box with another interface that has a default route.
> 
> I.e
> 
> 3 nic cards in a box.
> 
> xl0
> fxp0
> fxp1
> If xl0 is ifconfig'd first then it gets the default route on bootup correct?
> What I was trying to do was assign the default route to fxp0 after bootup
> after xl0 was configured.
> I thought ifconfig xl0 delete might work. Then I could assign a the same
> default route to fxp0 that *was* assigned to xl0.
> But it kept useing xl0 as the interface.
> 
> Is there a way to assign multiple default gateways on different interfaces
> on the same box? Like the above 2 interfaces each have their own default
> gateway?

No, you can only have one default route, that's what "default" means.  If
you have multiple gateways via multiple interfaces to the same network
resource, I.e. the corporate backbone or the internet, you need to use a
routing daemon to manage your routing table.

You'll need to talk to your network manager to find what routing protocols 
are in use, and choose a routing daemon that supports those protocols.  Your 
choices are basically routed and gated; if routed supports the protocol(s) 
you need, use it.  If not, if for instance you're using BGP4, used gated.

-- 
             Where am I, and what am I doing in this handbasket?

Wes Peters                                                     +1.801.915.2061
Softweyr LLC                                                  wes@softweyr.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36E57402.685D3039>