[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Netinstall via bridge



On 1/28/07, Douglas Allan Tutty <dtutty@porchlight.ca> wrote:

[snip]

Hi  Celejar

Let me try to draw this out and see if I've got it right:

        +--------+                +--------+               +--------+
internet | molly  |  192.168.1.0   |  lucy  | 192.168.2.0   | laptop |
        |.168.1.1|  255.255.255.0 |.168.2.1| 255.255.255.0 |.168.2.2|
        |        |                |.168.1.2|               |        |
        +--------+                +--------+               +--------+

On lucy, you set it for ip forwarding.  You install the ipmasq package
which does the masquarading out of the box.  You can also install the
dnsmasq package which does caching dns service out of the box.

On the laptop you tell it that your gateway and also your dns
server is 192.168.1.1


The diagram is mangled (perhaps Gmail's fault) but I think I get your
drift; use a different subnet for the lucy <-> laptop connection and
do NAT on lucy.

Molly will only see traffic coming from lucy because lucy will masqurade
it.

Lucy will of course need two ethernet cards unless you're using a serial
null-modem and going ppp (been there, done that, works great).

Lucy has ath0 (wireless) to molly and eth0 (wired) available for the laptop.


I've done this all the time, especially when ethernet switches were
expensive and not all my boxs had ethernet cards.  Don't let the NAT on
lucy bother you.  The ipmasq package does its job just fine with no
tweaking.  If you _want_ it can also serve dhcp but I always set up
stuff manually.

Put all three boxes into all three box's /etc/hosts file.  Test it out
with ping.

Enjoy.

Doug.

Thanks for the help. I'll either try it your way or be bullheaded and
try a bridge. The latter could be a learning experience about
bridging, and in any event it doesn't seem much more complicated than
your recommendation involving ipmasq, and perhaps even simpler.

Celejar



Reply to: