Solved

Linux and the Internet on the hub

Posted on 2002-06-15
10
252 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
 
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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now