From owner-freebsd-questions Wed Jul 18 11:31:29 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail1.activemessage.com (www.activemessage.com [206.86.226.202]) by hub.freebsd.org (Postfix) with ESMTP id 6D10D37B406 for ; Wed, 18 Jul 2001 11:31:26 -0700 (PDT) (envelope-from mloftis@wgops.com) Received: from wgops.com (adsl-64-173-25-200.dsl.sntc01.pacbell.net [64.173.25.200]) by mail1.activemessage.com (Postfix) with ESMTP id E3FE9BDE3C; Wed, 18 Jul 2001 11:32:35 -0700 (PDT) Message-ID: <3B55D595.A9FC28AA@wgops.com> Date: Wed, 18 Jul 2001 11:29:41 -0700 From: Michael Loftis X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Peter Warrick Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Routing References: <200107170112.TAA30503@mail.guest-tek.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG If you mean you want a single-ip alias you can... ifconfig en1 add 1.2.3.1 netmask 255.255.255.255 .... Peter Warrick wrote: > > Ok.. Hopefully I have sent this to the right place. > > I sent in a question to freebsd-net earlier but maybe some clarification > here might help. I am trying to reproduce the same functionality that I > have achieved on Redhat Linux on a BSD box. > > In Redhat linux if I issue these commands.. > > ifconfig eth1:0 1.2.3.1 netmask 255.255.255.255 > route add -host 1.2.3.4 dev eth1:0 > > A computer connected to my BSD box (1.2.3.4) can then start pinging > 1.2.3.1 immediately. Additionally this does NOT bring the entire 1.2.3.x > subnet onto my BSD box and this is what I want. I simply want to route > these two IPs together so they can talk to each other. > > On BSD I have tried the following without success... > > ifconfig en1 1.2.3.1 netmask 255.255.255.255 broadcast 1.255.255.255 > alias > route add -host 1.2.3.4 -interface en1 > > I added the broadcast to the ifconfig line in BSD because I noticed in > linux my broadcast was 1.255.255.255 by default and BSD wasn't doing > this. Yet this still did not help. > > Is there anything else someone may suggest that I need to do to get this > working? Again I have this working on my Redhat Linux box but not my BSD > box and I am kind of under the gun to prove that it can be done in BSD > as it has been done in Redhat. > > Thanks guys for any help. > > Pete > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message