LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-17-2003, 04:58 PM   #1
dalraidia
Member
 
Registered: Dec 2002
Location: Tallahassee, Florida
Posts: 30

Rep: Reputation: 15
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
 
Old 02-17-2003, 05:35 PM   #2
andrew001
Member
 
Registered: Nov 2002
Distribution: Slackware 9.0
Posts: 321

Rep: Reputation: 30
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No Internet but LAN and VPN connect LAN work fine??? xavior SUSE / openSUSE 7 11-09-2005 01:14 PM
Very slow speed even in LAN connections Adony Linux - Networking 5 11-09-2004 06:31 PM
Two ADSL connections and LAN f1reball Linux - Networking 2 03-22-2004 09:58 AM
Two internet connections and one lan asistant Linux - Networking 1 03-07-2004 03:48 PM
two internet connections Santas Linux - Networking 4 02-06-2004 11:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration