From owner-freebsd-questions Thu Apr 19 19:46:28 2001 Delivered-To: freebsd-questions@freebsd.org Received: from itouch.co.nz (itouch.co.nz [203.99.66.188]) by hub.freebsd.org (Postfix) with ESMTP id 6F86937B424 for ; Thu, 19 Apr 2001 19:46:22 -0700 (PDT) (envelope-from jonc@itouch.co.nz) Received: (from jonc@localhost) by itouch.co.nz (8.11.2/8.11.1) id f3K2jao66136; Fri, 20 Apr 2001 14:45:36 +1200 (NZST) (envelope-from jonc) Date: Fri, 20 Apr 2001 14:45:36 +1200 From: Jonathan Chen To: q Cc: questions@FreeBSD.ORG Subject: Re: IP forwarding route Message-ID: <20010420144536.A64688@itouchnz.itouch> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from q2001@plasa.com on Fri, Apr 20, 2001 at 09:21:42AM +0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Apr 20, 2001 at 09:21:42AM +0700, 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 | > | | | | | | > +---------+ +---------+ +---------+ > > I was add /etc/rc.conf with 4 lines below : > > gateway_enable="YES" > router_enable="YES" > router="routed" > router_flags="-s" For one, your IP allocations aren't good (not unless you're doing bridging, which I suspect you're not). There are 2 seperate networks involved in your diagram above, and not 1 as your IP allocations would suggest. If you put C & D on a different network, eg: 192.168.1.x; things will work as expected. -- Jonathan Chen ---------------------------------------------------------------------- When all else fails, RTFM To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message