Find your ethernet driver under Debian

The following is a break down of the various Debian and Ubuntu commands that can be used to figure out what ethernet driver you are currently running.

lspci

If you have a PCI ethernet device the lspci command can be used to find your ethernet adapter, for example :-

Show Plain Text
PHP code
  1. 00:11.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10)

ethtool

Also ethtool -i eth0 can be used, an example output is as follows :-

Show Plain Text
Text code
  1. driver: pcnet32
  2. version: 1.33
  3. firmware-version:
  4. bus-info: 0000:00:11.0

dmesg

The command dmesg | grep eth0 can also be used to see what the kernel has loaded for your ethernet adapter, example out is as follows :-

Show Plain Text
Text code
  1. [   15.033998] eth0: registered as PCnet/PCI II 79C970A

Ethernet adapter errors

The commands netstat -s and ifconfig -a can be used to see if your adapter has been experiencing any communication issues.

sysctr

The command sysctr can be used to set and get the configured kernel settings, for example to figure out what your TCP_KEEPALIVE settings are run the command sysctr -a | less this will output something similar to the following :-

Show Plain Text
PHP code
  1. ...
  2. net.ipv4.tcp_keepalive_intvl = 75
  3. net.ipv4.tcp_keepalive_probes = 9
  4. net.ipv4.tcp_keepalive_time = 7200
  5. ...
Filed under: Notes, Linux  Tags: Debian, Ubuntu

0 Responses to “Find your ethernet driver under Debian”

Sorry, comments have been closed for this post.