From owner-freebsd-questions Tue Nov 2 6: 4:35 1999 Delivered-To: freebsd-questions@freebsd.org Received: from athserv.otenet.gr (athserv.otenet.gr [195.170.0.1]) by hub.freebsd.org (Postfix) with ESMTP id C3AA514C1C for ; Tue, 2 Nov 1999 06:04:17 -0800 (PST) (envelope-from keramida@diogenis.ceid.upatras.gr) Received: from hades.hell.gr (patr530-a030.otenet.gr [195.167.115.30]) by athserv.otenet.gr (8.9.3/8.9.3) with SMTP id QAA00487 for ; Tue, 2 Nov 1999 16:04:11 +0200 (EET) Received: (qmail 8055 invoked by uid 1001); 2 Nov 1999 14:03:47 -0000 To: freebsd-questions@freebsd.org Subject: Re: How to route a single box into a subnet References: <199911020121.CAA26450@dorifer.heim3.tu-clausthal.de> From: Giorgos Keramidas Date: 02 Nov 1999 16:03:47 +0200 In-Reply-To: Oliver Fromme's message of "Tue, 2 Nov 1999 02:21:47 +0100 (CET)" Message-ID: <86so2pq9bw.fsf@localhost.hell.gr> Lines: 25 X-Mailer: Gnus v5.6.45/XEmacs 21.1 - "20 Minutes to Nikko" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Oliver Fromme writes: > Hello, > > We have a /24 subnet (let's call it 1.2.3.0), and for some > technical reason there is one machine (1.2.3.55) that has > to be routed through another machine (1.2.3.44). > > The router (.44) runs FreeBSD -stable and has two network interfaces > -- one is connected to the rest of the network, and the other is > connected directly to the .55 machine (via a crossed TP cable). The > .55 machine has only one network interface, and it's running various > operating systems (W95, Linux, FreeBSD). > > What is the easiest way to do such a setup? I think that it can be easily done by setting the default gateway on the 1.2.3.55 machine to be the 1.2.3.44 router. Then for incoming traffic, you need to add a `host route' to the router of 1.2.3.0/24 (is this the 1.2.3.44 machine?) that will destined for 1.2.3.55 over the right interface. -- Giorgos Keramidas, "What we have to learn to do, we learn by doing." [Aristotle] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message