Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Sep 2003 10:16:09 -0500
From:      Gary <gv-list-freebsdquestions@mygirlfriday.info>
To:        freebsd-questions@freebsd.org
Subject:   Re: aliasing ethernet cards in FBSD
Message-ID:  <20030908151609.3147.qmail@letric.mygirlfriday.info>
In-Reply-To: <NCBBIAMNAKDKFJIIGNPKGEIINGAA.barry.byrne@wbtsystems.com>
References:  <20030908143935.3053.qmail@letric.mygirlfriday.info> <NCBBIAMNAKDKFJIIGNPKGEIINGAA.barry.byrne@wbtsystems.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 08, 2003 at 03:53:15PM +0100 or thereabouts, Barry Byrne wrote:

> 
> > How would I do this in FBSD, setting up an aliased ether to an Ip address?
> > my current rc.conf file currently contains just the address of the
> > machine, as such.
> > ifconfig_rl0="inet 192.168.0.100 netmask 255.255.255.0"
 
> Add something like:
> 
> ifconfig_rl0_alias0="inet 192.168.0.200 netmask 0xffffffff"
> to rc.conf

Perfect solution, thank you for your geat input.

> if you want to bring this up without rebooting, try
> ifconfig rl0 alias 192.168.0.200 netmask 0xffffffff

Right..

> Note. That the netmask is 0xffffffff if the alias is on the same subnet as
> the original IP, if different, then use the appropriate submask for the new
> alias.

Yes, when I build these systems, I usually put them on the same subnet to
keep it simple...unless I can't. 

Thanks very much Barry... In many ways, I find FBSD more powerful, yet
more simple to use than Linux (at least so far).. <g> 
-- 
Gary

Doing a job RIGHT the first time gets the job done. Doing the
job WRONG fourteen times gives you job security.



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