From owner-freebsd-questions@FreeBSD.ORG Tue Mar 8 14:08:04 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E51DA16A4CE for ; Tue, 8 Mar 2005 14:08:04 +0000 (GMT) Received: from ptb-relay03.plus.net (ptb-relay03.plus.net [212.159.14.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95A2743D1D for ; Tue, 8 Mar 2005 14:08:04 +0000 (GMT) (envelope-from ian@codepad.net) Received: from [80.229.159.44] (helo=hercules.codepad.net) by ptb-relay03.plus.net with esmtp (Exim) id 1D8fNS-0002J3-IF for freebsd-questions@freebsd.org; Tue, 08 Mar 2005 14:08:02 +0000 From: Xian To: freebsd-questions@freebsd.org Date: Tue, 8 Mar 2005 14:07:59 +0000 User-Agent: KMail/1.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200503081407.59743.ian@codepad.net> Subject: Re: IP aliases and forcing outbound IP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Mar 2005 14:08:05 -0000 On Monday 07 March 2005 19:52, patrick wrote: > Should I assume by the lack of replies that this just isn't possible > under FreeBSD? Seems like it should be doable. > > Any help would be greatly appreciated, > > Patrick > > On Thu, 3 Mar 2005 13:04:37 -0800, patrick wrote: > > I have a FreeBSD 4.11 box whose ethernet card has several IP address. > > > > inet 10.0.1.254 netmask 0xffffff00 broadcast 10.0.1.255 > > inet 10.0.1.111 netmask 0xffffffff broadcast 10.0.1.111 > > > > Is there a way I can cause outbound connections to certain hosts to be > > from 10.0.1.111 instead of the default 10.0.1.254? I used to be able > > to do this fairly easy in Linux because each alias is actually a > > separate ethernet device (eg. eth0:0, eth0:1, etc.), but I haven't > > figured out how to do this in FreeBSD. > > > > Patrick Swapping the addresses over in rc.conf might make 10.0.1.254 the default. I don't really know though. -- /Xian "INDECISION is the key to FLEXIBILITY" unknown author