From owner-freebsd-questions Sun May 17 17:26:48 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA25256 for freebsd-questions-outgoing; Sun, 17 May 1998 17:26:48 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mail-ftp.nordicdms.com ([207.21.168.100]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA25222 for ; Sun, 17 May 1998 17:26:41 -0700 (PDT) (envelope-from walton@nordicdms.com) Received: from mail-ftp (mail.nordicdms.com [207.21.168.101]) by mail-ftp.nordicdms.com (Post.Office MTA v3.1 release PO205e ID# 0-0U10L2S100) with SMTP id AAA155; Sun, 17 May 1998 17:25:57 -0700 From: walton@nordicdms.com (Dave Walton) Organization: Nordic Entertainment Worldwide To: Kurt Jones , questions@FreeBSD.ORG Date: Sun, 17 May 1998 17:25:57 -800 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: A couple of IP aliasing questions Reply-to: walton@nordicdms.com In-reply-to: <3.0.5.32.19980518074731.008fbc80@woftam.com.au> Message-ID: <19980518002557350.AAA155@mail.nordicdms.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 18 May 98 at 7:47, Kurt Jones wrote: > When I set up an IP alias I enter the following: > > ifconfig ed1 inet xxx.xxx.xxx.xxx netmask 255.255.255.240 alias > route add -host xxx.xxx.xxx.xxx 127.0.0.1 0 > > This seems to work OK but after the first line it reports: > > "ifconfig: ioctl (SIOCAIFADDR): File exists" > > What does this mean and do I need to worry about it? I've seen that error, too. I noticed that the sample alias entry in /etc/rc.conf used a netmask of 255.255.255.255, so I changed my alias netmask to that. Problem solved. I don't know exactly what causes the error, and ifconfig(8) doesn't mention any requirement for the alias netmask (hint to docs people!), but that change makes the error go away. > Also to automate this proceedure at startup, in which file should I make > the IP aliasing entries? Put: ifconfig_ed1_alias0="inet xxx.xxx.xxx.xxx netmask 0xffffffff" into your /etc/rc.conf, just below the "ifconfig_ed1=" line. I haven't messed with routes yet, but based on the example in "The Complete FreeBSD" you should put something like this in /etc/rc.conf: static_routes="route_woftam" route_woftam="-host xxx.xxx.xxx.xxx 127.0.0.1 0" Dave ---------------------------------------------------------------------- Dave Walton Webmaster, Postmaster Nordic Entertainment Worldwide walton@nordicdms.com http://www.nordicdms.com ---------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message