[thelist] OT? IP masquerading with dynamic IP help?

dan donaldson dan at omnivore.ca
Sun Mar 3 14:45:00 CST 2002


On Sunday, March 3, 2002, at 03:23  PM, Colin Mitchell wrote:

> I've run this configuration many times now without much problem.  The
> only
> thing that should be different from a static IP setup is that you'll
> want to
> grab your new IP address with DHCP.  At that point, you'll be able to
> hit
> the net from the linux box, an the config for the internal network
> shouldn't
> need to be changed at all.
>
> If you need more than that, let me know and I'll see if I can get you
> something more specific.
>

Colin:

thanks for the reply. What I don't know how to do is grab the IP from
DHCP. I did in fact do most of the original setup from the shell, but as
I look at the configuration in LinuxConf, the mapping of the second
interface to the gateway looks like its a simple correspondence -
something like 192.168.0.1 -> nnn.nnn.nnn.nnn. where the second IP is
the old static address.

Any guidance on how that second IP can be dynamically looked up from
DHCP? Is this a bit of shell magic or can it be done in LinuxConf...?
(BTW, the Linux box is not currently connected to anything - I'm doing
this on my OS X box which is directly connected using PPPoE. The plan is
to get it running with a hub on the second interface...)

dan




More information about the thelist mailing list