LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Network and accessing internet via XP box (https://www.linuxquestions.org/questions/linux-networking-3/network-and-accessing-internet-via-xp-box-188800/)

owain 06-02-2004 07:53 AM

Network and accessing internet via XP box
 
I've got a computer running WinXP, with a USB ADSL modem. I want to share this connection with a Linux box (currently Suse 8.2).

I've got them connected via a crossover cable, run the network wizard on XP which has set up IP 192.168.0.1 & netmask 255.255.255.0. On the linux box I've set IP/proxy options as 192.168.0.2 everywhere this is an option in Yast.

I can ping the linux box from XP, but not vice versa. I presume I'm missing something, but don't know what to do now. Any suggestions?

kbcnetau 06-02-2004 08:00 AM

Um, I think that you might be better off going about this the other way around...

You could have the ADSL connection on the Linux box, set up a masquerading firewall to block out all those nasties that want to eat your XP machine for breakfast...

I know that this doesn't really answer the question, but I always feel more comfortable seeing the Microsoft boxes on the INSIDE of a network.

Cheers

owain 06-02-2004 10:29 AM

I know that would be preferable - but it would be much easier this way around, both due to the usage of the boxes and the physical layout of cables.

owain 06-02-2004 11:07 AM

Oops, I meant to say that I can ping the XP box from the linux one

owain 06-02-2004 12:09 PM

OK, so I half solved the problem - I couldn't ping the linux box because it was going onto standby :cry:

Anyway, I can ping both ways - but I can't access the internet from the linux box. Everything seems to be set up OK on the XP one, and the static IP on linux is set to 192.168.0.2, with 192.168.0.1 as the proxy and defailt gateway. I've manually entered my ISP's DNS servers.

:confused:

owain 06-02-2004 02:26 PM

OK, so I can ping the XP's ADSL gateway from the Linux box, but still I get nothign from a browser.

kbcnetau 06-02-2004 08:38 PM

You said that you have the XP box defined as a PROXY on your Linux box... This will only work if you actually have a proxy server running on XP, with the appropriate permissions set up.

Try setting "do not use" proxy or "direct connection to Internet" on the Web browser on your Linux box. If it suddenly starts working, this is your problem.

owain 06-03-2004 02:50 PM

I've now removed all proxy entries (guess I was trying too many things :rolleyes: )....I can ping any IP from the linux box, but neither Konqueror nor Mozilla download any page - in both cases they halt with the status bar reading "waiting for reply", or similar. :confused:

kbcnetau 06-03-2004 06:22 PM

Weird. How about if you try connecting to an IP address rather than a URI?

Try: <http://66.102.7.99> - this is the IP address of one of the Google servers. If you try this and get Google, you may have a name resolution (DNS) problem.

Peacedog 06-03-2004 07:02 PM

have a look at this thread, probably every concievable problem was covered, it will take a little reading, but, by the time your finished, you'll probably have your answer.

http://www.linuxquestions.org/questi...&highlight=ICS

good luck.

owain 06-03-2004 08:01 PM

Quote:

Originally posted by kbcnetau
Weird. How about if you try connecting to an IP address rather than a URI?

Try: <http://66.102.7.99> - this is the IP address of one of the Google servers. If you try this and get Google, you may have a name resolution (DNS) problem.

That worked - but at a glacial pace. So now I wonder if the problem isn't a physical one with the equipment I've got. How can I test that the network between the two boxes is running cleanly, beyond pinging, before I think of buying new kit? And if that's not the problem, what should I do with the DNS issue (at the moment, the XP box is getting the DNS address automatically, and I've set the Linux DNS as 192.168.0.1 - is this correct?)

kbcnetau 06-03-2004 08:20 PM

I'd set the resolv.conf on your Linux box to point at the _external_ DNS from your ISP - not the XP box.

See if that speeds things up.

owain 06-04-2004 07:23 AM

Changing to the external DNS doesn't help. And the thread that PEACEDOG linked to isn't dealing with the same problem - there it was getting the crossover working to ping both ways.

However, I've run pings for half an hour each way across my crossover, and I'm getting a packet loss of 40-50%, which I'm guessing could be my problem - if so, is there any possible explanation for this, other than hardware?

kbcnetau 06-05-2004 01:53 AM

Um, what's the brand of network card on the Linux box? I had a similar problem a couple of years ago with DLink cards using the via-rhine.o driver. Under heavy traffic, packets started vanishing. Put the NIC in a Windoze machine, no problems. Then I just started using cards with Realtek chipsets and have never had a NIC problem since (touch wood!).

owain 06-05-2004 02:55 PM

Problem solved, and yes it appears crappy hardware was the problem - setting the connection down to 10Mb/s has got it running. Thanks for the help, everyone :)


All times are GMT -5. The time now is 07:27 PM.