Solved

Linux and the Internet on the hub

Posted on 2002-06-15
10
258 Views
Last Modified: 2013-12-15
i have a win2000 computer connected to the internet and connected to a hub. When i boot win2000 on my other notebook connected to the hub internet acccess is fine. i recently installed linux mandrake 8.2 dual boot and when i boot it i don't know how to get it to know that it is connected to a LAN which has internet that is always online. The workgroup that the server is running is MSHOME. I have no idea how to get the internet on linux working. File sharing between windows and linux can wait till another day, i just need the internet going...
0
Comment
Question by:timster692001
10 Comments
 
LVL 6

Expert Comment

by:st_steve
ID: 7080285
Point the Linux machine to the Windows 2000 machine with connection to the Internet for name resolution. You just need to edit the /etc/resolv.conf file and add in the IP Address of the Windows 2000 computer.

Since you can access the Internet from the other laptop computer, I'm pretty sure you can access the Internet from Linux machine bye a simple edit of this file.

You need to add in /etc/resolv.conf:

nameserver IP_Add_of_Win2k_with_Internet
0
 

Expert Comment

by:PrakashS
ID: 7083307
you need to configure your network card first on Mandrake. I personally use Redhat, and there is a tool called netconf which is used to configure the network card. I am sure you have some tool on Mandrake to do the same.
Now when you configure the n/w card, specify the gateway for your linux box. The gateway is the system (it can be a router or a computer) through which your linux box can see the external world. As far as I understand, you must be having a router/modem which is connected to your ISP and it is also connected to your hub , also it must be having an internal IP (like 192.168.1.1 or something). Now what you need to do is , just configure your n/w card and tell the linux box that the gateway is the IP(internal)  of the router. Your linux machine will be able to browse.
To answere your second question, regarding sharing files with other computers (MS windows machines), you need to start samba server on your linux machine.
I hope this will help you.
0
 

Author Comment

by:timster692001
ID: 7128798
The comment is unsatifactory as i do not have a router. Sorry. ST_steves is closer i believe.
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 6

Expert Comment

by:st_steve
ID: 7128818
Have you tried adding that line to /etc/resolv.conf then? If you're using KDE, and you use KPPPD, when it connects to the Internet, it will add an extra entry to that file (grabbed from ISP).

Make sure you got the default routes set up correctly too. You can print the route table using "route" command.

Sometimes I need to issue these two commands:

route del default
route add default gw IP_Add_from_My_ISP_given_ to_My_Computer

Hope this helps?
0
 
LVL 6

Expert Comment

by:st_steve
ID: 7128841
Oops! I was thinking you dial up to the Net from Linux. Route add command should be:

route add default gw IP_Add_of_Win2k_with_Internet
0
 

Author Comment

by:timster692001
ID: 7139750
Hello all again, if you are reading, i have come up with the solution myself. The thing is that you are probably all right, however there are easier ways to do things. I used the Internet Connection Wizard in mandrake 8.2 and used a 3com net driver for my ethernet card. Then i used 'host' as the hostname and an ip of '192.168.0.1' as the server. I set it to get an IP with DHCP on boot and restarted Mandrake, thus connected to the internet when i loaded Mozilla. Things are simple, i just wanted a simple answer, i don't want to edit config files, i don't want to recompile my Kernel. Thank you anyway...
0
 
LVL 6

Expert Comment

by:st_steve
ID: 7139764
I didn't realise there was such a thing as "Internet Connection Wizard" in Mandrake Linux! Oh well, you learn something new everyday, I guess. :)

Contact the moderators of this site, and they should be able to refund your points.
0
 

Expert Comment

by:CleanupPing
ID: 9086609
timster692001:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 9906189

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Transfer to PAQ, and refund points as questioner came to solution by himself

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

pjedmond
EE Cleanup Volunteer
0
 
LVL 1

Accepted Solution

by:
GhostMod earned 0 total points
ID: 9953917
PAQed, with points refunded (50)

GhostMod
Community Support Moderator
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
android secure ftp 3 72
awk file 6 99
RHEL installation problems on HP Proliant DL 360 G6 server 20 128
Windows 10 linux VM 16 33
Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Fine Tune your automatic Updates for Ubuntu / Debian
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question