3G modem on debian try to share connection with lan
Right... Generally I don't like just asking stuff but just can't crack this one. I got a debian machine. My internet connection is on a 3g usb modem. It connects perfectly. Then I downloaded DHCP 3 and then configured it so I got 172.16.0.0 network address with gateway on 172.16.0.1 (set by DHCP) 172.16.0.1 is also the eth0 address and is assigned as fixed by DHCP. With the modem not connected the other PC connects no prob, gets the default gateway and get assigned an ip by DHCP and there is a proper connection with APACHE serving pages. So it is all grand. Where my prob comes in is that I am not able to get traffic from the modem through to the other PC, and at times the modem would not be used as default connection with eth0 up. Restarting the modem fix this but then also drop the assigned gateway address.They are connected directly via crossover cable. The modem is setup as ppp0 according to ifconfig and then ethernet as eth0 and I tried some masquerading allowing all traffic through but does not seem to do the trick. Anyone out there has similar problems?
Thanks in advance guys.
Last edited by ericson007; 03-21-2010 at 04:53 PM.