Ubuntu 12.04 not connecting to wired ethernet

Asked by Suman Saha

I just installed Ubuntu 12.04.02 alongside my Vista (didn't use wubi). On booting up, I configured my wired internet connection. It doesn't use DHCP, and uses a static private IP (given by my ISP) which by the use of NAT is assigned a public IP. I have entered all information like gateway, mask and DNS. Now when I startup Firefox and login to my ISP's router to connect, the internet speed is greatly reduced. My plan is for 256kbps and I get <10kBps. Also, the software center though doesn't show any error, doesn't update or install anything...Please help.

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Does the system have a make and model?

Revision history for this message
daniel CURTIS (anoda) said :
#2

Hi Suman. You have written that the internet speed is greatly reduced. Maybe it is a DNS issue[1]. There is a very good utility to list the details of your network interfaces, wireless and wired. Just run `nm-tool` command.
Generally, your problem is connection speed?

,-----[ [1] DNS adding ]
| echo "nameserver 8.8.8.8" >> /etc/resolve.conf
`-----

You could also take a look on Debian Wiki [1], which contains a lot of valuable information on how to configure Internet etc. Especially check '/etc/network/interfaces' file. Remember, that If you have NetworkManager installed (or you're using), it could be causing a problem with '/etc/network/interfaces'.

If you're gonna configure your network with 'interfaces' file, You should/could add information about DNS, of course not forgetting about the other settings;

,-----[ example interfaces file ]
| auto lo
| iface lo inet loopback
|
| auto eth0 ## in case of problems, please remove this line! ##
| iface eth0 inet static
| address 192.168.1.100
| netmask 255.255.255.0
| gateway 192.168.1.1
| dns-nameservers 8.8.8.8 192.168.1.1
`-----

Of course you should restart network with e.g. `sudo /etc/init.d/networking restart` and `sudo service resolvconf restart` commands. I hope it would help you somehow, but I configured a static IP a long time ago and forgot a few things.

Cheers.
_________
[2] http://wiki.debian.org/NetworkConfiguration
[3] How To: http://www.howtogeek.com/howto/19541/how-to-assign-a-static-ip-to-an-ubuntu-10.04-desktop-computer/

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

The echo command won't work as a regular user. You can use:

echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf

Revision history for this message
daniel CURTIS (anoda) said :
#4

Hi Andrew. You, you're right. I forgot about this. Suman can use 'sudo' or even add nameserver manually by editing 'resolv.conf' file with e.g. gedit, right?

,-----[ edit file - example ]
| sudo gedit /etc/resolv.conf
`-----

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

gksudo for GUI apps like gedit, not sudo

Revision history for this message
Suman Saha (sumanthegr8est) said :
#6

Tried everything mentioned above, but still no luck...Also, the DNS is specified by my ISP to be 192.168.105.1. It works correctly in Windows, so I have no reason to think that the problem is due to something on my ISP's side. It surely is with some config in Ubuntu.

Revision history for this message
daniel CURTIS (anoda) said :
#7

Hi Suman. So If you are sure, that it is not a DNS issue or NM and 'interfaces' file settings we could try something else. Maybe problem is driver for your wired connection? I'm using 'forcedeth' module for my wired connection. You could try method mentioned by Wild Man (post #6.); http://ubuntuforums.org/showthread.php?t=1955569

He solved problem with slow wired connection, of course I mean his suggestions. By the way; what network card do you use?

,-----[ list network cards ]
| lspci | egrep -i --color 'network|ethernet'
`-----

Did you check the output of 'nm-tool' command? You can also disable IPv6 to try to solve your problem with slow connection. One of the method is to edit '/etc/sysctl.conf' file and add;

,-----[ /etc/sysctl.conf file ]
| net.ipv6.conf.all.disable_ipv6 = 1
| net.ipv6.conf.default.disable_ipv6 = 1
| net.ipv6.conf.lo.disable_ipv6 = 1
`-----

I think NM also have such options. I do not know if you are using NM or '/etc/network/interfaces' file. One more thing; maybe it is MTU [1] problem? Really, there are so many possibilites, to check/solve your problem.

Cheers.
_________
[1] http://www.prash-babu.com/2009/06/how-to-change-mtu-in-ubuntu-using-gui.html
[2] http://ubuntuforums.org/showthread.php?t=1955569
some examples: http://askubuntu.com/questions/134578/slow-wired-connection-dns-issue
http://askubuntu.com/questions/137250/wired-internet-speed-is-slow-in-ubuntu-12-04

Revision history for this message
Suman Saha (sumanthegr8est) said :
#8

1. Well I tried the way suggested by Wild Man, but again it requires a lot of download, and at this snail speed, it's gonna take ages.

2. Now about the network card, the output of lspci | egrep -i --color 'network|ethernet' shows "01:08.0 Ethernet controller: Intel Corporation N10/ICH 7 Family LAN Controller (rev 01)" (w/o quotes).

3. The output of the nm-tool command is:

NetworkManager Tool

State: connected (global)

- Device: eth0 [Wired] --------------------------------------------------------
  Type: Wired
  Driver: e100
  State: connected
  Default: yes
  HW Address: 00:1A:92:51:B1:8F

  Capabilities:
    Carrier Detect: yes
    Speed: 100 Mb/s

  Wired Properties
    Carrier: on

  IPv4 Settings:
    Address: 172.18.30.149
    Prefix: 24 (255.255.255.0)
    Gateway: 172.18.30.1

    DNS: 192.168.105.1
    DNS: 4.2.2.2

The settings above are the ones that my ISP gave me and work perfectly on my Windows installation.

4. I had already tried disabling IPv6, but to no avail, the problem still persists.

5. The default MTU value in both Windows and Ubuntu was 1500. I tried changing it to 9000 in Ubuntu. But no results.

Revision history for this message
Suman Saha (sumanthegr8est) said :
#9

I'm using a 2007 HP Pavilion a6030in. On googling, I found that my network card is: Intel 82562V
Intel® 82562 10/100 PHY
10/100 Mbps Single port fast Ethernet PHY LCI on Intel ICH chipsets 100BASE-T

Revision history for this message
daniel CURTIS (anoda) said :
#10

Hi Suma. It seems, that your card is using 'e100' module. Maybe try to unplug and plug cable again and load this module;

,-----[ module load ]
| sudo modprobe e100
`-----

Check 'dmesg' command for any errors about e100;

,-----[ checking: ]
| dmesg |grep e100
| modinfo e100
`-----

MTU 9000? Seems pretty much! Maybe 1900 is better? Try to find the information, on which level Linux does support this card. You can also try to install kernel from backport - if you are using Ubuntu 12.04.2 with 3.2.x kernel, you can try to install 3.5.x kernel from Ubuntu 13.04 etc. Maybe with newer kernel your connection will be better? Maybe try Ubuntu 13.04 from LiveCD or another Linux distribution?

Frankly, in my opinion, I would try to change DNS to e.g. google or OpenDNS, but it is only my private opinion.

Revision history for this message
daniel CURTIS (anoda) said :
#11

Hi, sorry for a doubled posts. Last things, that came to my mind; Firsty, try to add 'net.ipv4.tcp_timestamps = 0' value to the '/etc/sysctl.conf' file and reload it with e.g. `sysctl -p` command. Next, you can try to use 'dnsmasq' [1]. If you are using NetworkManager, edit it's conf file in '/etc/NetworkManager/NetworkManager.conf' and see if there is a 'dns=dnsmasq' option. At least, you can edit '/etc/nsswitch.conf' file and try to do some midifications;

,-----[ default Ubuntu nsswitch.conf file ]
| hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
`-----

Try to change 'hosts' option, to something like;

,-----[ nsswitch file ]
| hosts: files dns
`-----

Of course, if all of the above things does not help, please return to the default values and settings!

Cheers.
__________
[1] https://wiki.archlinux.org/index.php/Speeding_up_DNS_with_dnsmasq

Revision history for this message
Suman Saha (sumanthegr8est) said :
#12

Dear Curtis,

Well, I tried modprobe e100, and dmesg gave the following:
[ 0.202003] pci 0000:01:08.0: Firmware left e100 interrupts enabled; disabling
[ 0.535308] ata1: SATA max UDMA/133 abar m1024@0xfdffe000 port 0xfdffe100 irq 40
[ 1.094876] e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI
[ 1.094882] e100: Copyright(c) 1999-2006 Intel Corporation
[ 1.121847] e100 0000:01:08.0: eth0: addr 0xfdefe000, irq 20, MAC addr 00:1a:92:51:b1:8f
[ 15.660154] e100 0000:01:08.0: eth0: NIC Link is Up 100 Mbps Full Duplex
[ 521.992315] e100 0000:01:08.0: eth0: NIC Link is Down
[ 737.992152] e100 0000:01:08.0: eth0: NIC Link is Up 100 Mbps Full Duplex

And I also adjusted MTU to 1900 and changed my DNS to OpenDNS. It did improve my connection. I am now getting some speed (10-15 kBps intermittently). But the software center is still not updating its cache and hence I'm not able to download any apps. Also, webpages are still taking a long time to load. So basically that intermittent rise is not helping.

The things you mentioned in Comment #11, were not of any help, rather they just brought the old order back. So I changed them back.

Revision history for this message
daniel CURTIS (anoda) said :
#13

Hi Suman. Honestly, I do not have any idea what you could do to solve your problem. Sorry. I thought that we try everything. By the way; did you try to install 3.5 kernel from 12.10 Release? It is available as a backport and it's really easy to remove if you want it. And what about you network card? Did you check on what level it is supported by Linux?

Revision history for this message
Suman Saha (sumanthegr8est) said :
#14

Dear Curtis,
Well I do appreciate all that you have done to help me. And no need for an apology, you did whatever you could. Atleast I can now open some webpages. Thanks for that. And yes please let me know if you ever drop by Kolkata, India. Thanks again.

Revision history for this message
daniel CURTIS (anoda) said :
#15

Dear Suman. Thanks for your understanding. Maybe there is something more, to do? And what about other kernel or Ubuntu version? Are you planning such solution? And at least; please check what is the level on which your network card is supported by Linux kernel. It could be pretty important.

Sorry once again. I hope, that you will be able to resolve your issue.

Best regards!

Revision history for this message
Launchpad Janitor (janitor) said :
#16

This question was expired because it remained in the 'Open' state without activity for the last 15 days.