From owner-freebsd-questions Mon Jul 30 7:57:16 2001 Delivered-To: freebsd-questions@freebsd.org Received: from moebius2.Space.Net (moebius2.Space.Net [195.30.1.100]) by hub.freebsd.org (Postfix) with SMTP id 9679037B403 for ; Mon, 30 Jul 2001 07:57:10 -0700 (PDT) (envelope-from mh@Space.Net) Received: (qmail 43995 invoked by uid 1408); 30 Jul 2001 14:57:08 -0000 Date: Mon, 30 Jul 2001 16:57:08 +0200 From: Martin Hasenbein To: Odhiambo Washington Cc: FreeBSD Questions Subject: Re: ifconfig alias ... Message-ID: <20010730165708.F95536@Space.Net> Reply-To: Martin Hasenbein References: <20010730164315.E95536@Space.Net> <20010730175410.F88739@everest.wananchi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20010730175410.F88739@everest.wananchi.com>; from wash@wananchi.com on Mon, Jul 30, 2001 at 05:54:10PM +0300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Odhiambo Washington (wash@wananchi.com) wrote: > * Martin Hasenbein [20010730 17:43]: writing on the subject 'ifconfig alias ...' > Martin> Hi, > Martin> > Martin> I have a question about ifconfig. > Martin> I have a NIC with the IP-Address 192.168.0.1 > Martin> and I want to assign 4 more IP-Addresses to this NIC. > Martin> What do I have to configure to have these 4 IPs as > Martin> aliases on my NIC?? Do I have to change something > Martin> with the pseudo-devices in my kernel? What do I have to > Martin> configure with ifconfig? > > If the other addresses belong to different nets, then this one below works > > ifconfig_fxp0="inet 62.8.64.4 netmask 255.255.255.0" > ifconfig_fxp0_alias0="inet 212.49.74.4 netmask 255.255.255.128" > > If they other addresses belong to the same net as the first IP, then > > ifconfig_fxp0="inet 62.8.64.4 netmask 255.255.255.0" > ifconfig_fxp0_alias0="inet 62.8.64.W netmask 255.255.255.255" > ifconfig_fxp0_alias1="inet 62.8.64.X netmask 255.255.255.255" > ifconfig_fxp0_alias2="inet 62.8.64.Y netmask 255.255.255.255" > ifconfig_fxp0_alias3="inet 62.8.64.Z netmask 255.255.255.255" > > Hope that helps. > > > -Wash > Hi Wash, do I have to add these lines on the command line or do I have to insert them in /etc/rc.conf? Or both? So I have nothing to configure in my kernel?! /martin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message