From owner-freebsd-questions Mon Sep 15 03:05:25 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id DAA18826 for questions-outgoing; Mon, 15 Sep 1997 03:05:25 -0700 (PDT) Received: from gatekeeper.barcode.co.il (gatekeeper.barcode.co.il [192.116.93.17]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id DAA18811 for ; Mon, 15 Sep 1997 03:05:19 -0700 (PDT) Received: (from smap@localhost) by gatekeeper.barcode.co.il (8.8.5/8.6.12) id NAA02914; Mon, 15 Sep 1997 13:03:24 +0300 (IDT) X-Authentication-Warning: gatekeeper.barcode.co.il: smap set sender to using -f Received: from localhost.barcode.co.il(127.0.0.1) by gatekeeper.barcode.co.il via smap (V1.3) id sma002906; Mon Sep 15 13:02:55 1997 Message-ID: <341D0730.131D@barcode.co.il> Date: Mon, 15 Sep 1997 12:00:16 +0200 From: Nadav Eiron X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.5.1 sun4u) MIME-Version: 1.0 To: jmoreno@host1.sumocg.es CC: freebsd-questions@FreeBSD.ORG Subject: Re: IFCONFIG & ALIAS References: <341CF03D.5A2A@sumocg.es> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Jacinto Moreno Parra wrote: > > I have a net and i want to asign several IP addresses into the same IP > range, who i can do that ?. > > I write this, but the ifconfig command return a error. > > Ejem: > > # ifconfig ep0 inet 195.76.200.2 > # ifconfig ep0 inet 195.76.200.3 alias > ifconfig: error( SIOCAIFADDR ) File exist. You didn't mention what version of FreeBSD you're using, but I think this message is benign. What should make things better is that you give the alias ifconfig wityh a netmask of 255.255.255.255, i.e.: ifconfig ep0 inet 195.76.200.3 netmask 255.255.255.255 alias This will also set up routing for the new alias automatically (which is the reason why your alias doesn't work in the current config). > > ---------------------- > > # ifconfig ep0 inet 195.76.200.2 > # ifconfig ep0 inet alias 195.76.200.3 > ifconfig: error( SIOCAIFADDR ) File exist. > > when i execute "ifconfig ep0", the system list the alias IP address > but this address not respond. > > # ifconfig ep0 > ....... > inet 195.76.200.2 netmask 0xffffff00 broadcast 195.76.200.255 > inet 195.76.200.3 netmask 0xffffff00 broadcast 195.76.200.255 > > # ping 195.76.200.3 > PING 195.76.200.3: (195.76.200.3): 56 data bytes > . > . > 1 packets transmitted, 0 packets received, 100% packet loss. You probably don't have a routing table entry for the alias. See above for the fix. There's also some info on it in the web site (I don't remember the exact place, but I think one of the tutorials addresses this issue). > > Best Regards > > Jacinto Moreno Parra Nadav