Koozali.org: home of the SME Server

USB-Ethernet connection getting stuck

Offline holck

  • ****
  • 317
  • +1/-0
USB-Ethernet connection getting stuck
« on: February 06, 2011, 09:21:55 AM »
For one of my ethernet ports (the one connected to the local network), I use a D-Link DUB-E100 adapter, because my server does not have room for two "real" ethernet-cards. For getting the adapter to work, I use the usbnet driver module from http://www.linux-usb.org/usbnet/. In the file /etc/modprobe.conf, I have changed the line "alias eth0 tg3" to "alias eth0 usbnet"

I compile and install the module, it can be inserted and removed by using the modprobe command, and most of the time it works fine. But lately - maybe due to higher traffic - I have begun to often experience problems. In /var/log/messages it looks like this:
Code: [Select]
Feb  6 07:12:14 anton kernel: NETDEV WATCHDOG: eth0: transmit timed out
Feb  6 07:12:54 anton last message repeated 4 times
Feb  6 07:14:04 anton last message repeated 7 times
Feb  6 07:14:22 anton dhcpd: DHCPDISCOVER from 00:24:d2:be:ad:82 (G-Pc) via eth0
Feb  6 07:14:23 anton dhcpd: DHCPOFFER on 192.168.10.236 to 00:24:d2:be:ad:82 (G-Pc) via eth0
Feb  6 07:14:23 anton dhcpd: send_packet: No buffer space available
Feb  6 07:14:25 anton dhcpd: DHCPDISCOVER from 00:24:d2:be:ad:82 (G-Pc) via eth0
Feb  6 07:14:25 anton dhcpd: DHCPOFFER on 192.168.10.236 to 00:24:d2:be:ad:82 (G-Pc) via eth0
Feb  6 07:14:34 anton dhcpd: DHCPDISCOVER from 00:24:d2:be:ad:82 (G-Pc) via eth0
Feb  6 07:14:34 anton dhcpd: DHCPOFFER on 192.168.10.236 to 00:24:d2:be:ad:82 (G-Pc) via eth0
Feb  6 07:15:14 anton last message repeated 7 times
Feb  6 07:16:24 anton last message repeated 7 times
Feb  6 07:17:34 anton last message repeated 7 times
... and all traffic on the internal LAN seems to be dead.

I seem to be able to get things working again by doing something like
Code: [Select]
/sbin/ifconfig eth0 down
/sbin/modprobe -v -r usbnet
/sbin/modprobe -v usbnet
/sbin/ifconfig eth0 up
/sbin/service dhcpd restart

I will be very happy if someone can point me to a more permanent solution.

Any help appreciated
Jesper, Denmark
......

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: USB-Ethernet connection getting stuck
« Reply #1 on: February 06, 2011, 01:41:10 PM »
I suggest you to buy a dual/quad eth nic..