From owner-freebsd-questions Thu Apr 19 19:42:33 2001 Delivered-To: freebsd-questions@freebsd.org Received: from nameserver.austclear.com.au (nameserver.austclear.com.au [192.83.119.132]) by hub.freebsd.org (Postfix) with ESMTP id 52E3B37B424 for ; Thu, 19 Apr 2001 19:42:27 -0700 (PDT) (envelope-from ahl@austclear.com.au) Received: from tungsten.austclear.com.au (tungsten.austclear.com.au [192.168.70.1]) by nameserver.austclear.com.au (8.9.3/8.9.3) with ESMTP id MAA64585; Fri, 20 Apr 2001 12:42:26 +1000 (EST) Received: from tungsten (tungsten [192.168.70.1]) by tungsten.austclear.com.au (8.9.3/8.9.3) with ESMTP id MAA08441; Fri, 20 Apr 2001 12:42:26 +1000 (EST) Message-Id: <200104200242.MAA08441@tungsten.austclear.com.au> X-Mailer: exmh version 2.1.1 10/15/1999 To: "q" Cc: questions@FreeBSD.ORG Subject: Re: IP forwarding route In-Reply-To: Message from "q" of "Fri, 20 Apr 2001 09:21:42 +0700." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 20 Apr 2001 12:42:25 +1000 From: Tony Landells Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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" The only way this will possibly work (with these IP addresses) is if the box in the middle is configured to do bridging. If you want to make this work at the IP layer, you need to change the IP addresses to, for example: A : 192.168.0.1 netmask 255.255.255.252 B : 192.168.0.2 netmask 255.255.255.252 C : 192.168.0.5 netmask 255.255.255.252 D : 192.168.0.6 netmask 255.255.255.252 to make it clear you're running two segments. Then, assuming you're running dynamic routing on all three boxes they should be able to talk. If, however, you're only running routed on the middle box, then you'll need to add either a default gateway or a static route on the outer two boxes to tell them to use the middle box. Tony -- Tony Landells Senior Network Engineer Ph: +61 3 9677 9319 Australian Clearing Services Pty Ltd Fax: +61 3 9677 9355 Level 4, Rialto North Tower 525 Collins Street Melbourne VIC 3000 Australia To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message