Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Mar 2005 14:07:59 +0000
From:      Xian <ian@codepad.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: IP aliases and forcing outbound IP
Message-ID:  <200503081407.59743.ian@codepad.net>
In-Reply-To: <b043a48505030711523fb47073@mail.gmail.com>
References:  <b043a485050303130463eab028@mail.gmail.com> <b043a48505030711523fb47073@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <gibblertron@gmail.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503081407.59743.ian>