Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Jul 2000 15:26:11 -0400
From:      "Jeff" <jeff@wilkshire.net>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   Multiple Ip Addresses on single Nic
Message-ID:  <000501bfe849$35c19940$058039cf@noc.wilkshire.net>

next in thread | raw e-mail | index | archive | help
Hello,

I was wondering if anyone could help with a question concerning
a virtual hosting server I am creating with FreeBSD 4.0

I wish to add multiple Ip Addresses to a single nic card for
virtual hosting services. In the past I have used the following with no
problem:
(Note that I am substituting my real ip addresses with fake ones)

/etc/rc.conf entry

ifconfig fxp0 inet 192.168.10.5 netmask 255.255.255.0
ifconfig fxp0 inet 192.168.10.6 netmask 255.255.255.255 alias
route add -host 192.168.10.6 127.0.0.1 0

(note the last "0" on 127.0.0.1 0 is the metric hop count)
this should allow my server to host both 192.168.10.5 and .6
on the interface fxp0

however, when I restart my server, I get an error saying that
127.0.0.1 exists and does not load the secondary alias entry.

any ideas?
or does anyone currently do virtual hosting with FreeBSD 4.0
with multiple real ip's on a single interface that can point me
in the right direction?

thank you

Jeff



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000501bfe849$35c19940$058039cf>