LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-26-2004, 11:23 AM   #1
geekbyday
LQ Newbie
 
Registered: Sep 2004
Location: Nottingham, England
Distribution: OpenSuse 10.2
Posts: 21

Rep: Reputation: 15
Internet Connection Sharing


Hi,

I have Internet Connection Sharing Enabled on my Win2k Box which has a dial-up connection to the net. This is then Networked with my Slackware Box. I can Share files with, and ping the Win2k Box, but I can not ping any Internet site (address) or IP Address. In a browser it attempts to connect (Message resolving www.....) then errors can not find www..... , if I try to connect to an IP address it just times out.

Any help would be great!
 
Old 09-26-2004, 11:40 AM   #2
lacerto
Member
 
Registered: Oct 2003
Location: South London
Distribution: Gentoo.
Posts: 297

Rep: Reputation: 30
Apologies in advance if I'm pointing out the obvious, but have you set up the default gateway, DNS and ip address on your Mandy box?
 
Old 09-26-2004, 11:09 PM   #3
alexcd
LQ Newbie
 
Registered: Sep 2004
Location: PANAMA
Distribution: Red Hat
Posts: 3

Rep: Reputation: 0
Linux & Windows 98 SE Internet Sharing

Hi

I have 2 PC's connected with a switch. The one is a machine running windows 98 SE. This machine is connected to Internet with a USB ADSL.

Another machine is Linux red hat 6.2. I can do ping from windows to linux and vice versa.

I can see the windows machine from linux using samba.

However I am not able to connect to Internet. I have installed Internet Connection Sharing windows 98 but Linux can not access to Internet via Lan.

Do you suggest something for me?

Alex
 
Old 09-27-2004, 12:21 AM   #4
Tap-Out
Member
 
Registered: Oct 2002
Location: Halifax, NS
Distribution: Ubuntu, Mepis, Debian
Posts: 130

Rep: Reputation: 15
Re: Linux & Windows 98 SE Internet Sharing

Quote:
Originally posted by alexcd
Hi

I have 2 PC's connected with a switch. The one is a machine running windows 98 SE. This machine is connected to Internet with a USB ADSL.

Another machine is Linux red hat 6.2. I can do ping from windows to linux and vice versa.

I can see the windows machine from linux using samba.

However I am not able to connect to Internet. I have installed Internet Connection Sharing windows 98 but Linux can not access to Internet via Lan.

Do you suggest something for me?

Alex
If you have installed ICS on your windows 98 computer than it would have set your internal IP address to 192.168.0.1 with a mask of 255.255.255.0. Now what you need to do is set up your RH box to use the windows 98 computer as it's default gateway and use your ISP's DNS servers.

On the windows computer, click on the start button, then on run and type in "winipcfg". Then click on the "expand all" and look for your DNS server addresses. Write them down on a piece of scrap paper or something.

Then on your RedHat box go into your network configuration utility of choice. Since you can already see and ping your windows box the IP information is correct so that's the major part of the battle done right there. Set your "Default Gateway" to " 192.168.0.1 " (your windows box), and then put in your ISP's DNS servers for your RH box to use. Once that is all done you should be able to browse and do everything on your RH box.

If you have anymore problems please feel free to post back.

Cheers

Tap
 
Old 09-27-2004, 08:25 PM   #5
alexcd
LQ Newbie
 
Registered: Sep 2004
Location: PANAMA
Distribution: Red Hat
Posts: 3

Rep: Reputation: 0
Hi Tap...

Thanks a lot...

I have followed your steps.

In my RH machine, I have typed # linuxconf and I changed in Name Server Specification (DNS).

I have changed the Gateway, setting it in base to Windows 98 IP.

Finally this is my small LAN:

1 - Windows 98 - IP: 192.168.168.1 / NetMask: 255.255.255.0

2 - Linux Red Hat - Ip: 192.168.168.168 / NetMask: 255.255.255.0
Gateway: 192.168.168.1 -> This is the IP address of Windows 98.
Name Servers: 201.225.225.225

But when I restart the RH machine for save the new configuration, it is to late Booting and waiting for "STARTING SYSTEM LOGGER" and "STARTING SENDMAIL".

The network settings has changed, but in the /etc/sysconfig/network-scripts/ifcfg-eth0 file, several values are between quotations. For example, before the changes, we have the ifcfg-eth0 file like that:

************************
DEVICE=eth0
IPADDR=192.168.1687.2
GATEWAY=192.168.168.1
NETMASK=255.255.255.0
BROADCAST=192.168.168.255
ONBOOT=yes
NAME=seidi
BOOTPROTO=none
************************

But now values have changed to:

************************
DEVICE="eth0"
IPADDR="192.168.1687.2"
GATEWAY=192.168.168.1
NETMASK="255.255.255.0"
BROADCAST=192.168.168.255
ONBOOT="yes"
NAME=seidi
BOOTPROTO="none"
IPXNETNUM_802_2=""
IPXPRIMARY_802_2="no"
IPXACTIVE_802_2="no"
IPXNETNUM_802_3=""
IPXPRIMARY_802_3="no"
IPXACTIVE_802_3="no"
IPXNETNUM_ETHERII=""
IPXPRIMARY_ETHERII="no"
IPXACTIVE_ETHERII="no"
IPXNETNUM_SNAP=""
IPXPRIMARY_SNAP="no"
IPXACTIVE_SNAP="no"
************************

