To alias your ethernet interface to 2 or more ip's:
http://linuxcentral.com/LDP/HOWTO/mini/IP-Alias.html
It is best to use two ethernet interfaces, however, for security and to reduce
collisions. You probably need to edit two lines to get ip-chains or ipfwdm to
masquerade thru the ethernet and not ppp ( assuming you are already
masquerading from your lan to the internet). I have used IP-Chains, and if you
want to, reference the IP-Chains howto and the Masquerading howto. The
Masquerading howto has an example that problably would solve your problem.
"McKisson, Shawn" wrote:
> I have a gateway machine to a local ethernet network (198.162.X.X).
> In the past, this machine would dial into an ISP and route all non-local
> network traffic through the ppp interface.
>
> Well, I have changed providers, and now I obtain my ip address using DHCP
> over ethernet (through cable modem). The tool I am using to establish the
> connection (dhclient) grabs an address and assigns it as the ip address of
> the eth0 device and sets my default gateway to that of the host network.
>
> This is obviously bad because now the gateway machine does not know that it
> belongs to the 198.182.X.X network, and the other machines cannot reach it.
>
> Is there some way that I can have the gateway machine be on two networks at
> once (both the dhcp network and the local network)?
>
> Does the soln involve getting the eth0 device to think that it has 2 ip
> addresses?
>
> --shawn
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]