Date: Mon, 30 Jul 2001 16:57:08 +0200 From: Martin Hasenbein <mh-freebsd-questions@space.net> To: Odhiambo Washington <wash@wananchi.com> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: ifconfig alias ... Message-ID: <20010730165708.F95536@Space.Net> In-Reply-To: <20010730175410.F88739@everest.wananchi.com>; from wash@wananchi.com on Mon, Jul 30, 2001 at 05:54:10PM %2B0300 References: <20010730164315.E95536@Space.Net> <20010730175410.F88739@everest.wananchi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Odhiambo Washington (wash@wananchi.com) wrote: > * Martin Hasenbein <mh-freebsd-questions@space.net> [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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010730165708.F95536>