From owner-freebsd-questions Tue Aug 27 04:20:05 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id EAA00382 for questions-outgoing; Tue, 27 Aug 1996 04:20:05 -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 EAA00374 for ; Tue, 27 Aug 1996 04:20:02 -0700 (PDT) Received: from synwork.com (flaq@ns1.synwork.com [204.120.255.17]) by synwork.com (8.7.5/8.6.12) with SMTP id GAA07048; Tue, 27 Aug 1996 06:19:57 -0500 (CDT) Date: Tue, 27 Aug 1996 06:19:56 -0500 (CDT) From: Mike To: satan@yoss.canweb.net cc: questions@FreeBSD.org Subject: Re: having trouble with ip aliasing In-Reply-To: <199608270817.EAA18066@yoss.canweb.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, 27 Aug 1996 satan@yoss.canweb.net wrote: > > Hi! > I am having trouble configuring my server for virtual ips. > Its 'main' ip is 152.160.182.16 (ifconfig) > I do the following > > ifconfig ed0 inet 152.160.5.1 alias > route add -host 152.160.5.1 localhost > > The route command fails with 'file exists' error, and I cant ping > the server on 152.160.5.1, even from a local machine (same LAN). > Now, I have no problem aliasing to ips on same subnet, ie., > aliasing to 152.160.182.224, for example. So I suspect this is a > problem with netmask on ifconfig, but I cant figure out what it > should be. > > Thanks, > > --Stan > For an IP alias, I use: ifconfig ed0 xxx.xxx.xxx.xxx netmask 255.255.255.255 alias I don't think you should have to add a route. ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ 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 ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~