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 06-02-2004, 07:53 AM   #1
owain
LQ Newbie
 
Registered: Oct 2003
Posts: 19

Rep: Reputation: 0
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?
 
Old 06-02-2004, 08:00 AM   #2
kbcnetau
Member
 
Registered: Dec 2003
Location: South Australia (ex-Devon, UK)
Distribution: SuSE, Slackware, Fedora, Debian, Knoppix
Posts: 141

Rep: Reputation: 15
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
 
Old 06-02-2004, 10:29 AM   #3
owain
LQ Newbie
 
Registered: Oct 2003
Posts: 19

Original Poster
Rep: Reputation: 0
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.
 
Old 06-02-2004, 11:07 AM   #4
owain
LQ Newbie
 
Registered: Oct 2003
Posts: 19

Original Poster
Rep: Reputation: 0
Oops, I meant to say that I can ping the XP box from the linux one
 
Old 06-02-2004, 12:09 PM   #5
owain
LQ Newbie
 
Registered: Oct 2003
Posts: 19

Original Poster
Rep: Reputation: 0
OK, so I half solved the problem - I couldn't ping the linux box because it was going onto standby

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.

 
Old 06-02-2004, 02:26 PM   #6
owain
LQ Newbie
 
Registered: Oct 2003
Posts: 19

Original Poster
Rep: Reputation: 0
OK, so I can ping the XP's ADSL gateway from the Linux box, but still I get nothign from a browser.
 
Old 06-02-2004, 08:38 PM   #7
kbcnetau
Member
 
Registered: Dec 2003
Location: South Australia (ex-Devon, UK)
Distribution: SuSE, Slackware, Fedora, Debian, Knoppix
Posts: 141

Rep: Reputation: 15
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.
 
Old 06-03-2004, 02:50 PM   #8
owain
LQ Newbie
 
Registered: Oct 2003
Posts: 19

Original Poster
Rep: Reputation: 0
I've now removed all proxy entries (guess I was trying too many things )....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.
 
Old 06-03-2004, 06:22 PM   #9
kbcnetau
Member
 
Registered: Dec 2003
Location: South Australia (ex-Devon, UK)
Distribution: SuSE, Slackware, Fedora, Debian, Knoppix
Posts: 141

Rep: Reputation: 15
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.
 
Old 06-03-2004, 07:02 PM   #10
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 167Reputation: 167
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.
 
Old 06-03-2004, 08:01 PM   #11
owain
LQ Newbie
 
Registered: Oct 2003
Posts: 19

Original Poster
Rep: Reputation: 0
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?)
 
Old 06-03-2004, 08:20 PM   #12
kbcnetau
Member
 
Registered: Dec 2003
Location: South Australia (ex-Devon, UK)
Distribution: SuSE, Slackware, Fedora, Debian, Knoppix
Posts: 141

Rep: Reputation: 15
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.
 
Old 06-04-2004, 07:23 AM   #13
owain
LQ Newbie
 
Registered: Oct 2003
Posts: 19

Original Poster
Rep: Reputation: 0
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?
 
Old 06-05-2004, 01:53 AM   #14
kbcnetau
Member
 
Registered: Dec 2003
Location: South Australia (ex-Devon, UK)
Distribution: SuSE, Slackware, Fedora, Debian, Knoppix
Posts: 141

Rep: Reputation: 15
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!).
 
Old 06-05-2004, 02:55 PM   #15
owain
LQ Newbie
 
Registered: Oct 2003
Posts: 19

Original Poster
Rep: Reputation: 0
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
 
  


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
Accessing a network PC from internet won't work Kujila Linux - Networking 5 07-29-2005 04:13 PM
SuSe: Need Help Accessing a Windows Box on Network! dr00t Linux - Networking 3 08-20-2004 08:45 PM
Accessing internet from win98 through a linux box Usalabs Linux - Networking 31 02-16-2004 10:45 AM
Accessing Redhat box from Windows Network ppuddick Linux - Networking 9 07-01-2002 11:33 AM
accessing box from internal network but not from external JereBear Linux - Networking 12 05-12-2001 01:12 AM


All times are GMT -5. The time now is 12:58 PM.

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