Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Feb 2000 17:46:46 -0600 (CST)
From:      Alex Charalabidis <alex@wnm.net>
To:        Brian Free <bfree@sonici.com>
Cc:        "'freebsd-questions@freebsd.org'" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Second IP Address on Single NIC
Message-ID:  <Pine.BSI.4.05.10002071739070.8522-100000@earth.wnm.net>
In-Reply-To: <8FEAC4F0CAC9D111A88B006008A993C18ADDF3@slc1mail1.sonici.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 7 Feb 2000, Brian Free wrote:

> 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.
> 
Try the following in rc.conf

ifconfig_ep0="what you currently have"
ifconfig_ep0_alias0="10.0.0.3 netmask 0xffffffff"

> 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.
> 
From the command line, use netmask 0xffffffff (or 255.255.255.255) for the
alias.

hth

-ac


-- 
==============================================================
Alex Charalabidis (AC8139)            5050 Poplar Ave, Ste 170
Systems Administrator                        Memphis, TN 38157
WebNet Memphis                                  (901) 432 6000
==============================================================




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?Pine.BSI.4.05.10002071739070.8522-100000>