LinuxQuestions.org
Visit Jeremy's Blog.
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 12-22-2006, 11:46 AM   #1
hacker supreme
Member
 
Registered: Oct 2006
Location: As far away from my username as possible
Distribution: Gentoo
Posts: 259
Blog Entries: 1

Rep: Reputation: 31
Internet problems through XP SP2


I know I could have phrased my title better but here goes:
I am having slight difficulty with Internet connection sharing. I'm running Ubuntu 6.06LTS upstairs through 100MBs Ethernet. The gateway is a Win XP SP2 that connects directly to the net.
When I get the connection running to the Linux box upstairs it only works for about 3 minutes. Then it completely stops and I can't get a ping through. The connection to the Internet is still running but the Ethernet is not communicating at all.

I know it should work because, before I upgraded to 6.06LTS I had it running on 5.10 and it worked just fine then.
Can anyone solve this conundrum?

(Let me know if you can't understand any of it and I'll explain further. )
 
Old 12-22-2006, 09:40 PM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Can you still ping by address between XP and Ubuntu boxes? If not, can you post the output of /sbin/ifconfig -a after things have stopped working?

You might also want to look through your system logs to see if there are any clues.
 
Old 12-23-2006, 10:55 AM   #3
hacker supreme
Member
 
Registered: Oct 2006
Location: As far away from my username as possible
Distribution: Gentoo
Posts: 259

Original Poster
Blog Entries: 1

Rep: Reputation: 31
I'll do that as soon as I can. Thanks.
Actually, I cannot ping between the boxes even by address. I have my system monitor on my desktop and all communications just stop.
I will post all the info I get from ifconfig.
 
Old 12-26-2006, 12:16 PM   #4
hacker supreme
Member
 
Registered: Oct 2006
Location: As far away from my username as possible
Distribution: Gentoo
Posts: 259

Original Poster
Blog Entries: 1

Rep: Reputation: 31
I've finally got round to getting everything up again after Christmas.
This is the output from ifconfig:
Quote:
eth0: Link encap: Ethernet HWaddr:00:01:6c:A0:65:10
inet addr:192.168.0.2 Bcast: 192.168.0.255 Mask: 255.255.255.0
inet6 addr: fe90::201:6cff:fea0:6300/64 Scope: link

UP BROADCASTING RUNNING MULTICAST MTU:1500 metric:1
Rx packets:190 errors:0 dropped:0 overruns:0 frame:0
Tx packets:147 errors:0 dropped:0 overruns:0 carrier:0
txquelelen:1000

Rxbytes:44911 (43.8 KiB)
Txbytes:8884 (8.6 KiB)
Interrupt:217 base address:0xe800
This was noted when I could not connect to anything.

Last edited by hacker supreme; 12-26-2006 at 12:19 PM.
 
Old 12-26-2006, 06:30 PM   #5
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Output of ifconfig looks good to me. Indeed this is a conundrum. Have you checked your system logs for any clues? Beyond that, the only things that occur to me that you might consider are:
  • Does the situation correct itself if you reboot XP while leaving Ubuntu running?
  • Or vice versa, what if you reboot Ubuntu while leaving XP running?
  • Could it possibly be a firewall issue on either machine? While not connected to the Internet (for safety), you might try dropping both firewalls and see if the computers stay in communication (pings).
I am guessing it is neither an issue with the NIC or its driver since you had this working in an earlier version. Is that consistent with your knowledge? If you are desperate enough, I suppose you could reinstall the old version of Ubuntu and verify it still works.
 
Old 12-27-2006, 07:46 AM   #6
hacker supreme
Member
 
Registered: Oct 2006
Location: As far away from my username as possible
Distribution: Gentoo
Posts: 259

Original Poster
Blog Entries: 1

Rep: Reputation: 31
If I reboot ubuntu then the connection is connected for the same brief time as before. If I restart XP then it also reconnects but only lasts the same 3 minutes.
My Ethernet is NOT firewalled on XP. I'm not entirely sure about the firewall status on hte Ubuntu machine.

BTW: I would rather not re-install the old version of Ubuntu.

Incidentally, which part of the system log do you want posted?

Last edited by hacker supreme; 12-27-2006 at 07:48 AM.
 
Old 12-27-2006, 06:19 PM   #7
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by hacker supreme
If I reboot ubuntu then the connection is connected for the same brief time as before. If I restart XP then it also reconnects but only lasts the same 3 minutes.
That's a head scratcher! The only thing I can think of that would happen when either computer is rebooted is the two NICs negotiating with each other again. And I am not sure that even happens if you don't power cycle. I wonder if the XP rebooting could induce some kind of re-initialization of the Ubuntu driver. I don't know the answer. I am just thinking out loud here.

This is if the two computers are directly connected together (to my knowledge). If they are connected through a hub, there is a remote possibility something has gone flacky with the hub. (See my live CD suggestion below.)


Quote:
My Ethernet is NOT firewalled on XP. I'm not entirely sure about the firewall status on hte Ubuntu machine.
There are three (potential) tables in the linux firewall. You can list the contents with theses commands:

