Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Kubuntu installed successfully on this computer. But when I tried going anywhere on the web using Konqueror, most of the time it would not load the page. I know it's not my connection going down because I was able to use Adept without any problems. So I used that to grab Firefox which did better but it still wouldn't load certain pages. It's weird because it's not always the same pages that refuse to load- for example, right now I'm obviously able to get onto linuxquestions.org, but google.ca won't load. Earlier the opposite was true.
I don't think my router (Linksys BEFSR41) is broken because there is a Windows XP box on the same router that has not experienced any problems. I'm not running a BitTorrent client or anything like that on any computers right now, and even when a Torrent app is running on the XP machine it does not seem to affect this problem one way or another.
So I used the Firefox I got out of Adept to install a newer version directly from mozilla.com- it still has the same problem. There appears to be no difference when I configure a manual IP vs. using DHCP. I can ping any website I want- even while it won't load in Firefox, it pings just fine. So I don't think it's the NIC because if it was then ping and Adept shouldn't be working perfectly, and it worked perfectly when this computer was also running XP. Disabling Java, Javascript, and all Firefox extensions doesn't have an effect one way or another. Tried disabling IPv6 support (Kubuntu help files suggest this as a fix for some DNS problems relating to Konqueror) and still no effect. Tried resetting the router- still no effect.
And finally, this is what I get when I run ifconfig:
Where the IP addresses correspond to my ISP. The numbers are the same in resolv.conf as they are when I look at the DNS servers listed when I run ipconfig /all from a cmd prompt on the working XP machine.
type route at the command line. Just want to see if there's anything strange happening with how packets are being routed.
Also, do a tracert and ping -c 100 to a website and see if there are any packet losses happening.
Okay, here's route:
Quote:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
I don't know if that's normal or not.
As I said (or at least meant to say) before, ping never reports any losses. However when I run a tracepath on google.ca it won't go past my ISP before getting no reply. This is weird because I can still ping google.ca from this and the XP machine, and right now it even loads in Firefox!
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986
Rep:
Your routing table looks fine.
Check your Firefox and Konqueror setting to make sure that they aren't using a proxy server or anything like that. Also, I know this is dumb, but try rebooting your Linux box. Try switching to a different physical port on your router? Check network cable??
You could also try browsing the internet using the w3m browser. Try this at the terminal:
Code:
w3m google.ca
Does it browse okay with text based?
Other than that, I don't have any other ideas on why your Windows machine works fine on the internet but your Linux doesn't.
Check your Firefox and Konqueror setting to make sure that they aren't using a proxy server or anything like that.
Nope. I've tried it with no proxy and with autodetect- doesn't make a difference either way.
Quote:
Originally Posted by Micro420
Also, I know this is dumb, but try rebooting your Linux box.
Sounds perfectly reasonable- but unfortunately doesn't help.
Quote:
Originally Posted by Micro420
Try switching to a different physical port on your router? Check network cable?? Other than that, I don't have any other ideas on why your Windows machine works fine on the internet but your Linux doesn't.
I didn't try this machine on another port/cable yet, but a different computer can use the same cable on the same port while running Puppy. So I have my doubts that it's a physical cable/port problem, but I might consider trying this box on a totally different network just for the hell of it.
Hmm... I just tried google.ca and could not connect via Firefox. So I quickly opened up a console and ran a tracepath on google.ca:
Quote:
1: 192.168.1.104 (192.168.1.104) 0.121ms pmtu 1500
1: no reply
2: no reply
And so forth. So then I try it on sites that do load in Firefox, and keep getting the same thing. Of course I can still ping the website without any problems.
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986
Rep:
Quote:
Originally Posted by Vundo Draxon
Hmm... I just tried google.ca and could not connect via Firefox. So I quickly opened up a console and ran a tracepath on google.ca:
And so forth. So then I try it on sites that do load in Firefox, and keep getting the same thing. Of course I can still ping the website without any problems.
It seems like it can't even get out of your router. It's not even sending it to the ISP's routers. Did you set up any firewalls on Kubuntu? what is the output of
[list][*] For the record: which vers. of Ubuntu & KDE?
Installed from a Kubuntu 6.06 disc. KDE version 3.4 (I think)
Quote:
Originally Posted by archtoad6
[list] [*] What is tracepath? -- I don't have it on SimplyMEPIS 3.3.2
And I don't have traceroute. It seems to do something very similar to the tracert command from DOS/Windows, as I would assume traceroute also does.
Quote:
Originally Posted by archtoad6
[list][*] When you ran tracepath after the posted Firefox google.ca failure, did you also run ping -c100 google.ca & traceroute google.ca?
Not traceroute as that is not a recognized command on this system, but yes I ran a ping right away and it didn't report any losses, as usual.
Quote:
Originally Posted by archtoad6
[list][*] Did google.ca fail in w3c & Konqueror, too?
Yes- when a site fails in one it fails in all of them. Then when it's working again it works for all browsers.
Quote:
Originally Posted by archtoad6
[list][*] It's a longshot, but re-boot the router.
Tried that, but it does not appear to have changed anything.
Quote:
Originally Posted by archtoad6
Are you keeping notes or a log of the incidents?
Not outside of what I've been posting in this thread.
Quote:
Originally Posted by archtoad6
Have you developed a "protocol" of tests you are running every time this happens?
Not much of a formal protocol, but I always open up a couple tabs right away and test with some reliable sites to see if it's actually the connection problem or if it's just one site being slow (sometimes that happens). If it does affect multiple sites I try restarting the browser, then disabling/enabling the network connection. Beyond that, it's a matter of coming back half an hour later and trying the sites again.
It was suggested to me that I try looking at changing the MTU value for the interface I am using- I'm working on that right now and it seems at least for the moment that I'm getting fewer problems.
At this point I would consider sniffing the connection at various points. Of course, I have the equipment -- hub between my firewall & aDSL "modem", plenty of spare NIC's, & at least 1 extra GNU/Linux box to do the sniffing. Your situation may not be so conducive.
Does anyone else have any easier ideas to try 1st?
At this point I would consider sniffing the connection at various points. Of course, I have the equipment -- hub between my firewall & aDSL "modem", plenty of spare NIC's, & at least 1 extra GNU/Linux box to do the sniffing. Your situation may not be so conducive.
Does anyone else have any easier ideas to try 1st?
That's a fair summary.
And I do have some spare equipment- just no clue how to do sniffing. Would you happen to have a link to some kind of tutorial?
And another thing... this is an integrated NIC in the Kubuntu box. Maybe the problem is that Kubuntu isn't handling that as well as Windows did. Can I just throw in another NIC into an expansion slot, or do I have to figure out how to disable the integrated first?
I think you could start w/ no add'l equip. at all. Just install ethereal, now called wireshark, & have it report on the box having the problem. This might show if the HTML packets are even leaving for the LAN.
Phase 2 would be to put in a 2nd NIC & use it to sniff other points on the packets' path through your LAN to the 'Net.
Before you use the new NIC for sniffing, you might just try connecting through it, this might solve the problem, although it might not explain it.
In dealing w/ 2 NIC's in 1 box, you need to know their MAC addresses before you start. Probably the easiest way to do this is to run ifconfig before you put the 2nd 1 in & record the MAC address of the 1st. Later, the new MAC must be that of the add'l card.
One thing to remember, you will need a hub, NOT a switch to insert at the different "sniff points". Hubs allow this kind of eavesdropping, switches hide the traffic on the different physical ports from each other.
I haven't used wireshark/ethereal for several years, but it didn't seem hard to learn the basics at that time.
An alternative to putting a 2nd NIC in the subject box is to install wireshark on a different computer (presumably a GNU/Linux machine) & use it w/ the hub to do the sniffing.
Because both 2 & 4 are hubs, I can sniff at A & B easily. I can also monitor any Linux machine internally. (I haven't even looked for a "Winders" sniffer.)
Your set up is probably simpler:
'Net--Modem--Router (w/ built-in switch)--Computers
I think I am getting ahead of myself, it may not have to be this complicated. In fact, I almost greyed out everything from here back to my 1st paragraph.
As I said at the beginning, start by installing wireshark (I assume you won't find it called ethereal any more). Read its manual/help(/tutorials?) & get comfortable w/ it. See what it shows -- are your browsing packets even getting out the existing NIC. If they are, even when you're in the middle of an episode of the problem, then consider what the next step should be.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.