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.
(default) 5 queries took 0 ms
NrQueryErrorAffectedNum. rowsTook (ms)
1SELECT `Post`.`id`, `Post`.`url`, `Post`.`title`, `Post`.`icon`, `Post`.`metadesc`, `Post`.`metakeys`, `Post`.`categories`, `Post`.`tease`, `Post`.`body`, `Post`.`private_body`, `Post`.`created`, `Post`.`modified`, `Post`.`status`, `Post`.`allow_comments`, `Post`.`tags`, `Post`.`hitcount`, `Post`.`hitcount_rss` FROM `posts` AS `Post` WHERE `Post`.`url` = 'find-your-ethernet-driver-under-debian' LIMIT 1110
2SELECT `Comment`.`id`, `Comment`.`post_id`, `Comment`.`body`, `Comment`.`author`, `Comment`.`url`, `Comment`.`email`, `Comment`.`ip`, `Comment`.`status`, `Comment`.`junk_score`, `Comment`.`created`, `Comment`.`modified` FROM `comments` AS `Comment` WHERE `Comment`.`status` = 2 AND `Comment`.`post_id` = (49) 000
3SELECT `Tag`.`id`, `Tag`.`tag`, `PostsTag`.`post_id`, `PostsTag`.`tag_id` FROM `tags` AS `Tag` JOIN `posts_tags` AS `PostsTag` ON (`PostsTag`.`post_id` = 49 AND `PostsTag`.`tag_id` = `Tag`.`id`) 220
4SELECT `Category`.`id`, `Category`.`category`, `CategoriesPost`.`post_id`, `CategoriesPost`.`category_id` FROM `categories` AS `Category` JOIN `categories_posts` AS `CategoriesPost` ON (`CategoriesPost`.`post_id` = 49 AND `CategoriesPost`.`category_id` = `Category`.`id`) 220
5UPDATE `posts` AS `Post` SET `Post`.`hitcount` = Post.hitcount + 1 WHERE `Post`.`id` = 4910