LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-16-2009, 06:51 AM   #1
pdwivedi
Member
 
Registered: Oct 2007
Posts: 31

Rep: Reputation: 15
internet connecion sharing between windows host and linux client


hi every body..I have a laptop on which i connect to internet using dialup modem.my laptop is also connected to a linux box via lan.now i want to connect to internet from the linux box, using internet connnection sharing from widows xp installed on laptop.how to do this please help..

thanks in advance
pdwivedi
 
Old 04-16-2009, 06:54 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
in XP activate internetsharing.
on linux, set the Lan IP from the XP computer as the default GW
Add the DNS info in /etc/resolv.conf
 
Old 04-16-2009, 07:18 AM   #3
pdwivedi
Member
 
Registered: Oct 2007
Posts: 31

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by repo View Post
in XP activate internetsharing.
on linux, set the Lan IP from the XP computer as the default GW
Add the DNS info in /etc/resolv.conf
thanks for your quick reply
but i am still unable to do it
in win xp i have following ip

for dialup i have
PPP adapter Airtel GPRS:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 117.96.40.67
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 117.96.40.67

and for ethernet adapter

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.202.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

while on linux box i have following ip
Link encap:Ethernet HWaddr 00:0C:29:F4:9E:1D
inet addr:192.168.202.128 Bcast:192.168.202.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fef4:9e1d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:445 errors:0 dropped:0 overruns:0 frame:0
TX packets:602 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:48307 (47.1 KiB) TX bytes:72900 (71.1 KiB)
Interrupt:67 Base address:0x2000



now how to go from here please help..

regards
 
Old 04-16-2009, 07:25 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
in linux:
as root:

Code:
route add default gw 192.168.202.1
then try
Code:
ping 192.168.202.1
if that works, try
Code:
ping 212.100.160.51
if that works try
Code:
ping www.google.be
 
Old 04-16-2009, 07:45 AM   #5
pdwivedi
Member
 
Registered: Oct 2007
Posts: 31

Original Poster
Rep: Reputation: 15
Thumbs up

Quote:
Originally Posted by repo View Post
in linux:
as root:

Code:
route add default gw 192.168.202.1
then try
Code:
ping 192.168.202.1
if that works, try
Code:
ping 212.100.160.51
if that works try
Code:
ping www.google.be

marvelous....thanks a lot... .you are a genius!!!
It did work.I will be more obliged if u can explain the steps and also that what the file resolve.conf does
thanks again
:-)
pdwivedi

Last edited by pdwivedi; 04-16-2009 at 07:46 AM.
 
Old 04-16-2009, 07:57 AM   #6
pdwivedi
Member
 
Registered: Oct 2007
Posts: 31

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pdwivedi View Post
marvelous....thanks a lot... .you are a genius!!!
It did work.I will be more obliged if u can explain the steps and also that what the file resolve.conf does
thanks again.



:-)
pdwivedi

one more problem that i can't open the websites by thier u.r.l however it does perfectly well with ip addresses.

regards
pdwivedi
 
Old 04-16-2009, 10:40 AM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
one more problem that i can't open the websites by thier u.r.l however it does perfectly well with ip addresses.
Then there is a problem with DNS
Put the DNS (name servers)from your provider in
/etc/resolv.conf

Code:
nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx



Code:
route add default gw 192.168.202.1
means, all trafic will go true 192.168.202.1 (the windows laptop)

/etc/resolv.conf => it contains the nameservers, in order to resolve
ip's
you type www.google.com, the nameserver will lookup the ip
 
Old 04-16-2009, 10:45 AM   #8
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Don't know wich distribution you use, but a good idea would be to put all this info in
networkmanager or wicd or whatever you use to make a connection.
 
Old 04-16-2009, 11:09 AM   #9
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Rep: Reputation: 35
if you go to the dos prompt on the Windows machine and do:
Code:
 > ipconfig /all
You should see the ip addresses of the name servers that you need to put into the resolv.conf
 
  


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
client and host computer internet connection sharing configuration in redhat 9 raport Linux - General 1 12-20-2005 05:54 AM
internet sharing, linux client, win server... huzzzo Linux - Networking 3 08-21-2005 02:30 PM
How should Windows XP be set for internet sharing on a Linux host? mitothy Linux - Networking 7 09-19-2004 03:31 PM
internet sharing with vmware win2k from linux host? tumnus Linux - Newbie 4 02-08-2003 09:37 PM
Sharing an internet connection with a Linux client through a 2000 server gateway thuan Linux - Networking 1 08-02-2001 01:55 PM

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

All times are GMT -5. The time now is 05:59 PM.

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