[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 266
  • Last Modified:

Linux and the Internet on the hub

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
timster692001
Asked:
timster692001
1 Solution
 
st_steveCommented:
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
 
PrakashSCommented:
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
 
timster692001Author Commented:
The comment is unsatifactory as i do not have a router. Sorry. ST_steves is closer i believe.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
st_steveCommented:
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
 
st_steveCommented:
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
 
timster692001Author Commented:
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
 
st_steveCommented:
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
 
CleanupPingCommented:
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
 
pjedmondCommented:

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
 
GhostModCommented:
PAQed, with points refunded (50)

GhostMod
Community Support Moderator
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now