Multiple static IPs
jdd at dixons.org
Wed Mar 3 10:13:15 PST 2004
On Wed, 3 Mar 2004, 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.
It would help to know what kind of computer ;-)
On FreeBSD, as I recall, the syntax is
ifconfig vr0 inet 192.168.1.3 netmask 255.255.255.0
ifconfig vr0 inet 192.168.2.254 netmask 255.255.255.0 alias
If you then do a
it will list all of the active aliases.
Jim Dixon jdd at dixons.org tel +44 117 982 0786 mobile +44 797 373 7881
"Be liberal in what you accept, Jon Postel
and conservative in what you send." RFC 793
http://jxcl.sourceforge.net Java unit test coverage
http://xlattice.sourceforge.net p2p communications infrastructure
More information about the freebsd-java