Date: Fri, 20 Apr 2001 12:42:25 +1000 From: Tony Landells <ahl@austclear.com.au> To: "q" <q2001@plasa.com> Cc: questions@FreeBSD.ORG Subject: Re: IP forwarding route Message-ID: <200104200242.MAA08441@tungsten.austclear.com.au> In-Reply-To: Message from "q" <q2001@plasa.com> of "Fri, 20 Apr 2001 09:21:42 %2B0700." <web-447510@mail.plasa.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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 <ahl@austclear.com.au> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104200242.MAA08441>