From owner-freebsd-questions Mon Jul 22 14:43:56 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA13116 for questions-outgoing; Mon, 22 Jul 1996 14:43:56 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id OAA13081 for ; Mon, 22 Jul 1996 14:43:48 -0700 (PDT) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id XAA19887; Mon, 22 Jul 1996 23:43:14 +0200 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id XAA05929; Mon, 22 Jul 1996 23:43:12 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.5/8.6.9) id WAA06567; Mon, 22 Jul 1996 22:54:01 +0200 (MET DST) From: J Wunsch Message-Id: <199607222054.WAA06567@uriah.heep.sax.de> Subject: Re: ifconfig To: rishim@teil.soft.net (Rishi Gautam) Date: Mon, 22 Jul 1996 22:54:01 +0200 (MET DST) Cc: questions@freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <9607230323.AA17217@teil.soft.net> from Rishi Gautam at "Jul 22, 96 07:23:57 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk (Redirected to -questions.) As Rishi Gautam wrote: > ifconfig ed1 alias [address] netmask [netmask] > if I am using the netmask option with netmask same as of the netmask > of the exsisting configured addres, I am getting error "File exsits" Yes, use this only when adding addresses for other (sub)networks, not when adding an alias inside the same network. For the latter case, do always use 0xffffffff. > If I didn't using the netmas option or giving some other netmask > the command exits succesfully. But if I typed the "ifconfig ed1", > it doesn't show me all the address. It shows only the old address. That's FreeBSD 2.1, right? The ifconfig there didn't show more than one address. This has been fixed now. netstat -r should tell you about all aliases however. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)