From owner-freebsd-hackers Tue May 16 06:36:28 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id GAA09738 for hackers-outgoing; Tue, 16 May 1995 06:36:28 -0700 Received: from isl.cf.ac.uk (isl-gate.elsy.cf.ac.uk [131.251.22.1]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id GAA09719 for ; Tue, 16 May 1995 06:34:58 -0700 Received: (from paul@localhost) by isl.cf.ac.uk (8.6.9/8.6.9) id OAA03684; Tue, 16 May 1995 14:33:58 +0100 From: Paul Richards Message-Id: <199505161333.OAA03684@isl.cf.ac.uk> Subject: Re: alias ( secondary IP ) for Ethernet Ifaces in FreeBSD To: rashid@haven.ios.com (Rashid Karimov.) Date: Tue, 16 May 1995 14:33:58 +0100 (BST) Cc: hackers@FreeBSD.org In-Reply-To: <199505152152.RAA17150@haven.ios.com> from "Rashid Karimov." at May 15, 95 05:52:26 pm X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1088 Sender: hackers-owner@FreeBSD.org Precedence: bulk In reply to Rashid Karimov. who said > > Hi there folx, > > Is it working ? > If yes - how can one set it up ? What's the correct format for > the command ? Should it be reflected somehow in ifconfig output > or netstat ? Co-incidentally I've spent the last few days playing with this and after talking with Garret, who explained a few problems I was seeing, my conclusion is that it works but it needs some time spent on it to make it more useable. A netstat -i will show up the alias but I plan to look at revamping ifconfig to be more alias friendly after 2.0.5 goes out. > > For example , I have ep0 iface and I want to assign the > secondary( alias) IP address to it . > What command should be issued ? > > ifconfig ep0 alias 199.199.199.22 If you can ping it then it worked, ifconfig's command line is a bit of a mess since "alias" is treated as a flag and putting it just about anywhere works. -- Paul Richards, FreeBSD core team member. Internet: paul@FreeBSD.org, http://www.isl.cf.ac.uk/ Phone: +44 1222 874000 x6646 (work), +44 1222 457651 (home)