Date: Wed, 03 Mar 2004 10:42:25 -0600 From: "Kevin D. Kinsey, DaleCo, S.P." <kdk@daleco.biz> To: Erik Sliman <p500.2004@openstandards.net> Cc: freebsd-newbies@freebsd.org Subject: Re: Creating multiple static IPs Message-ID: <40460AF1.5070800@daleco.biz> In-Reply-To: <40460642.2030001@openstandards.net> References: <40460642.2030001@openstandards.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Erik Sliman wrote: > How do you give a computer multiple static IPs? > > I've tried many things, including the ifaliases setting in rc.conf: > > ifconfig_vr0="inet 192.168.1.3 netmask 255.255.255.0" > ifaliases_vr0="192.168.1.36 255.255.255.0" > > but none seem to work. _______________________________________________ > Obligatory comment: is that a question? You have heard about "freebsd-questions@freebsd.org" .... Now that I've covered my communal 'tail': Don't you mean "How do you give an interface multiple static IPs?" I mean, you could just install two NICS .... :-) The correct syntax is in the handbook, section 6.9, but you're very close.... Also, note in ifconfig(8): alias Establish an additional network address for this interface. This is sometimes useful when changing network numbers, and one wishes to accept packets addressed to the old interface. If the address is on the same subnet as the first network address for this interface, a non-conflicting netmask must be given. Usually 0xffffffff is most appropriate. So you may need to compute another netmask for the alias address. HTH, Kevin Kinsey DaleCo, S.P.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40460AF1.5070800>