Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Apr 1999 12:50:03 +0100
From:      Robin Melville <robmel@innotts.co.uk>
To:        "andrea" <andrea.franceschini@linet.it>, <freebsd-stable@FreeBSD.ORG>, <freebsd-current@FreeBSD.ORG>, <tech-net@netbsd.org>, "freebsd-questions" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: arp.
Message-ID:  <l03130303b32e5264762a@[172.16.17.20]>
In-Reply-To: <011d01be7f56$a7fad060$2100a8c0@oma>

next in thread | previous in thread | raw e-mail | index | archive | help
At 12:22 pm +0100 5/4/99, andrea wrote:
>I have to add a gateway to my net for experimental reasons.
>Actually there are : a main-router that works as interface to the Internet,
>and some hosts on my sub net.
>
>        Internet-----MyRouter----MySubNet
>
>NOw i need to configure one host of MYSubNet to act as a gatway for the
>secondary subnet.
>Both the 1SubNet and 2 SubNEt share the same ip-range.
>
>     Internet-----MyRouter----MySubNet-----My2SubNet
>
>All the sub.net have to be seen from the Internet so I'll need to add a
>route to MainRouter in order to route the Secondary Subnet.
>The problem is that i cannot change configuration of the mainroute,so i
>wonder if is possible to configure the new gateway to do a sort of "proxy
>arp" for my secondary Subnet.
>But arp-tables are system-wide so if i change arp entry to cacth request on
>PrimaryNet the 2subnet dont'works anymore.
>Is possible to catch arp request only on a single subnet,without broke any
>other subnet connected to the same host.?
>thank you!

Assuming that these are IP routers and not ethernet switches, the arp
tables aren't particularly relevent. If the main router is running 'routed'
or some other RIP routing daemon, all you need to do is run a similar
daemon and your new subnet route will be propagated. Alternatively, or
essentially if you are using unregistered IP, you could use 'natd' on
'MyRouter' to masquerade the internal addresses onto the external interface.

The handbook pages on natd make it very easy to set up.

Good luck

Robin.

----------------------------------------------------------------------
Robin Melville, Addiction Information Services
Nottingham Alcohol & Drug Team
Tel:  +44 (0)115 952 9478       Fax:  +44 (0)115 952 9421
work: robmel@nadt.org.uk        home: robmel@innotts.co.uk
Pages: http://www.innotts.co.uk/~robmel    (home page)
       http://www.innotts.co.uk/nadt       (substance misuse pages)
----------------------------------------------------------------------




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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