LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 07-05-2001, 03:44 PM   #1
Danobri
LQ Newbie
 
Registered: Jun 2001
Location: Madison, WI
Distribution: Red Hat 7.1
Posts: 19

Rep: Reputation: 0
Question internet connection sharing


I'm running Red Hat 7.1, and after failing to successfully configure a couple different NICs, I went and bought a 3Com, and have managed to get that working. I originally configured it to use DHCP, but it had trouble determining an IP address. So I manually set the IP address, and that seemed to work.

Here's my question:
I currently have a Win 98 box that has been setup for internet connection sharing (with a WIn95 computer), and I want to share the modem also with the Linux box. I set the eth0 IP address so that it was one digit higher than the Win95 box, and set the gateway and netmask (in the routing tab in netcfg) to be the same as the Win 95 configuration.

I also have done some basic editing of the smb.conf file. I wrote in the correct workgroup name, and made sure password encryption was set to yes (as I understand that is necessary with Win98).

However, when I open up a browser, it can not connect to the internet. Does anyone know what I am doing wrong?
 
Old 07-05-2001, 04:06 PM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
AFAIK the Windows 98 sharing sets up a dodgy proxy kind of arrangement that requires your operating system to understand how to use it, but I've never seen any mention of people getting this to run on Linux.

If your modem is a hardware effort (not a WinModem) the you could always move the modem to your linux box and share the internet connection using linux - that way it doesn't matter what operating system you are using on the other machines, it'll still work. If you do decide to do this have a surf to http://www.linuxdoc.org and read some of the howtos on IP Masquerading, its pretty straight forward to setup. Also have a search of the forum for ipchains, iptables, IP Masquerading and NAT

HTH

Jamie...
 
Old 07-06-2001, 09:02 AM   #3
ascii2k
Member
 
Registered: Dec 2000
Location: Indiana
Distribution: Red Hat 7.3/Mandrake 8.2/9.0
Posts: 154

Rep: Reputation: 30
Just a couple questions:

Did you reboot(all machines)?

Did you (try to) ping the Win98 machine?

Did you (try to) ping the Win95 machine?

Try the pings from both directions:
Linux -> Win
Win -> Linux


Was the 98 machine connected (to internet) when you tried to use the browser on Linux?


I know these may seem like silly questions, but you have to start with the simple stuff when trying to fix a problem like this. BTW, I am pretty sure this can be done it just a matter of getting everything exactly right..
 
Old 07-12-2001, 03:36 PM   #4
Danobri
LQ Newbie
 
Registered: Jun 2001
Location: Madison, WI
Distribution: Red Hat 7.1
Posts: 19

Original Poster
Rep: Reputation: 0
Question more on modem sharing

Thanks for the replies, I have not had a chance to work on the problem for a week or so due to a hardware failure. I got that all taken care of, and am back at the modem sharing problem.

ascii2k-- if you think sharing a modem with a Windows machine is possible, I am going to stick with this approach. If I ultimately can't get it working, I'll try installing the modem on the Linux box, as jharris suggested.

So here's where I'm at, please let me know if you have any other ideas:

I AM able to successfully ping all machines in all directions:

Win98-> linux
linux -> Win98
Win95 -> linux
linux -> Win95

I also have restarted all computers.

But when I open a browser on the linux machine (while the Win98 box is connected to the internet), and type in a URL, I get a message saying that netscape is unable to located the server. The first time I make the attempt I also get a second message saying:

The following hosts are unknown:

home.netscape.com
home6.netscape.com
internic.net

This means that some or all hosts will be unreachable.

Perhaps there is a problem with your name server?......

And it goes on to prompt me to consult my 'system administrator'.
Wouldn't that be nice?

Any other suggestions you can offer would be greatly appreciated.

Thanks.

Last edited by Danobri; 07-12-2001 at 03:59 PM.
 
Old 07-12-2001, 03:58 PM   #5
Danobri
LQ Newbie
 
Registered: Jun 2001
Location: Madison, WI
Distribution: Red Hat 7.1
Posts: 19

Original Poster
Rep: Reputation: 0
Smile Ignore the last posting!

Just after writing my last note, I tried setting the eth0 back to DHCP (which did not work originally), and for some reason when I rebooted, the eth0 interface loaded without a problem, and I was able to open a browser and surf the web!!!!!

Thanks so much for the help. Now that I've got the modem sharing working, I just need to figure out how to configure samba to do file and print sharing...
 
Old 07-13-2001, 12:59 PM   #6
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
Glad to see your problem is corrected. Just out of curiosity... did you ever put in the same DNS servers for you Linux box that your Win9x box is using? Those are required to resolve the hostnames that it was telling you it couldn't find.

KevinJ
 
Old 07-13-2001, 01:30 PM   #7
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
It sounds like he got a DHCP lease from the Win box, in which case it would have (should have/must have!) included the DNS details.

cheers

Jamie...
 
Old 07-15-2001, 12:44 PM   #8
Danobri
LQ Newbie
 
Registered: Jun 2001
Location: Madison, WI
Distribution: Red Hat 7.1
Posts: 19

Original Poster
Rep: Reputation: 0
DNS servers

KevinJ--

I never tried puting in the same DNS server as the Win 98 box, because I don't know how to do it. That's not something you can do in the netcfg tool is it? How do you set the DNS server address in linux??

