From owner-freebsd-questions Tue Jul 17 19:28:27 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp1.sentex.ca (smtp1.sentex.ca [199.212.134.4]) by hub.freebsd.org (Postfix) with ESMTP id CBEAB37B401 for ; Tue, 17 Jul 2001 19:28:23 -0700 (PDT) (envelope-from mike@sentex.net) Received: from chimp.simianscience.com (cage.simianscience.com [64.7.134.1]) by smtp1.sentex.ca (8.11.2/8.11.1) with SMTP id f6I2SLM51741; Tue, 17 Jul 2001 22:28:22 -0400 (EDT) (envelope-from mike@sentex.net) From: Mike Tancsa To: peter@guest-tek.com (Peter Warrick) Cc: questions@freebsd.org Subject: Re: Routing Date: Tue, 17 Jul 2001 22:28:21 -0400 Message-ID: References: In-Reply-To: X-Mailer: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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 On 16 Jul 2001 21:18:35 -0400, in sentex.lists.freebsd.questions you = wrote: >Ok.. Hopefully I have sent this to the right place. > >I sent in a question to freebsd-net earlier but maybe some clarification= =20 >here might help. I am trying to reproduce the same functionality that I=20 >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=20 >1.2.3.1 immediately. Additionally this does NOT bring the entire 1.2.3.x= =20 >subnet onto my BSD box and this is what I want. I simply want to route=20 >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=20 >alias >route add -host 1.2.3.4 -interface en1 If you have 2 IP address that you want to alias onto the machine who has lets say 192.168.1.1/28,=20 ifconfig lo0 1.2.3.1 netmask 255.255.255.255 alias ifconfig lo0 1.2.3.4 netmask 255.255.255.255 alias As long as the *outside* world knows how to get to these 2 host routes, = you dont need to do anything else. ---Mike Mike Tancsa (mdtancsa@sentex.net) =09 Sentex Communications Corp, =09 Waterloo, Ontario, Canada "Given enough time, 100 monkeys on 100 routers=20 could setup a national IP network." (KDW2) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message