Weird LAN Problem : Linux Vs. Windows , HTTP sites respond in Win and not in Linux
SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054
Rep:
Weird LAN Problem : Linux Vs. Windows , HTTP sites respond in Win and not in Linux
Hey,
I am in a University LAN , where we are assigned IPs in the private space (172.*.*.*) based on our MACs via DHCP. (i.e dhcpcd gives me a ip).
This whole setup was working fine, until a couple of weeks ago when I found that local sites weren't responding.
Quote:
bash-3.1$ time wget abcd/home.htm
--17:37:31-- http://abcd/home.htm
=> `home.htm'
Resolving abcd... 172.24.2.36
Connecting to abcd|172.24.2.36|:80... connected.
HTTP request sent, awaiting response...
real 23.240 user 0.000 sys 0.010 pcpu 0.04
(I pressed ctrl+c to stop the loading)
As you can see ... for nearly 23 secs the site still hadn't loaded. I even tried to wait for mins at end and it still didn't load. It is a site on the intranet so it generally opens in a sec or so.
I restarted to my Windows XP and all seems to be fine over there. I then proceeded to boot my computer on a ubuntu live CD and there seems to be the same problem over there. So, it seems that only linux is having a problem.
Could anyone please help me out over here?! I am mainly stumped by the nature of this problem , as in ... how could there be a difference between windows and linux? I tried changing the user-agent in konqueror, unticked the send identification (even though I am using wget too) , but nothing changed.
1. I have tried replacing the LAN cable
2. I have tried on a different linux
3. It is not a problem with the port as it works fine in windows.
NETGEAR was the name of my network. I removed that line and the problem went away. You might also check that Windows and Linux are getting the same DNS servers. Keep in mind that when using DHCP the file will be overwritten each time. I believe there's a switch you can use with dhclient to tell it to not overwrite resolv.conf but I don't recall what it is.
Could it be the MTU setting. I had a similar problem with Kubuntu where the MTU was at 1500 and wouldn't access any websites, just failed or went extremely slowly and then timed out.
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054
Original Poster
Rep:
Hey
Thanks a lot !
changing the MTU seems to have helped a little , but not completely solved it. (atleast I think it has helped, such random times when it worked were present before too)
Any other things that I should check?
How do I find the nameserver my windows is using ?
Again, thanks...
My present MTU is 1300, how low should I allow it to go ?
If I were you I would have sniff it... Use ethereal, wireshark whatever to sniff what is going on on the wire. See what is the difference between Windows and Linux, which machine stops sending packets etc.
BTW you use wget to access the site you couldn't access, do you use the same application under XP ? Or do you use something else to access the site when you run XP, that could make the difference, may be the server on the site cannot respond properly to wget request.
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054
Original Poster
Rep:
Quote:
BTW you use wget to access the site you couldn't access, do you use the same application under XP ? Or do you use something else to access the site when you run XP, that could make the difference, may be the server on the site cannot respond properly to wget request.
Yeah, but I tried doing it the most basic way too ... telnet abcd , GET index.html HTTP/1.1 etc. ... that still didn't work out.
Quote:
If I were you I would have sniff it... Use ethereal, wireshark whatever to sniff what is going on on the wire. See what is the difference between Windows and Linux, which machine stops sending packets etc.
How exactly would I do this? I never used wireshark in my life ... I have it installed right now ...
bash-3.1# wget abcd
--18:59:58-- http://abcd/
=> `index.html'
Resolving abcd... failed: Name or service not known.
This is telling you what your problem is, it is very simple, sort out your DNS and/or gateway.
Quote:
may be the server on the site cannot respond properly to wget request.
A web server does not know if you are requesting command line or not and does not care, a get is a get is a get.
Quote:
If I were you I would have sniff it... Use ethereal, wireshark whatever to sniff what is going on on the wire. See what is the difference between Windows and Linux, which machine stops sending packets etc.
Why? It is a DNS or gateway issue, no need to install another tool for something this simple. Although these are cool things and very useful utilities.
If you are still having this problem, what does your /etc/hosts look like? What is your machine name, is it on a domain, are you using the right DNS servers?
BTW lord-fu if you look further up in the thread you'll see that this is not a resolving problem -- it did resolve, it got the ip, sent http request and then stalled.
Quote:
How exactly would I do this? I never used wireshark in my life ...
I need to fire that one up again. It's so much fun!
Been a while since I used it.
Um, it (used to) seem easy to just scan/monitor 100% all lan traffic (I did on small lan). Of course if lan is big then there could be copius overall output -- in such case you might ability just watch certain protocols only, say http for example (so as to reduce what you look at).
May easier run Wireshark from another box so can have wireshark switched on (monitoring on) when do with Linux and then again when do with (rebooted to) Win
(used to) you'd set a specified amount of time for wireshark to be in monitoring mode, for example 5 minutes. In real time during the live monitoring you can watch the output. At end of for example 5 minutes you can then scrutinize the entire 5 minutes of output due to wireshark has saved it in a file for you.
Might need to run wireshark as root (can't remember).
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054
Original Poster
Rep:
Weird thing is ... even normal www sites which I access through a HTTP Proxy (squid) are slow to open, but if I use https they are fast (https goes through the same proxy).
It seems that near a year and a half ago an onboard the motherboard Marvell gig that I had wouldn't work at that time in Linux. I took the easy way out -- I didn't need gig (10/100 would do) so I just stuck in a 3com 3c905-b pci card 10/100 network card and hooked my cat 5 cable to the 3com -- worked fine.
i have the same problem but mine is not a Marvell ethernet adapter
i use Realtek ethernet adapter, I too am connected to the same local area network as Duryodhan..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.