From owner-freebsd-questions@FreeBSD.ORG Tue Mar 1 16:33:48 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 0789116A4CE for ; Tue, 1 Mar 2005 16:33:48 +0000 (GMT) Received: from smtphost.cis.strath.ac.uk (smtphost.cis.strath.ac.uk [130.159.196.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id AAAE743D1D for ; Tue, 1 Mar 2005 16:33:43 +0000 (GMT) (envelope-from chodgins@cis.strath.ac.uk) Received: from [192.168.0.4] (chrishodgins.force9.co.uk [84.92.20.141]) j21GXN1O010411; Tue, 1 Mar 2005 16:33:23 GMT Message-ID: <42249A8F.4080206@cis.strath.ac.uk> Date: Tue, 01 Mar 2005 16:38:39 +0000 From: Chris Hodgins User-Agent: Mozilla Thunderbird 1.0 (X11/20050204) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jerry McAllister References: <200503011619.j21GJ9L05511@clunix.cl.msu.edu> In-Reply-To: <200503011619.j21GJ9L05511@clunix.cl.msu.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-CIS-MailScanner-Information: Please contact support@cis.strath.ac.uk for more information X-CIS-MailScanner: Found to be clean X-CIS-MailScanner-SpamCheck: not spam, SpamAssassin (score=0, required 6) X-CIS-MailScanner-From: chodgins@cis.strath.ac.uk cc: questions@freebsd.org cc: Ted Mittelstaedt cc: "Jason D. Montgomery" Subject: Re: Documentation Error? 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, 01 Mar 2005 16:33:48 -0000 Jerry McAllister wrote: >>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" > > > Hmmmm, So what is happening when no 'inet' is in the string? > It seems to work fine. Is something still not right and just > waiting to explode? We have lots of servers configured that way. > > ////jerry > > >>Ted >> > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > man rc.conf and search for "network_interfaces". The reason it still works is that if you do a simple test with your ifconfig both: ifconfig wi0 192.168.0.6 ifconfig wi0 inet 192.168.0.6 ....work as you would expect. HTH Chris