Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Sep 2003 15:53:15 +0100
From:      "Barry Byrne" <barry.byrne@wbtsystems.com>
To:        "Gary" <gv-list-freebsdquestions@mygirlfriday.info>, <freebsd-questions@freebsd.org>
Subject:   RE: aliasing ethernet cards in FBSD
Message-ID:  <NCBBIAMNAKDKFJIIGNPKGEIINGAA.barry.byrne@wbtsystems.com>
In-Reply-To: <20030908143935.3053.qmail@letric.mygirlfriday.info>

next in thread | previous in thread | raw e-mail | index | archive | help

> -----Original Message-----
> From: owner-freebsd-questions@freebsd.org
> [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Gary
> Sent: 08 September 2003 15:40

> 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"

Gary:

Add something like:

ifconfig_rl0_alias0="inet 192.168.0.200 netmask 0xffffffff"

to rc.conf

if you want to bring this up without rebooting, try

ifconfig rl0 alias 192.168.0.200 netmask 0xffffffff


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.

 - Barry



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