From owner-freebsd-hackers Fri Sep 15 17:20:10 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id RAA18064 for hackers-outgoing; Fri, 15 Sep 1995 17:20:10 -0700 Received: from Glock.COM (root@glock.com [198.82.228.165]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id RAA18054 for ; Fri, 15 Sep 1995 17:20:07 -0700 Received: (from mmead@localhost) by Glock.COM (8.6.11/8.6.9) id UAA01895; Fri, 15 Sep 1995 20:18:56 -0400 Date: Fri, 15 Sep 1995 20:18:56 -0400 From: "matthew c. mead" Message-Id: <199509160018.UAA01895@Glock.COM> To: Coranth Gryphon Cc: hackers@freebsd.org Subject: Re: more ifconfig alias problems... In-Reply-To: Your message of Fri, September 15, 1995 13:08:27 -0400 References: <199509151708.NAA03743@healer.com> Sender: owner-hackers@freebsd.org Precedence: bulk On Fri, September 15, 1995 at 13:08:27 (-0400), Coranth Gryphon wrote: > Matthew C. Mead says: > > root@Glock % ifconfig ed0 neon alias netmask 255.255.255.0 > > ifconfig: ioctl (SIOCAIFADDR): File exists > > > > Any ideas what I'm doing wrong, or do I need to upgrade? > > Try this. For the primary ed0 interface, use: > > root# ifconfig ed0 inet 10.20.30.1 netmask 255.255.255.0 > > This gives you the first one (it'll probably be done automatically by > rc.sysconfig and rc.netstart). Obviously substitute your address for > the "10.20.30.1" example :-) > > To add the second address, use: > > root# ifconfig ed0 alias 10.20.30.2 netmask 255.255.255.255 > > If it is on the same class-c as the first address, or: > > root# ifconfig ed0 alias 10.20.40.2 netmask 255.255.255.0 > > If it is on a different class-c than the primary ed0 address. > > Either alias line can be added to the rc.netstart script to be run > automatically. Put if after the "for ifn in ${network_interfaces}" > block (ie. after the "done"). Thanks - this worked! -matt -- Matthew C. Mead mmead@Glock.COM | Network Administration and Software Development http://www.Glock.COM/~mmead/ | Consulting: BizNet Technologies -> mmead@bnt.com