Code:
sudo iptables -nvL
sudo iptables -t nat -nvL
sudo iptables -t mangle -nvL
You are unlikely to have any entries in the mangle table.You can clear all of the entries and allow everything to pass in the filter and nat tables with:

Code:
sudo iptables -P INPUT ACCEPT
sudo iptables -P OUTPUT ACCEPT
sudo iptables -P FORWARD ACCEPT
sudo iptables -t nat -P PREROUTING ACCEPT
sudo iptables -t nat -P POSTROUTING ACCEPT
sudo iptables -t nat-P OUTPUT ACCEPT
sudo iptables -F
sudo iptables -t nat -F
I believe these changes will not survive a reboot (I have not run Ubuntu -- yet).

Quote:
BTW: I would rather not re-install the old version of Ubuntu.
I can understand that! That is why I phrased it the way I did. But I have since thought of another, less painful alternative that might yeild some useful data. If you have a live CD of 5.10, you could try it and see if it exhibits the same problem. If you don't have this, a live CD of any other distro still might yield something interesting.

Quote:
Incidentally, which part of the system log do you want posted?
I wasn't so much wanting you to post as suggesting you look through them to see if there something that sounds like it might be related. I would think if there are such entries, they would occur around the time that things went from functional to non-functional.
 
Old 12-28-2006, 12:39 PM   #8
hacker supreme
Member
 
Registered: Oct 2006
Location: As far away from my username as possible
Distribution: Gentoo
Posts: 259

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Hmmm... Today I booted them up and it's all worked fine. I've accessed my SAMBA share and the net from The Linux box.
This really has me scratching my head.
BTW: The network switch is brand new and I've had absolutely no problems with it. The only problems I've actually had with the physical connections are the rather dodgy DIY cables.
 
Old 12-28-2006, 02:52 PM   #9
apolinsky
Member
 
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 15;
Posts: 442

Rep: Reputation: 47
When you are having difficulties connecting, are there any difficulties on the windows machine itself? Could you walk to the windows machine and try a ping to an address on the net? Possibly a better idea is to try and see where the difficulties lie. On Linux you can run a traceroute address (substitute the ip address or www.name.com for address.) On windows it is abbreviated tracert. Good luck.
 
Old 12-29-2006, 07:10 AM   #10
hacker supreme
Member
 
Registered: Oct 2006
Location: As far away from my username as possible
Distribution: Gentoo
Posts: 259

Original Poster
Blog Entries: 1

Rep: Reputation: 31
I spoke too soon!!! It's not working! I occasionally get pings through via IP but can't do anything useful. (e.g access SAMBA, net, etc.)

There are no problems with the windows machine (other than it running windows! :P ) and I'm posting this from Windows. As opposed to my previous post which was posted from the Linux box.

BTW: I've always used 12.110.110.204 as my test IP. It's in the US so it's a fair way to go.
 
Old 12-29-2006, 08:19 AM   #11
apolinsky
Member
 
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 15;
Posts: 442

Rep: Reputation: 47
You seem to be narrowing your problems down. Connectivity remains from the windows 'router' box. The difficulty therefore seems to actually be the connection between the Linux and Windows machines. I would first check /etc/resolv.conf on your Linux machine to make sure that the 'server' is the first entry. Temporarily I would eliminate all iptables entries, especially if you are doing natting. The final thought I have is that your NIC may be problematic. For some reason, I have always found the most problems with internal modems and NICs.
 
Old 12-30-2006, 01:40 AM   #12
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
You've already mentioned having issues with your cables. Are you sure that's not the problem now? It seems to me that would be a great candidate for intermittent problems, although the originally presented problem seems a bit difficult to explain.
 
Old 12-30-2006, 02:42 PM   #13
hacker supreme
Member
 
Registered: Oct 2006
Location: As far away from my username as possible
Distribution: Gentoo
Posts: 259

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Thanks apolinsky. I followed UR advice. Suddenly everything works properly. the ethernet connection even survived a timeout by the Dialup modem connection. (Happens every 2 Hours 2 seconds precisely!)

blackhole54: The issue with the cables is minor scarring on the modular plug contacts where I used a flat-head screwdriver to push them into the wire. Because I couldn't afford the crimper.
There's been no connection problems due to the cables themselves, it seems to have been software all along. (Thank goodness. If it had been hardware I would have had to do something stpuid. Like rip up a piece of cable that took me (and my dad. Credit where it's due) over half an hour to go 1 foot. (long story) )


Thanks to everyone for helping out. Everyone's really friendly in the Linux Community
 
  


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
Samba WinXP SP2 <---> FC3 Problems madballs64 Linux - Networking 1 12-16-2005 11:44 AM
suSE 9.2 to XP SP2 and ICS Pyr00 Linux - Networking 2 02-25-2005 04:31 AM
XP sp2 and Samba on RH9 tebucky Linux - Networking 6 02-12-2005 10:04 PM
SP2 ruined my life...help kbz2007 General 3 09-14-2004 05:32 AM
Internet Explorer 5 SP2 + Wine problems daphantom Linux - Software 3 09-02-2003 09:13 PM

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

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