From owner-freebsd-questions Wed Oct 2 04:18:21 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id EAA29412 for questions-outgoing; Wed, 2 Oct 1996 04:18:21 -0700 (PDT) Received: from synwork.com (root@synwork.com [199.3.234.4]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id EAA29406 for ; Wed, 2 Oct 1996 04:18:11 -0700 (PDT) Received: from localhost (flaq@localhost) by synwork.com (8.7.5/8.6.12) with SMTP id GAA24997; Wed, 2 Oct 1996 06:17:36 -0500 (CDT) Date: Wed, 2 Oct 1996 06:17:36 -0500 (CDT) From: SysAdmin To: Anthony Fleisher cc: us@microtronic.de, questions@freebsd.org Subject: Re: virtual IPs - more specific question In-Reply-To: <2.2.32.19961001234349.00a05944@mind.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Tue, 1 Oct 1996, Anthony Fleisher wrote: > At 12:32 PM 8/17/96 +0200, you wrote: > >Hi, > >I now know that a named works on a virtual IP. At least it does under > >Linux if I configure the interface as follows (on Linux 2.0.7): > >/sbin/ifconfig eth0:0 x.x.x.x netmask 255.255.255.192 broadcast 194.64.170.63 > >/sbin/route add -host 194.64.170.41 dev eth0:0 > > > >Unfortunatly, I can't get this IP aliasing to work under FreeBSD. If I try > >to set an alias w/ FreeBSD and specify a netmask other than 0xffffffff, I > >get: > ># ifconfig de0 194.64.170.16 alias netmask 0xffffffc0 > >ifconfig: ioctl (SIOCAIFADDR): File exists > ># ifconfig de0 194.64.170.16 alias netmask 0xffffffff > >works fine, but then a named won't respond on that interface. > > > I believe that you need to kill named and restart it AFTER the interface is > aliased. > We had named setup on a box with several aliases, and it responded to > requests on all of them. Actually, alias IP's must have a netmask of 255.255.255.255 So use ifconfig de0 194.64.170.16 netmask 255.255.255.255 alias Mike ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ Syn-Work Media, Inc. | WWW Development & Hosting | Life Safety http://www.synwork.com | Systems Integration | CCTV mike@synwork.com | Voice/Data/Fiber | Access Control Flaq on IRC | Dukane Distributor | BICSI/RCDD :|:|:|: Powered By FreeBSD :|:|:|: Turning PC's Into Workstations ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~