From owner-freebsd-questions Sat Aug 31 18:53:52 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id SAA01151 for questions-outgoing; Sat, 31 Aug 1996 18:53:52 -0700 (PDT) Received: from orion.webspan.net (root@orion.webspan.net [206.154.70.41]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id SAA01146 for ; Sat, 31 Aug 1996 18:53:49 -0700 (PDT) Received: from localhost (gpalmer@localhost [127.0.0.1]) by orion.webspan.net (8.7.5/8.6.12) with SMTP id VAA24777; Sat, 31 Aug 1996 21:53:38 -0400 (EDT) X-Authentication-Warning: orion.webspan.net: Host gpalmer@localhost [127.0.0.1] didn't use HELO protocol To: satan@yoss.canweb.net cc: questions@freebsd.org From: "Gary Palmer" Subject: Re: ip aliasing does not work In-reply-to: Your message of "Sat, 31 Aug 1996 16:40:46 EDT." <199608312040.QAA20674@yoss.canweb.net> Date: Sat, 31 Aug 1996 21:53:38 -0400 Message-ID: <24774.841542818@orion.webspan.net> Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk satan@yoss.canweb.net wrote in message ID <199608312040.QAA20674@yoss.canweb.net>: > Ip aliasing does not seem to work when the primary ip is on a different > subnet than the aliased ips. Here is what I have. The ed0 interface is > configured for 152.160.182.16, netmask 255.255.255.0. > > I want to add ip aliases like 152.160.5.2. I do > > ifconfig ed0 inet 152.160.5.2 alias > route add 152.160.5.2 localhost Try specifying the netmask to the ifconfig command, and lose the route command. If you say that the route added by ifconfig is wrong, perhaps you could tell us what is wrong about it? Gary -- Gary Palmer FreeBSD Core Team Member FreeBSD: Turning PC's into workstations. See http://www.FreeBSD.ORG/ for info