LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 12-16-2003, 05:08 PM   #1
mark_booze
LQ Newbie
 
Registered: Dec 2003
Posts: 19

Rep: Reputation: 0
Internet connection sharing


Please be gentle with me.

I use W2K on 2 networked PCs and share the (painfully slow) internet connection on one of them.
I have recently installed Mandrake 9.0 and dual boot on the laptop to aid the transition to GNULinux.
I want to use the internet connection on the W2K machine, but cannot get it to work. I (eventually) changed the IP address and subnet mask to be consistent with the W2K box, but think I might need to edit the gateway to represent the W2K host. I cannot see the gateway details under ifconfig and the Mandrake Control Centre does not seem to play ball.

Is there a text file I can look at/edit if the gateway is the culprit?
Am I on the right track?
Any other thoughts?

Many thanks in advance.


Mark
 
Old 12-16-2003, 07:01 PM   #2
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 167Reputation: 167
are you running ics from windows? how do you connect? what is your configuration..i.e. router, hub, switch, etc. a few more specs would help. also the gateway would be seen from

route -n

post your specs as stated above and the output of ifconfig, as well as, route -n.

we'll see if we can get you fixed up.

Last edited by Peacedog; 12-16-2003 at 07:42 PM.
 
Old 12-16-2003, 07:03 PM   #3
miaviator278
Member
 
Registered: Dec 2003
Location: Al-Diwania, Iraq (deployed)
Distribution: Slackware ONLY
Posts: 237

Rep: Reputation: 30
untill some one using mandrake is more specific.

read up on pages about the subject,
man hosts.conf
man hosts.allow
man inetd
man route
man ipconfig

.............
 
Old 12-17-2003, 03:55 AM   #4
mark_booze
LQ Newbie
 
Registered: Dec 2003
Posts: 19

Original Poster
Rep: Reputation: 0
My set up is:

W2K is installed on both PCs. One is connected to the internet via a 56k dial-up modem and has Microsoft ICS enabled to act as the sharing host. It has a fixed IP address allocated by Uncle Bill and dishes out an address to the other PC, which is configured to obtain an IP address automatically. The 2 PCs are connected via a Linksys switch that has some other stuff connected also: the kids' PC, another switch serving some Rio music players.
As mentioned, this set-up works fine with both PCs running W2K.

ifconfig

eth0
Link Encap:Ethernet HWaddrxx:xx:xx:xx:xx:xx
inet addr 192.168.***.2 Bcast:192.168.***.255 Mask:255.255.255.000
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric :1
RX packets:46 errors:0 dropped:0 overruns:0 frame:0
TX packets:22 errors:0 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:100
RX bytes:7162 (6.9 Kb) Tx bytes:1320 (1.2 Kb)
Interrupt :11 Base address:0X4000

route -n

Destination
192.168.***.0

Gateway
0.0.0.0

Genmask

255.255.255.0

And I had to type all that since I cannot currently seem to write to W2K directories from Linux. Grr

Many thanks in advance. I am determined to make this work so will work hard at it and try not to frustrate you all with my incompetence

Last edited by mark_booze; 12-17-2003 at 04:06 AM.
 
Old 12-17-2003, 04:21 AM   #5
dingding66
Member
 
Registered: Jan 2003
Location: Utah, USA
Distribution: Mandrake 9.2
Posts: 51

Rep: Reputation: 15
I'm still a bit confused... Which is the dual boot machine? the one connected to the internet with the modem or the one one the subnet?
 
Old 12-17-2003, 05:58 AM   #6
mark_booze
LQ Newbie
 
Registered: Dec 2003
Posts: 19

Original Poster
Rep: Reputation: 0
Sorry for the confusion.
The single boot W2K PC is connected to the internet and is configured for Windows ICS. The other PC is the dual boot one that connects to the internet when booted into Windows. When booted into Linux is where I start to struggle. The Mandrake Control Center plays up when I try to configure the network (currently I have to set the IP address using ifconfig and itneeds resetting each time I boot) and it seems to want to connect to the internet using a modem.

Many thanks
 
Old 12-17-2003, 06:55 AM   #7
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 167Reputation: 167
set the mandrake machine to a static ip. and set the gateway to the ip of the box that connects.
here's a link to a similar problem that may help.

http://www.linuxquestions.org/questi...threadid=98790

