From owner-freebsd-questions Thu Apr 19 19:43:48 2001 Delivered-To: freebsd-questions@freebsd.org Received: from cody.jharris.com (cody.jharris.com [205.238.128.83]) by hub.freebsd.org (Postfix) with ESMTP id 943F637B424 for ; Thu, 19 Apr 2001 19:43:45 -0700 (PDT) (envelope-from nick@rogness.net) Received: from localhost (nick@localhost) by cody.jharris.com (8.11.1/8.9.3) with ESMTP id f3K3ohK91901; Thu, 19 Apr 2001 22:50:44 -0500 (CDT) (envelope-from nick@rogness.net) Date: Thu, 19 Apr 2001 22:50:43 -0500 (CDT) From: Nick Rogness X-Sender: nick@cody.jharris.com To: q Cc: questions@FreeBSD.ORG Subject: Re: IP forwarding route In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 20 Apr 2001, q wrote: > How to make A & D can communicate each others ? > > Assume : > A : 192.168.0.1 > B : 192.168.0.2 > C : 192.168.0.3 > D : 192.168.0.4 > > +---------+ +---------+ +---------+ > | | | | | | > | A+-----+B C+----+D | > | | | | | | > +---------+ +---------+ +---------+ Your IP scheme is the problem. You are using an unrouteable IP scheme because of the IP ranges's you chose. The only way that would work is if the middle machine is running in bridging mode. If you want to route between the middle machine, change C to 192.168.0.5 and D to 192.168.0.6 and set the netmask on A,B,C,D to 255.255.255.252. > > I was add /etc/rc.conf with 4 lines below : > > gateway_enable="YES" > router_enable="YES" > router="routed" > router_flags="-s" Depending on your default routes, you may not have to run routed. If the default gateway on A = B and default gateway on D = C, then there is no need to run routed. Nick Rogness - Keep on Routing in a Free World... "FreeBSD: The Power to Serve!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message