Michael Stearne wrote:
>
> I just got a cable modem and would like to run ipmasq or ipchains
> through the linux box for the other computers on the LAN. I have RH
> 6.1, ipchains 1.3.9. I had it set up fine before the cable modem using
> a dialup modem. I used linuxconf to change the client network
> settings. I can see the modem and work fine with it if the IP address
> is set to the assigned ip address by the provider (24.12.124.xxx), but
> no other computers on the internal net (192.168.0.2, etc). If I change
> the IP address of eth0 to 192.168.0.2, I no longer get the modem
What address was eth0 before you changed it to 192.168.0.2 ?
> connection. In ipchains (actually, the script I use to start
> ipchains), it picked up on the ppp0 when it connected (I guess), there
> is a line that says: echo "1" > /proc/sys/net/ipv4/ip_dynaddr. What is
> the equivilent of that when you have a static IP. My question is how do
> you assign 2 IP addresses to one adapter ,24.12.124.xxx and 192.168.0.2,
> so the modem sharing clients can use 192.168.0.2 as their router addr
> and the modem sharer can actually use the real IP addr, 24.12.124.xxx.
You (probably) don't assign two addresses to one interface.
The modem, probably gets 24.x.x.x
and the 'eth0' stays 192.168.x.x.
All workstations route to 'eth0'.
The ipmasq routes 192.168.x.x to 'eth0'
and the rest to the cable modem.
You, probably, only needed to change your ipmasq route
that was to 'ppp0' to the cable modem interface name.
Perhaps
http://metalab.unc.edu/mdw/HOWTO/Cable-Modem/index.html
would be of help.
HTH, Chuck
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs