LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Internet connections on LAN (https://www.linuxquestions.org/questions/linux-networking-3/internet-connections-on-lan-45877/)

dalraidia 02-17-2003 04:58 PM

Internet connections on LAN
 
OK, I feel fairly confident that I now have the necessary iptable commands set to use my machine that connects to the internet via a dial-up modem as a gateway for internet connection sharing.

But when I enter those commands, I still cannot connect with the other two machines on the LAN. Obviously something has to be done to each of them, but not sure what. When I try to use the "internet connection wizard" from Gnome (I'm using Redhat 8.0 by the way) it merely offers me the choice of eth0 (which is already activated) or ppp0 as a connection. If I use eth0 then it sets up another entry for it. That doesn't seem right. The network itself works fine -- just not the ICS part.

Any suggestions???

Thanks,
John

andrew001 02-17-2003 05:35 PM

Can you ping the server? Can you ping the outside world?

you need to add your ISP's DNS servers into /etc/resolv.conf on each machine like this:

nameserver 4.2.2.1

where 4.2.2.1 is a DNS server

if you still can't ping the outside world, put this in /etc/rc.d/rc.local

route add default gw 192.168.0.1 dev eth0

where 192.168.0.1 is the machine with the connection to theinternet, and eth0 is the internal interface for your LAN.

happy hunting!

~andrew


All times are GMT -5. The time now is 08:40 PM.