From owner-freebsd-hackers Fri Sep 15 10:08:13 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id KAA23344 for hackers-outgoing; Fri, 15 Sep 1995 10:08:13 -0700 Received: from healer.com (healer-gw.Empire.Net [205.164.80.204]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id KAA23301 for ; Fri, 15 Sep 1995 10:07:49 -0700 Received: (from gryphon@localhost) by healer.com (8.6.11/8.6.9.1) id NAA03743; Fri, 15 Sep 1995 13:08:27 -0400 Date: Fri, 15 Sep 1995 13:08:27 -0400 From: Coranth Gryphon Message-Id: <199509151708.NAA03743@healer.com> To: hackers@freebsd.org, mmead@Glock.COM Subject: Re: more ifconfig alias problems... Sender: owner-hackers@freebsd.org Precedence: bulk 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"). -coranth ------------------------------------------+------------------------+ Coranth Gryphon | "Faith Manages." | | - Satai Delenn | Phone: 603-598-3440 Fax: 603-598-3430 +------------------------+ USMail: 11 Carver St, Nashua, NH 03060 Disclaimer: All these words are yours, except Europa...