From owner-freebsd-net Tue Mar 9 11:18:44 1999 Delivered-To: freebsd-net@freebsd.org Received: from xylan.com (postal.xylan.com [208.8.0.248]) by hub.freebsd.org (Postfix) with ESMTP id 1AF3E14BDD for ; Tue, 9 Mar 1999 11:18:41 -0800 (PST) (envelope-from wes@softweyr.com) Received: from mailhub.xylan.com by xylan.com (8.8.7/SMI-SVR4 (xylan-mgw 2.2 [OUT])) id LAA23742; Tue, 9 Mar 1999 11:18:18 -0800 (PST) Received: from utah.XYLAN.COM by mailhub.xylan.com (SMI-8.6/SMI-SVR4 (mailhub 2.1 [HUB])) id LAA14629; Tue, 9 Mar 1999 11:18:18 -0800 Received: from softweyr.com by utah.XYLAN.COM (SMI-8.6/SMI-SVR4 (xylan utah [SPOOL])) id MAA24044; Tue, 9 Mar 1999 12:18:14 -0700 Message-ID: <36E57402.685D3039@softweyr.com> Date: Tue, 09 Mar 1999 12:18:26 -0700 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.5 [en] (X11; U; FreeBSD 2.2.7-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Chris Watson Cc: freebsd-net@FreeBSD.ORG Subject: Re: Route add question References: <001901be6a56$3aa2c4b0$3d01a8c0@nt-trash.omaha.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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