LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-03-2006, 07:46 AM   #1
green4u
LQ Newbie
 
Registered: Dec 2004
Location: Woods
Distribution: RedHat
Posts: 19

Rep: Reputation: 0
Question Internet Connection sharing using windows to linux


Here we have got 4 machines. One Machine is directly connectd to Internet using a cable modem(DSL connection), say the server machine, havin both windows and linux installations. The server machine have 2 NIC's one is connected directly to internet via modem and the other is used to configure internal routin to other machines. Internet connection is DHCP configured using the MAC id of the server NIC. The other machines are configured using the local IP address manually(192.168.0.1 thru 0.4) 0.1 is the getway which is connectd to the internet. All machines including server have windows XP installation and linux is also installed on 3 of them including server.

Internet is configured for both Linux and Windows installation on the server. For windows its configured using ICS.
The problem is that, when the server machine is booted to windows installation, the other machines those are booted to linux are not able to access internet !!

Problem in Brief:

4 Machines.

Internet connection through DSL modem.

OS intallations: all have windows and linux excluding 1, that have only windows.

Internet configuration: when server is on windows, configured through ICS. Using proxy and iptables when server is on linux

Problem: Linux machines are not able to access internet when server is windows(ICS) and clients are on linux !!
 
Old 07-03-2006, 08:18 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
You need to check the box "share this internet connexion" in connection setting or something like that, depending on the windows version.
 
Old 07-03-2006, 08:41 AM   #3
green4u
LQ Newbie
 
Registered: Dec 2004
Location: Woods
Distribution: RedHat
Posts: 19

Original Poster
Rep: Reputation: 0
but seems working only for windows
 
Old 07-03-2006, 08:44 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Are the linux PCs configured to use DHCP?
 
Old 07-03-2006, 09:11 AM   #5
green4u
LQ Newbie
 
Registered: Dec 2004
Location: Woods
Distribution: RedHat
Posts: 19

Original Poster
Rep: Reputation: 0
No. They are configured for static IP starts from 192.168.0.1 thru 0.4
 
Old 07-03-2006, 10:51 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Since you are using a static IP address for the clients you will need to update the gateway and the nameserver addresses on the linux PCs.
 
Old 07-03-2006, 09:14 PM   #7
green4u
LQ Newbie
 
Registered: Dec 2004
Location: Woods
Distribution: RedHat
Posts: 19

Original Poster
Rep: Reputation: 0
Gateway and DNS address are always constant, so no need to update it manually everytime. The server machine has 2 nic. one for internal routing and the other for connecting the DSL modem
 
Old 07-03-2006, 09:21 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Check the /etc/resolv.conf file of the linux clients. Does it contain any nameserver information like
nameserver xxx.xxx.xxx.xxx

Does the output of the route command show 192.168.0.1 as the gateway?

Last edited by michaelk; 07-03-2006 at 09:38 PM.
 
Old 07-03-2006, 09:36 PM   #9
green4u
LQ Newbie
 
Registered: Dec 2004
Location: Woods
Distribution: RedHat
Posts: 19

Original Poster
Rep: Reputation: 0
Yeah, resolv.conf file contains the DNS nameserver address, ie the orginal DNS servers in the ISP.
And the route command didn't show the gateway address, simply a * in the place of gw
 
Old 07-03-2006, 09:44 PM   #10
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Describe the machine that is connected to the internet. Is it running windows or linux. The easiest way would be to get a Cable/DSL NAT router. Otherwise, I believe that you want the LAN nics on a different subnet from the WAN nic on the DSL connected machine.
 
Old 07-03-2006, 09:55 PM   #11
green4u
LQ Newbie
 
Registered: Dec 2004
Location: Woods
Distribution: RedHat
Posts: 19

Original Poster
Rep: Reputation: 0
Inernet Connected machine has 2 NIC and both windows and linux installed. one NIC is used to connect to internal network and the other is connected to DSL cable modem.
The problem is only when the server machine is booted to windows and using ICS to share internet.
 
Old 07-04-2006, 05:11 AM   #12
teluguswan
Member
 
Registered: Oct 2005
Posts: 116

Rep: Reputation: 15
One Easy Proxy Server which i can suggest u is the small proxy i.e

ANALOGX Proxy.

This is very small and easy to install and almost all no configuration it requires.


so Just check this and leave the problems

give the feedback
 
Old 07-04-2006, 08:35 AM   #13
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
Are you able to ping the server from the linux machines?
Are you able to ping linuxquestions.org by its ip address (64.179.4.146)?
 
Old 07-04-2006, 11:06 AM   #14
green4u
LQ Newbie
 
Registered: Dec 2004
Location: Woods
Distribution: RedHat
Posts: 19

Original Poster
Rep: Reputation: 0
i 'm able to ping the server, but not outside. like google or linuxquestions using ther ip or dns name
 
Old 07-04-2006, 12:13 PM   #15
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
what is the output of route?
 
  


Reply



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 an internet connection between Windows and Linux. Aiyuki Linux - Newbie 4 03-24-2006 06:03 AM
Internet Connection Sharing from Windows XP to Linux Patchy Linux - Networking 2 09-21-2005 03:02 PM
windows to linux internet connection sharing slow Acetylcholine Linux - Networking 0 05-26-2005 12:58 AM
Internet connection sharing between linux and windows mdkusr Linux - Networking 4 11-09-2004 01:27 AM
sharing internet connection between linux and windows homer_3_16uk Linux - Networking 1 03-21-2004 01:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:51 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration