From owner-freebsd-isp Tue Nov 11 04:10:46 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id EAA18358 for isp-outgoing; Tue, 11 Nov 1997 04:10:46 -0800 (PST) (envelope-from owner-freebsd-isp) Received: from panda.hilink.com.au (panda.hilink.com.au [203.8.15.25]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id EAA18351 for ; Tue, 11 Nov 1997 04:10:42 -0800 (PST) (envelope-from danny@panda.hilink.com.au) Received: (from danny@localhost) by panda.hilink.com.au (8.8.5/8.8.5) id XAA10956; Tue, 11 Nov 1997 23:06:44 +1100 (EST) Date: Tue, 11 Nov 1997 23:06:43 +1100 (EST) From: "Daniel O'Callaghan" To: Antal Rutz cc: V Gatut Harijoso , freebsd-isp@FreeBSD.ORG Subject: Re: Gateway question In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Tue, 11 Nov 1997, Antal Rutz wrote: > On Mon, 10 Nov 1997, V Gatut Harijoso wrote: > > > Using gated or routed maybe solve the problem. Simple way is > > a. at default router > > route add -net <193.6.9.box1-address> > They all (router, box1, box2) are on the same > (193.6.4.9.0/255.255.255.0) net. And there you have the cause of the problem. A fundamental lack of understanding of IP routing. The idea of a router is to route packets between two networks which are NUMBERED DIFFERENTLY. You need to subnet your network and put one subnet on each side of the router. Yes, you can fudge your way through with proxy arp, but it is not a good practice, and you should take the time to learn about subnetting now, while you have few machines. See below for my suggested network config. Danny You wrote: > > > I want to build a little network that way: > > > > > > Ethernet:193.6.9.0/255.255.255.0 > > > <-------------------------------------> > > > | | > > > --------- ------- (193.6.9.7) > > > |default| |FBSD | 'box1' > > > |router | |Box | > > > --------- ------- (193.6.9.8) > > > (193.6.9.254) | > > > | IP through lp0 > > > | > > > ------- (193.6.9.9) > > > |FBSD | 'box2' > > > |Box | > > > ------- I suggest: > > > Ethernet:193.6.9.0/255.255.255.192 > > > <-------------------------------------> > > > | | > > > --------- ------- (193.6.9.7) > > > |default| |FBSD | 'box1' > > > |router | |Box | > > > --------- ------- (193.6.9.65) > > > (193.6.9.62) | > > > | IP through lp0 | 193.6.9.64/255.255.255.192 > > > | > > > ------- (193.6.9.66) > > > |FBSD | 'box2' > > > |Box | > > > -------