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.
If you have a PCI ethernet device the lspci command can be used to find your ethernet adapter, for example :-Show Plain Text
- 00:11.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10)
Also ethtool -i eth0 can be used, an example output is as follows :-Show Plain Text
- driver: pcnet32
- version: 1.33
- bus-info: 0000:00:11.0
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
- [ 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.
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
- net.ipv4.tcp_keepalive_intvl = 75
- net.ipv4.tcp_keepalive_probes = 9
- net.ipv4.tcp_keepalive_time = 7200