Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-05-2001, 04:44 PM
|
#1
|
LQ Newbie
Registered: Jun 2001
Location: Madison, WI
Distribution: Red Hat 7.1
Posts: 19
Rep:
|
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?
|
|
|
07-05-2001, 05:06 PM
|
#2
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
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...
|
|
|
07-06-2001, 10:02 AM
|
#3
|
Member
Registered: Dec 2000
Location: Indiana
Distribution: Red Hat 7.3/Mandrake 8.2/9.0
Posts: 154
Rep:
|
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..
|
|
|
07-12-2001, 04:36 PM
|
#4
|
LQ Newbie
Registered: Jun 2001
Location: Madison, WI
Distribution: Red Hat 7.1
Posts: 19
Original Poster
Rep:
|
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 04:59 PM.
|
|
|
07-12-2001, 04:58 PM
|
#5
|
LQ Newbie
Registered: Jun 2001
Location: Madison, WI
Distribution: Red Hat 7.1
Posts: 19
Original Poster
Rep:
|
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...
|
|
|
07-13-2001, 01:59 PM
|
#6
|
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:
|
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
|
|
|
07-13-2001, 02:30 PM
|
#7
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
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...
|
|
|
07-15-2001, 01:44 PM
|
#8
|
LQ Newbie
Registered: Jun 2001
Location: Madison, WI
Distribution: Red Hat 7.1
Posts: 19
Original Poster
Rep:
|
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 01:54 PM.
|
|
|
07-15-2001, 07:44 PM
|
#9
|
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:
|
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
|
|
|
07-15-2001, 08:22 PM
|
#10
|
LQ Newbie
Registered: Jun 2001
Location: Madison, WI
Distribution: Red Hat 7.1
Posts: 19
Original Poster
Rep:
|
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.
|
|
|
07-15-2001, 10:01 PM
|
#11
|
Member
Registered: Mar 2001
Location: Under a Rock
Distribution: Slackware 8.0 with KDE 3.0
Posts: 47
Rep:
|
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!
|
|
|
07-15-2001, 11:56 PM
|
#12
|
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:
|
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
|
|
|
07-17-2001, 02:57 PM
|
#13
|
LQ Newbie
Registered: Jun 2001
Location: Madison, WI
Distribution: Red Hat 7.1
Posts: 19
Original Poster
Rep:
|
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
|
|
|
07-17-2001, 03:52 PM
|
#14
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
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...
|
|
|
07-22-2001, 12:50 AM
|
#15
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 07:29 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|