From owner-freebsd-questions Mon Feb 7 15:32:29 2000 Delivered-To: freebsd-questions@freebsd.org Received: from sasquatch.sonici.com (ns1.sonici.com [209.90.69.70]) by builder.freebsd.org (Postfix) with ESMTP id EA50C40A5 for ; Mon, 7 Feb 2000 15:32:22 -0800 (PST) Received: from slc1mail1.sonici.com (slc1mail1.sonici.com [209.90.92.12]) by sasquatch.sonici.com (8.9.3/8.9.3) with ESMTP id QAA04325 for ; Mon, 7 Feb 2000 16:33:09 -0700 Received: by slc1mail1.sonici.com with Internet Mail Service (5.5.2448.0) id ; Mon, 7 Feb 2000 16:32:47 -0700 Message-ID: <8FEAC4F0CAC9D111A88B006008A993C18ADDF3@slc1mail1.sonici.com> From: Brian Free To: "'freebsd-questions@freebsd.org'" Subject: Second IP Address on Single NIC Date: Mon, 7 Feb 2000 16:32:38 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01BF71C3.A3C70E9A" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01BF71C3.A3C70E9A Content-Type: text/plain; charset="iso-8859-1" I am trying to assign multiple IP addresses to a single NIC for virtual hosting on a FreeBSD 3.3 server. Here is the current output of ifconfig: bash-2.03# ifconfig ep0 ep0: flags=8843 mtu 1500 inet 10.0.0.2 netmask 0xffffffe0 broadcast 10.0.0.1 ether 00:a0:27:06:ef:fe The command I am trying to use is: ifconfig ep0 alias 10.0.0.3 netmask 255.255.255.224 up I have also tried entering the info into rc.conf, but after rebooting, the only address that worked was the second one. The command returns: ifconfig: ioctl (SIOCAIFADDR): File exists Which I believe means that the interface already has an address, and not a problem. After executing the command, ifconfig ep0 shows: bash-2.03# ifconfig ep0 ep0: flags=8843 mtu 1500 inet 10.0.0.2 netmask 0xffffffe0 broadcast 10.0.0.1 inet 10.0.0.3 netmask 0xffffffe0 broadcast 10.0.0.1 ether 00:a0:27:06:ef:fe So I assume it has take the second address, however it will not reply to a ping to the second address. Any thoughts or suggestions would be appreciated. Brian Free IT Manager SONIC innovations Email: bfree@sonici.com ------_=_NextPart_001_01BF71C3.A3C70E9A Content-Type: text/html; charset="iso-8859-1"
I am trying to assign multiple IP addresses to a single NIC for virtual hosting on a FreeBSD 3.3 server.
Here is the current output of ifconfig:
bash-2.03# ifconfig ep0
ep0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 10.0.0.2 netmask 0xffffffe0 broadcast 10.0.0.1
        ether 00:a0:27:06:ef:fe
 
The command I am trying to use is:
ifconfig ep0 alias 10.0.0.3 netmask 255.255.255.224 up
I have also tried entering the info into rc.conf, but after rebooting, the only address that worked was the second one.
 
The command returns:
ifconfig: ioctl (SIOCAIFADDR): File exists
Which I believe means that the interface already has an address, and not a problem.
 
After executing the command, ifconfig ep0 shows:
bash-2.03# ifconfig ep0
ep0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 10.0.0.2 netmask 0xffffffe0 broadcast 10.0.0.1
        inet 10.0.0.3 netmask 0xffffffe0 broadcast 10.0.0.1
        ether 00:a0:27:06:ef:fe
 
So I assume it has take the second address, however it will not reply to a ping to the second address. 
Any thoughts or suggestions would be appreciated.

Brian Free
IT Manager
SONIC innovations
Email: bfree@sonici.com

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