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) 12 queries took 3 ms
NrQueryErrorAffectedNum. rowsTook (ms)
1DESCRIBE `posts`17171
2DESCRIBE `comments`11111
3DESCRIBE `tags`220
4DESCRIBE `categories`220
5DESCRIBE `posts_tags`220
6DESCRIBE `categories_posts`220
7SELECT `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
8SELECT `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
9SELECT `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
10SELECT `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
11UPDATE `posts` AS `Post` SET `Post`.`hitcount` = Post.hitcount + 1 WHERE `Post`.`id` = 4910
12SELECT tag, COUNT(*) AS tag_cnt FROM posts_tags t2p INNER JOIN tags Tag ON t2p.tag_id = Tag.id GROUP BY tag49491