As jharris suggested, the DNS server must have gotten set automatically.

Thanks.

Last edited by Danobri; 07-15-2001 at 12:54 PM.
 
Old 07-15-2001, 06:44 PM   #9
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
I use the 'netconfig' utility usually, and it has a space for primary nameserver. BUT.. all you really need to do is enter the DNS ip addresses into /etc/resolv.conf

Mine looks like this:


[root@CY615927-A /root]# cat /etc/resolv.conf
search
nameserver 24.5.68.33
nameserver 24.5.68.34
[root@CY615927-A /root]#


KevinJ
 
Old 07-15-2001, 07:22 PM   #10
Danobri
LQ Newbie
 
Registered: Jun 2001
Location: Madison, WI
Distribution: Red Hat 7.1
Posts: 19

Original Poster
Rep: Reputation: 0
netconfig

Kevin,

If you are refering to the same netconfig tool that I am using, there are four tabs -- Names, Hosts, Interfaces, and Routing. I am new to linux, and fairly new to networking -- Which one of these will allow me to set the DNS server? Is it the "Nameservers:" box in the Names tab?? That window has been automatically configured with the IP address of my Win98 box.

Also, I just tried looking at the resolv.conf file, and I find that it reads:

search local domain
nameserver 192.168.0.1 (which is the IP address of my Win 98 box)

So apparently the nameserver for the linux box is simply the IP address of the machine that is sharing the modem.

Thanks for the info.
 
Old 07-15-2001, 09:01 PM   #11
Infamous Tim
Member
 
Registered: Mar 2001
Location: Under a Rock
Distribution: Slackware 8.0 with KDE 3.0
Posts: 47

Rep: Reputation: 15
Quote:
Originally posted by jharris
AFAIK the Windows 98 sharing sets up a dodgy proxy kind of arrangement that requires your operating system to understand how to use it, but I've never seen any mention of people getting this to run on Linux.
I'm using a Win98 box for my NAT server, and my linux machine sets up just fine. There's nothing dodgy about it as I can figure. I set my IP myself, and I also pointed the DNS and the gateway at the NAT server (192.168.0.1), and it passes through the DNS requests just fine, no problems. I run everything with absolutely no problems.
I'm not making a case for Windows at all, I've been using this set up for about a year and half now. Originally, I had a really crappy 486 connected to a dial-up modem running WinProxy, now that was crusty slow. I upgraded to Win98 SE to allow me more freedom than a proxy would give me.
I'm probably going to make this trusty little P166 in the corner of my room a linux server soon, but I'm going away to college soon and my dad doesn't understand linux at all. Oh, well, and I don't have room for it in my dorm, well, I might cram it in anyways Hope you get all of your problems fixed!
 
Old 07-15-2001, 10:56 PM   #12
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
Re: netconfig

Quote:
Originally posted by Danobri
Also, I just tried looking at the resolv.conf file, and I find that it reads:

search local domain
nameserver 192.168.0.1 (which is the IP address of my Win 98 box)


Well.. I certainly am not an expert on Win98 Internet Connection Sharing... but the idea is this: Your box needs to either point to a DNS server, or some IP device that will accept and forward DNS requests. If ICS accepts and forwards DNS requests.. then the above should work... if not, then you will need to have the IP of a DNS server in there. In any event, you can just edit /etc/resolv.conf and just add a second "nameserver" line with the IP address of your ISP's DNS server.

KevinJ
 
Old 07-17-2001, 01:57 PM   #13
Danobri
LQ Newbie
 
Registered: Jun 2001
Location: Madison, WI
Distribution: Red Hat 7.1
Posts: 19

Original Poster
Rep: Reputation: 0
Just a quick update on the modem sharing...

I am finding that although this system is working, I am having trouble downloading files consistently from the linux box. It tends to stall a lot, and sometimes causes errors in the files I download. So something with this setup seems to be slightly flawed.

Thought you might be interested for future reference. Thanks again for the help
 
Old 07-17-2001, 02:52 PM   #14
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
Quote:
Originally posted by Infamous Tim
I'm using a Win98 box for my NAT server, and my linux machine sets up just fine. <snip>

I'm not making a case for Windows at all, I've been using this set up for about a year and half now.
Thats cool to know - I always thought that they had set the connection sharing to do some freaky M$ non-standard broken proxy stuff not proper NAT... As for making a case for Windows - everything has its place, if it meets your needs then its a good enough solution... (just remember to reboot at regular intervals )

Thanks for the info

Jamie...
 
Old 07-21-2001, 11:50 PM   #15
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
Yes, it is a proxy that will work if the ip adddress is set to the same network and the default route is set to be the win server. Gets flakey results if too many clients are connected. I tried with 15 and it was very bad. Works good with 5.


I would think most people use linux for the server though. That's what it is designed to do.

This is what I use it for because I can configure port forwarding and ipmasq with it and avoid proxy server limitations, as well as being the more stable OS. I have over 20 clients connected through one system with RH 7.1 and it works great.
 
  


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
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 mark_booze Linux - Newbie 22 01-02-2004 12:37 AM
Internet Connection Sharing Chijtska Linux - Networking 7 09-02-2002 11:50 AM


All times are GMT -5. The time now is 09:52 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