Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Feb 2000 16:32:38 -0700 
From:      Brian Free <bfree@sonici.com>
To:        "'freebsd-questions@freebsd.org'" <freebsd-questions@freebsd.org>
Subject:   Second IP Address on Single NIC
Message-ID:  <8FEAC4F0CAC9D111A88B006008A993C18ADDF3@slc1mail1.sonici.com>

next in thread | raw e-mail | index | archive | help
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<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
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 5.00.2920.0" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=770012223-07022000>I am trying to 
assign multiple IP addresses to a single NIC for virtual hosting on a FreeBSD 
3.3 server.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=770012223-07022000>Here is the current 
output of ifconfig:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=770012223-07022000>bash-2.03# ifconfig 
ep0<BR>ep0: flags=8843&lt;UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST&gt; mtu 
1500<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet&nbsp;10.0.0.2 netmask 
0xffffffe0 broadcast&nbsp;10.0.0.1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
ether 00:a0:27:06:ef:fe</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=770012223-07022000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=770012223-07022000>The command I am 
trying to use is:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=770012223-07022000>ifconfig ep0 alias 
10.0.0.3 netmask 255.255.255.224 up</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=770012223-07022000>I have also tried 
entering the info into rc.conf, but after rebooting, the only address that 
worked was the second one.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=770012223-07022000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=770012223-07022000>The command 
returns:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=770012223-07022000>ifconfig: ioctl 
(SIOCAIFADDR): File exists</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=770012223-07022000>Which I believe 
means that the interface already has an address, and not a 
problem.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=770012223-07022000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=770012223-07022000>After executing the 
command, ifconfig ep0 shows:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=770012223-07022000>bash-2.03# ifconfig 
ep0<BR>ep0: flags=8843&lt;UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST&gt; mtu 
1500<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet&nbsp;10.0.0.2 netmask 
0xffffffe0 broadcast&nbsp;10.0.0.1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
inet&nbsp;10.0.0.3 netmask 0xffffffe0 broadcast 
10.0.0.1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ether 
00:a0:27:06:ef:fe</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=770012223-07022000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=770012223-07022000>So I assume it has 
take the second address, however it will not reply to a ping to the second 
address.&nbsp; </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=770012223-07022000>Any thoughts or 
suggestions would be appreciated.</SPAN></FONT></DIV>
<P><B><FONT color=#000080 face=Tahoma size=4>Brian Free</FONT></B> <BR><FONT 
color=#808080 face=Tahoma size=2>IT Manager</FONT> <BR><FONT color=#808080 
face=Tahoma size=2>SONIC innovations</FONT> <BR><FONT color=#c0c0c0 face=Tahoma 
size=2>Email: bfree@sonici.com</FONT> </P>
<DIV>&nbsp;</DIV></BODY></HTML>

------_=_NextPart_001_01BF71C3.A3C70E9A--


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?8FEAC4F0CAC9D111A88B006008A993C18ADDF3>