From owner-freebsd-questions Tue Feb 10 20:39:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA14628 for questions-outgoing; Tue, 10 Feb 1998 20:39:29 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from infowest.com (infowest.com [204.17.177.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA14607 for ; Tue, 10 Feb 1998 20:39:17 -0800 (PST) (envelope-from agifford@infowest.com) Received: from infowest.com (gandalf.eq.net [207.49.60.254]) by infowest.com (8.8.5/8.8.5) with ESMTP id VAA11126; Tue, 10 Feb 1998 21:38:56 -0700 (MST) Message-ID: <34E12B42.ED564BE7@infowest.com> Date: Wed, 11 Feb 1998 04:38:26 +0000 From: "Aaron D. Gifford" X-Mailer: Mozilla 4.03 [en] (X11; U; FreeBSD 2.2.5-STABLE i386) MIME-Version: 1.0 To: Anthony Hill , questions@FreeBSD.ORG Subject: Re: subnet alias for ethernet device wont work References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Anthony Hill wrote: > > Sorry for bringing up such a basic problem, but this is starting to drive > me nuts. > > I am using a FreeBSD 2.2.1-RELEASE #0 box as a router and server for my > local network, and have been assigned a /26 subnet (210.8.131.128/26) by > my employer. I have assigned a few numbers to various hosts on the network > and everything seems to be routing fine. > > However I need to bind a few more addresses to the FreeBSD box (for > virtual web servers) and dont seem to be able to get them to work. > > eg :- > bash# ifconfig ed1 > ed1: flags=8843 mtu 1500 > inet 210.8.131.129 netmask 0xffffffc0 broadcast 210.8.131.191 > ether 00:00:01:30:53:91 > bash# > > ..ok 210.8.131.129 is the primary address of the router/server and works > fine. So now I try to add another address to the ethernet card :- > > bash# ifconfig ed1 inet 210.8.131.132 netmask 0xffffffc0 alias > ifconfig: ioctl (SIOCAIFADDR): File exists < I don't know why you can't ping it, but you can get rid of the "File exists" message by making your alias netmask a full fledged 0xffffffff instead of the 0xffffffc0 netmask. I believe it is trying to add another static route for your /26 network, but sees that an entry already exists. Changing the netmask on the alias should get rid of the warning message. Aaron out. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe questions" in the body of the message