LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Internet slows down with Fedora and Windows PC (https://www.linuxquestions.org/questions/linux-networking-3/internet-slows-down-with-fedora-and-windows-pc-596829/)

nidracom 11-03-2007 07:59 AM

Internet slows down with Fedora and Windows PC
 
Hey all...

I am new to this forum and new to linux too ;-)

I ve got a problem when I connect my Fedora PC in a Windows Network (through a DSL Router) to the Internet.
I couldnt solve the problem by myself yet, so I hope that someone could help me out with this...

Setup:
DSL Router (D-LINK) with IP 192.168.1.1
Windows PC IP 192.168.1.30
FEDORA IP 192.168.1.200

Normally my DSL band is about 2 Mbps

Following problem:
when I connect the Fedora to the LAN the connection slows down to
about 100 Kbps !
I do not understand why !

the hosts looks like this:
127.0.0.1 localhost.localdomain localhost
192.168.1.200 ncomail.nidracom.local ncomail
192.168.1.1 mygateway

the resolv.conf
nameserver 192.168.1.1
nameserver 165.85.2.50 (which is another DNS in the internet. this ip are indicated on the dsl router setup)

Please, can anyone give me a little hand on this ?
Thanks a million

Best Regard
J. Paulo Marques
NIDRACOM

camorri 11-03-2007 08:58 AM

How are you measuring this speed change?

Could you tell us more about the type of hardware connections you are using? Are these wired connections on both machines? Wireless? Card make etc.

Your entry for DNS; 192.168.1.1 is yoru gateway, that is not a DNS server address. Most ISPs pass the correct DNS addresses back to you, and store in the router. Depending on router config, they can pass the correct DNS addresses back to the using system.

Have a look in yoru router config for correct DNS addresses, or ask your ISP. Set those only in your /etc/resolv.conf file and see if that helps. When a name has to be resolved, linux looks in the /etc/hosts file first, then in resolv.conf file in the order the DNS addresses are listed, and will time out on things like 192.168.1.1, since it isn't a DNS server.

nidracom 11-03-2007 09:20 AM

Hello camorri...

I am mesuring with a tool provided by a site:
www.abeltronica.com/velocimetro/pt/

this is usualy ok...
bysides...
I notice that the speed is very slow in the browser....
well..
all is wired. no wireless used at the moment.
everything is connectet to a switch.

I have more than one windows machine accessing the net. there are no problem with that.
when I connect the linux machine the hole connection slow down.
When I disconnect it I work on all windows based machines at about 2 Mb.

I corrected the resolv.conf to only the the nameserver which is indicated in the router and took out the gateway adress, like you sugested.
Unfort. it doesnt work... no improvement...

Regards

PTrenholme 11-03-2007 09:37 AM

If you (like many of us) don't, and don't want to, really understand all the details of network management, install the NetworkManager and NetworkManagerDispacher services, and configure them to start during boot. Then just use the system-config-network command (or select Network from the System menu) to set your hardware interface to "automatically" get the DHCP settings from your router(s).

Re your "speed" issue, check to see if you have IPv6 configuration problems. I've seen reports that enabling v6 can significantly degrade performance, although I've had no problem leaving the option selected in the network configuration.

David1357 11-03-2007 09:39 AM

Re: Internet slows down with Fedora and Windows PC
 
You shouldn't need a resolv.conf file. If you use "route" to set the default route to your router (192.168.1.1), all not-same-subnet requests will be handled by the router.

You can setup the route using
# route add default gw 192.168.1.1

lazlow 11-03-2007 12:21 PM

You say you are using a switch. A switch, a hub, and a router are all different things but switches look just like hubs. If you have a hub instead of a switch this could be the source of the problem. Have you tried to hook the linux box directly to the dsl modem (no router or anything). This would eliminate any conflicts in the removed hardware. Many routers are like win modems, in that they follow windows protocol instead of Ethernet protocol.

Just a few thoughts.

Lazlow

camorri 11-03-2007 12:31 PM

Are you sure all the ethernet cards you are using are capable of the same maximum speed? You don't have an older 10 Mbps card in the linux machine?

I would like you to post a couple of things, there should be a file with the parameters that configure the ethernet card. The file on Mandriva is called cfg-eth0. Its contents have will tell us how you have things set up in linux.

Here is what it looks like on my machine.

Code:

cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.1.21
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
ONBOOT=yes
METRIC=1
MII_NOT_SUPPORTED=no
USERCTL=yes
DNS1=207.164.234.193
DNS2=206.47.244.56
RESOLV_MODS=yes
IPV6INIT=NO
IPV6TO4INIT=NO

Note you can put the DNS stuff in here, and it will tell us if you have IPv6 enabled. It can cause problems on some systems.

Also if you could post the results of '/sbin/ifconfig eth0' without the quotes, it will show the error counters.


All times are GMT -5. The time now is 08:19 AM.