From owner-freebsd-questions Mon Feb 7 15:46:20 2000 Delivered-To: freebsd-questions@freebsd.org Received: from earth.wnm.net (earth.wnm.net [208.246.240.243]) by builder.freebsd.org (Postfix) with ESMTP id 6666E40C1 for ; Mon, 7 Feb 2000 15:46:17 -0800 (PST) Received: from localhost (alex@localhost) by earth.wnm.net (8.8.8/8.8.8) with ESMTP id RAA08994; Mon, 7 Feb 2000 17:46:46 -0600 (CST) Date: Mon, 7 Feb 2000 17:46:46 -0600 (CST) From: Alex Charalabidis To: Brian Free Cc: "'freebsd-questions@freebsd.org'" Subject: Re: Second IP Address on Single NIC In-Reply-To: <8FEAC4F0CAC9D111A88B006008A993C18ADDF3@slc1mail1.sonici.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 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 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