LinuxQuestions.org
Help answer threads with 0 replies.
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-15-2003, 11:02 AM   #1
kidicarus
Member
 
Registered: Aug 2003
Distribution: Debian Sid
Posts: 93

Rep: Reputation: 15
Internet connection sharing between XP and linux


I'm trying to share my AOL dsl connection with my linux machine (roaring penguin doens't want to work on debian but works on redhat) and am having some problems.

I installed two nic cards that work, set it up so the NIC that connects to the DSL modem is sharing the connection and the "home networking connection" in properties is set to NIC2.

The problem is, once I set the linux machines IP address to 192.168.0.2 and add that to the routing table I'm able to ping between the windows and the linux machines but I'm unable to get connected, lynx gives me an error of "badly formed address" whenever I go to a webpage.

I don't know where to go from here, the same process has worked when I used redhat 7.2 as the client and windows XP as the server before. Now that I'm on debian, itdoesn't seem to be working.

any help would be appreciated.
 
Old 09-15-2003, 02:28 PM   #2
hakcenter
Member
 
Registered: Apr 2003
Location: Not to far from the computer screen
Distribution: RedHat 9.0
Posts: 324

Rep: Reputation: 30
Click my sig link
 
Old 09-15-2003, 03:15 PM   #3
kidicarus
Member
 
Registered: Aug 2003
Distribution: Debian Sid
Posts: 93

Original Poster
Rep: Reputation: 15
I don't see how that's going to help my problem, linux is the "client" machine, it needs to get access, not give.
 
Old 09-15-2003, 03:29 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
are you able to ping an ip address on the internet from the linux machine??? what about a domain name???
 
Old 09-15-2003, 03:34 PM   #5
kidicarus
Member
 
Registered: Aug 2003
Distribution: Debian Sid
Posts: 93

Original Poster
Rep: Reputation: 15
No i can only ping windows and watch as the lights on the HUB flicker.
 
Old 09-15-2003, 04:02 PM   #6
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
then it would seem it's an issue with your windows "router"...
 
Old 09-15-2003, 04:15 PM   #7
kidicarus
Member
 
Registered: Aug 2003
Distribution: Debian Sid
Posts: 93

Original Poster
Rep: Reputation: 15
I don't know what you're talking about... Nothing is using a "router", I'm trying set up the machines where windows is the server: one NIC goes to the dsl, the other goes to the LAN, and the computers connected to the hub pick up the connection.

This always works, when the clients are windows or redhat, but debian doesn't seem to want to pick up the connection.
 
Old 09-15-2003, 04:27 PM   #8
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
ummm... well if you're not using a router to share the connection, then you must be using a proxy... in which case you wouldn't be able to ping the internet from the lan anyways... are you sure you have the client configured to access the www through a proxy???
 
Old 09-15-2003, 04:54 PM   #9
kidicarus
Member
 
Registered: Aug 2003
Distribution: Debian Sid
Posts: 93

Original Poster
Rep: Reputation: 15
Are you talking about internal routing tables in windows XP?
That's the only way I can make sense of your post.

Windows XP uses ICS, this was implemented at windows 98, basically it makes windows the "host" or "server" computer while sending the other "client" computers access.


If you're talking about hardware, a large percent of the home network pouplation uses hub instead of routers, and they don't use proxies, that's totally unneeded.

http://www.practicallynetworked.com/sharing/xp_ics/

heres an explanation of Windows XP ICS so you can brush up on it.

"ICS client computers can use XP's Internet Gateway to monitor and control the server computer's Internet connection. If you have a dial-up connection, you can connect and disconnect when deciding whether to enable ICS."

Now you'll know for next time.
 
Old 09-15-2003, 08:06 PM   #10
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Have you checked your routing table ?
Code:
route -n
Your default gateway may be incorrect.
 
Old 09-15-2003, 09:49 PM   #11
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
"a large percent of the home network population uses hub instead of routers, and they don't use proxies, that's totally unneeded"

okay letīs get one thing clear: the internet is made up of routers... you need a router to connect to it... they are fundamental to tcp/ip over the internet... even if you have a proxy server, it needs a router to connect to the internet... the router may be in your locality or at your internet service provider, but ITīS THERE.

routers and hubs are totally different things...

proxies play a critical role in making the web work BETTER... AOL, for example, uses HUGE proxy servers to make things faster by saving huge amounts of bandwidth and DOLLARS by cacheing terabyte after terabyte of world wide web objects...

anyways, in your case, your router is your windows box... and the router for your windows box is the router AOL assigned to your connection... the linux boxes on the lan must use the windows box as a GATEWAY... A GATEWAY IS A ROUTER.

and since you dont connect TO a router but THROUGH it, it isnt really a server, its a ROUTER.

do as Mathieu says and check if your linux box is set to use 192.168.0.1 as its gateway...

route

or

route -n

if itīs not, then

route add default gw 192.168.0.1 eth0

use ifconfig and make sure you have everyone with the same netmask...

http://www.die.net/doc/linux/man/man8/route.8.html

http://www.die.net/doc/linux/man/man8/ifconfig.8.html
 
Old 09-15-2003, 09:54 PM   #12
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
also make sure your /etc/resolv.conf points to the correct dns server(s)... if not you will only be able to ping ip addresses on the internet but not domain names on the world wide web...
 
Old 09-16-2003, 08:07 AM   #13
kidicarus
Member
 
Registered: Aug 2003
Distribution: Debian Sid
Posts: 93

Original Poster
Rep: Reputation: 15
I thought you were talking about the a hardware router, router hardware makes things easier as it just splits the connection.

Hubs are used for simple LANs and are less expensive. I doubt it's any internal problem though because windows 98 SE can pick up the connection (and also distribute the connection), so can redhat 9, only debian doesn't work.


route -n shows that everything is correct, the gateway is set right, the genmask (netmask for class c network), etc.


I'm not sure what /etc/resolv.conf should be set to, so I set "icarus" (computer name) to 192.168.0.2 and windows can ping it, it can't ping "icarus", just 192.168.0.2.


Also, ICS apparently uses DHCP but dhcp is installed on my computer.

Last edited by kidicarus; 09-16-2003 at 08:12 AM.
 
Old 09-16-2003, 02:04 PM   #14
hostonlinux
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Rep: Reputation: 0
does the linux machine obtain ip automatically or you just assign an ip address to it ?
 
Old 09-16-2003, 02:57 PM   #15
kidicarus
Member
 
Registered: Aug 2003
Distribution: Debian Sid
Posts: 93

Original Poster
Rep: Reputation: 15
I'm assigning it an Ip address, I think that might be the problem.

When i boot debian, debian has the ip address of 192.168.1.1 with the wrong information, i think assign it to 192.168.0.2 and the computers can talk to each other.

I thought if i set the gw route and the routing tables it would work but no such luck, however after I set everything (set the address, set the gateway of 192.168.0.2 to 192.168.0.1 etc.) I get this now:
lynx
g
www.google.com
(looking up google)
(unable to connect to remote host)
 
  


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
Linux internet sharing connection with XP des33 Linux - Networking 2 03-10-2005 08:05 AM
linux internet connection sharing usa1234 Linux - Networking 3 10-29-2004 12:27 PM
Internet Connection Sharing through Linux 9 unmesh vaidya Linux - Newbie 1 11-25-2003 08:32 AM
Sharing Internet connection via Linux 8.0 troyzeng Linux - Networking 1 09-20-2003 03:41 PM
internet connection sharing in linux anwar_lpk Linux - Networking 2 05-06-2003 02:10 PM

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

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