Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-16-2004, 10:37 AM   #1
LQ Newbie
Registered: Sep 2004
Posts: 3

Rep: Reputation: 0
Internet through LAN

Hi everyone

I have installed Mandrake10 on 5 computers, one of them has a modem and connects to internet directly, i cant get others (clients) on Internet. The machine that goes on internet has static IP, the others have IP and so on...and they have for GateWay but cant access the Internet.
I am novice at Linux with XP worked just fine i didn't had to do much. But now don't know what to configure or how???????

Please help!!
Old 09-16-2004, 10:50 AM   #2
Registered: Feb 2004
Location: Switzerland
Distribution: Debian
Posts: 66

Rep: Reputation: 15
I don't know much about mandrake, but the command I use on the clients is:

# route add default gw
that's it, it should work without anything else.
Old 09-17-2004, 10:39 AM   #3
LQ Newbie
Registered: Sep 2004
Posts: 3

Original Poster
Rep: Reputation: 0
doesn't work

thanks, but still doesn't work
what should be written at resolv.conf?
Old 09-17-2004, 11:02 AM   #4
Registered: Jun 2004
Location: Lawrence, KS
Distribution: Slackware
Posts: 307

Rep: Reputation: 39

hello bajte

You are right. You need the Primary DNS address of your ISP listed in the /etc/resolv.conf

a entry in resolv.conf like the following will work


You need that in all the units attached to your internet server.

I suggest that you also make your internet server an IP masquarade unit that also has ipchains or iptables running to help with security.

Good Luck
Old 09-17-2004, 11:03 AM   #5
Registered: Feb 2004
Location: Switzerland
Distribution: Debian
Posts: 66

Rep: Reputation: 15
hehe... to my knowledge, resolv.conf has to do with DNSs...

before trying anything else, check what you can and cannot do:

- can you ping other computers on the LAN?
   if yes, your IP is set right
- can you ping your router's IP?
   if yes, that's a good start
- can you ping an IP on the WAN (internet)? eg. your internet provider's nameserver
   if yes, your gateway is set right
- can you ping a website using the domain name?
   if yes, your DNS is set right
- can you access a website?
   if no, then probably a port is blocked s-where.

sorry if that's a little basic way of doing and explaining things, but you have to see "until where" you can go on the network.

I can't really help you with manually configuring your box, cuz I've always preferred to set up a DHCP server that does it all

once you've identified your problem, check for tutorials on the net.

c ya
Old 09-17-2004, 11:18 AM   #6
Senior Member
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
Mandrake 10 has a gui tool for this in the control panel. It allows to to share the connection and it's pretty easy. You can set up the firewall as well...

I have done it here temporarily at times, but a better solution for me was to get an old pentium 166 or whatever and set it up with smoothwall. It dials, routes, dhcp, ids, web proxy, etc... and it runs non stop and allows all the other boxes to reboot, dual boot, whatever without disturbing the connection. And all the PC's can control the smoothie box through a web interface.

It's cool... but as I say, you can use mandrake on the main box too. The gui tool should be easy enough for you to use without too much hassle.
Old 09-23-2004, 08:06 AM   #7
LQ Newbie
Registered: Sep 2004
Posts: 3

Original Poster
Rep: Reputation: 0

Thanks a lot to all of you, everything is OK now.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 02:14 PM
LAN with no internet tekmorph Linux - Networking 14 03-19-2005 06:53 AM
Internet Via Lan K_smolka Red Hat 3 03-10-2004 09:42 AM
Internet with LAN? a17driverguy Linux - Networking 6 04-08-2003 03:45 PM
lan internet bdhamilton Linux - Newbie 3 04-05-2002 04:38 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:41 PM.

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