Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Feb 2005 21:20:30 -0800
From:      "Ted Mittelstaedt" <tedm@toybox.placo.com>
To:        "Jason D. Montgomery" <jason@atgi.com>, <questions@freebsd.org>
Subject:   RE: Documentation Error?
Message-ID:  <LOBBIFDAGNMAMLGJJCKNIEJEFAAA.tedm@toybox.placo.com>
In-Reply-To: <5C6F478A90E6034BBDCF6D754D7850BC66F118@DERRIDA.atgi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
owner-freebsd-questions@freebsd.org wrote:
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/confi
> gtuning-v irtual-hosts.html
> 
> 
> 
> states that adding a virtual address is done in rc.conf like this:
> 
> ifconfig_fxp0="inet 10.1.1.1 netmask 255.255.255.0"
> ifconfig_fxp0_alias0="inet 10.1.1.2 netmask 255.255.255.255"
> 
> Shouldn't it be this instead?
> 
> ifconfig_fxp0="inet 10.1.1.1 netmask 255.255.255.0"
> ifconfig_fxp0_alias0="alias 10.1.1.2 netmask 255.255.255.255"
> 
> 

No.  The actual command to make one is:

ifconfig fxp0 inet 10.1.1.2 netmask 255.255.255.255 alias

So you do need to pass the "inet" to ifconfig.  The _alias0 makes
the script pass the trailing "alias"

Ted



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