Date: Tue, 01 Mar 2005 16:38:39 +0000 From: Chris Hodgins <chodgins@cis.strath.ac.uk> To: Jerry McAllister <jerrymc@clunix.cl.msu.edu> Cc: "Jason D. Montgomery" <jason@atgi.com> Subject: Re: Documentation Error? Message-ID: <42249A8F.4080206@cis.strath.ac.uk> In-Reply-To: <200503011619.j21GJ9L05511@clunix.cl.msu.edu> References: <200503011619.j21GJ9L05511@clunix.cl.msu.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42249A8F.4080206>