Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Apr 2001 22:50:43 -0500 (CDT)
From:      Nick Rogness <nick@rogness.net>
To:        q <q2001@plasa.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: IP forwarding route
Message-ID:  <Pine.BSF.4.21.0104192241090.91833-100000@cody.jharris.com>
In-Reply-To: <web-447510@mail.plasa.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <nick@rogness.net>
 - 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0104192241090.91833-100000>