The same case has been occurs with the file /etc/sysconfig/network

Before changes:

************************
NETWORKING=yes
HOSTNAME=seidi
GATEWAY=192.168.168.1
GATEWAYDEV=""
************************

After restart it is:

************************
NETWORKING="yes"
HOSTNAME="seidi"
GATEWAY="192.168.168.1"
GATEWAYDEV="eth0"
FORDWARD_IPV4="yes"
************************

The file /etc/resolv.conf is: nameserver 201.225.225.225

With that changes, I still can see windows 98 SE machine using samba and pinging both machines, But I am not able to access Interbet yet.

Could you suggest something to do?

Alex
 
Old 09-29-2004, 05:33 PM   #6
geekbyday
LQ Newbie
 
Registered: Sep 2004
Location: Nottingham, England
Distribution: OpenSuse 10.2
Posts: 21

Original Poster
Rep: Reputation: 15
Hi,

The LAN NIC IP Address of the Windows Dial Up Machine is set to 192.168.0.1 .
This then has the Modem IP address of 81.174.207.245 Gateway 81.174.207.245 Primary DNS 212.159.6.9 Secondary DNS 212.159.13.49

The Linux box has the Static IP address 192.168.0.101 Gateway of 192.168.0.1 and Nameserver of 212.159.6.9 .

The Nameserver appears in the /etc/Resolv.conf file.
 
Old 09-29-2004, 06:07 PM   #7
Tap-Out
Member
 
Registered: Oct 2002
Location: Halifax, NS
Distribution: Ubuntu, Mepis, Debian
Posts: 130

Rep: Reputation: 15
Hey mate, sorry it took so long for me to respond the first time, work has kept me busy these last few days.

I would put the second DNS server into your /etc/resolv.conf file, because the more DNS servers the merrier I say.

Also on your windows box, run the winipcfg utility, click on the "expand all" button. Now near the top you should see a box that says IP forwarding or Router or something like that and if all is set up correctly it should have a check mark in there. If not you may need to re-run the ICS util in windows.

Aside from that if it still dosn't work post back what error message(s) appear and we'll again try to help as best we can.

Cheers

Tap
 
Old 09-30-2004, 11:24 AM   #8
geekbyday
LQ Newbie
 
Registered: Sep 2004
Location: Nottingham, England
Distribution: OpenSuse 10.2
Posts: 21

Original Poster
Rep: Reputation: 15
Hi,

Thanks for that,

Can't find winipcfg on Win2k so did ipconfig /all instead, results below;

Windows 2000 IP Configuration

Host Name . . . . . . . . . . . . : winhost
Primary DNS Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Broadcast
IP Routing Enabled. . . . . . . . : Yes
WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek RTL8139(A)-based PCI Fast Et
hernet Adapter
Physical Address. . . . . . . . . : 00-30-BD-1B-8A-E3
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.0.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
DNS Servers . . . . . . . . . . . :

PPP adapter Free F9:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
Physical Address. . . . . . . . . : 00-53-45-00-00-00
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 81.174.202.203
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 81.174.202.203
DNS Servers . . . . . . . . . . . : 212.159.6.9
212.159.13.49
NetBIOS over Tcpip. . . . . . . . : Disabled

It says IP Routing is enabled, which I guess is what you were looking for. I agree on the Nameserver in Resolv.Conf just on thing what is the syntax for multiple nameservers?
Is it
nameserver 123.123.123.123
nameserver 231.231.231.231
or
nameserver 123.123.123.123, 231.231.231.231

Any help would be good.
 
Old 09-30-2004, 11:26 AM   #9
geekbyday
LQ Newbie
 
Registered: Sep 2004
Location: Nottingham, England
Distribution: OpenSuse 10.2
Posts: 21

Original Poster
Rep: Reputation: 15
Sorry forgot to Mention the errors.

on pingging an IP it just drops all the packets. On trying an address or IP in Mozilla it just time's out.
 
Old 11-19-2004, 10:59 PM   #10
alexcd
LQ Newbie
 
Registered: Sep 2004
Location: PANAMA
Distribution: Red Hat
Posts: 3

Rep: Reputation: 0
Windows 98 sharing Internet to Linux

Hi Tap-Out

Thanks a lot for your help. Finally I got access Internet from my red hat 6.2. My error was windows Internet sharing services was not setting ok.

I installed wingate (demo of 30 days) and I can saw how it was setting windows for share Internet. Finally I uninstall wingate (because I was in 23 days demo) and I tried Windows ICS and finally, I set up Linux red hat 6.2 in DHCP and now it is working.

However, there is a very old Netscape version. I would like to install firefox from Mozilla, did you know some special version for my redhat 6.2.

Actually I am downloading Fedora core. I will try if that version could to run in my old PC.

Best regards...

Alex
 
  


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 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 11:07 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