IP-forwarding (help)
Arno J. Klaassen
arno at heho.snv.jussieu.fr
Thu Jun 5 21:01:32 UTC 2008
Bakul Shah <bakul at bitblocks.com> writes:
> On 05 Jun 2008 01:33:05 +0200 "Arno J. Klaassen" <arno at heho.snv.jussieu.fr> wrote:
> > Petar Bogdanovic <petar at smokva.net> writes:
> >
> > > On Wed, Jun 04, 2008 at 11:06:01PM +0200, Arno J. Klaassen wrote:
> > > >
> > > > [ problem description ]
> > I feel this is /me still not fully understand routing tables.
>
> This is your topology, right?
yes
> test-box main-box gateway
> [192.168.1.1]------[192.168.1.254 172.16.1.240]-------[172.16.1.254
>
> On the test-box set default route to 192.168.1.254.
> On the main-box set net.inet.ip.forwarding 1 but remove the
> static routes.
>
> But how would machines on the 172.16.1.0/24 net know they
> must send packets for 192.168.1.0/24 to 172.16.1.240? For
> that you need static routes on all the machines on
> 172.16.1.0/24 that need to read your test box.
Yes, of course ... Thank you very much (I felt it were
a simple problem, but somehow blocked finding the solution).
Best regards,
Arno
More information about the freebsd-net
mailing list