Quote:
And I had to type all that since I cannot currently seem to write to W2K directories from Linux. Grr
i'm guessing it's formatted ntfs. if that's the case, then you can't write to it from linux. there are some experimental things out, which, honestly i've not read much on.
 
Old 12-17-2003, 07:07 AM   #8
mark_booze
LQ Newbie
 
Registered: Dec 2003
Posts: 19

Original Poster
Rep: Reputation: 0
Thank you Peacedog. I will give that a try.

My W2K OS is indeed NTFS formatted.

Double Grrrrr.
 
Old 12-17-2003, 09:16 AM   #9
mark_booze
LQ Newbie
 
Registered: Dec 2003
Posts: 19

Original Poster
Rep: Reputation: 0
Small progress. I entered "route -v add default gw 192.168.0.1" in the command line. The output to route -n is now:

eth0
Destination 192.168.0.0; Gateway 0.0.0.0; Genmask 255.255.255.0

l0
Destination 127.0.0.0; Gateway0.0.0.0; Genmask 255.0.0.0

eth0
Destination 0.0.0.0;Gateway 192.168.0.1; Genmask 0.0.0.0

The output from ifconfig is the same as before. i.e. eth0 is 192.168.0.2 subnet mask 255.255.255.0.

I think (!) I have now set the default gateway as 192.168.0.1, which is the same as the IP address of the PC acting as the ICS host under Windows.

However, I still this message when keying google.com into Konqueror:
"An error occurred while loading http://google.com:

Unknown host google.com"

I am clearly fumbling a bit, but would relish any further ideas. Indeed, when I change the IP address of the Linux PC (using "ifconfig -v eth0 inet 192.168.0.2") it reverts back to a previously set value on a restart. Grrr. How can I make the change permanent?

Many thanks to all responders

Mark

Last edited by mark_booze; 12-17-2003 at 09:17 AM.
 
Old 12-17-2003, 11:35 AM   #10
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 167Reputation: 167
are you running a firewall?
 
Old 12-17-2003, 11:42 AM   #11
mark_booze
LQ Newbie
 
Registered: Dec 2003
Posts: 19

Original Poster
Rep: Reputation: 0
Not on the Windows PC that is hosting the ICS. Sounds dumb, but I cannot for the life of me get ZoneAlarm to work with ICS under Windows so I have temporarily removed it from the host.

I will also remove it from the client and try that.

Thanks

Mark
 
Old 12-17-2003, 11:48 AM   #12
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 167Reputation: 167
zone alarm has no provision for ics and full steath mode unless your using the pro version. if it is not the pro version you have to change your internet zone to medium. which will not provide "stealth".
 
Old 12-17-2003, 11:52 AM   #13
mark_booze
LQ Newbie
 
Registered: Dec 2003
Posts: 19

Original Poster
Rep: Reputation: 0
Yes, I read that in the ZoneAlarm forums. However I am using the freebie trial of Pro at the moment. Anyway, I will remove ZoneAlarm from both PCs (no hacking in please!) and test it again. I am currently ploughing through the Linux Tutorial pages in an effort to become a little more informed and sound less hopeless.

Thanks
 
Old 12-18-2003, 02:24 AM   #14
miaviator278
Member
 
Registered: Dec 2003
Location: Al-Diwania, Iraq (deployed)
Distribution: Slackware ONLY
Posts: 237

Rep: Reputation: 30
instead of testing the connection with a browser try using an eterm or an exterm to ping 1) your self, 127.0.0.1 2) the gateway 3) an external site by ip..

man init
would eventually lead you to the start up scripts in rc.d and there you could setup your ifconfig automatically, but someone should know an esier way, i can't remember it at the moment...
 
Old 12-18-2003, 04:06 AM   #15
mark_booze
LQ Newbie
 
Registered: Dec 2003
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks miaviator278.

I will give it a try and post the results.

Thanks again to all for the help

M
 
  


Reply


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
Internet connection sharing fdawy Linux - Networking 22 10-06-2005 09:23 AM
sharing my internet connection berrance Linux - Networking 1 02-25-2005 11:33 AM
SHaring internet connection bart59 Linux - Networking 1 01-27-2005 07:24 AM
Internet Connection Sharing geekbyday Linux - Networking 9 11-19-2004 10:59 PM
Internet Connection Sharing Chijtska Linux - Networking 7 09-02-2002 11:50 AM


All times are GMT -5. The time now is 07:25 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration