← 返回命令列表

Linux command

ethtool 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

ethtool eth0

Example

ethtool -i eth0

Example

ethtool -k eth0

Example

ethtool -S eth0

Blink

ethtool -p eth0 10

Example

ethtool -s eth0 speed 1000 duplex full autoneg off

说明

ethtool displays and modifies Network Interface Controller (NIC) parameters. It provides comprehensive control over Ethernet device settings, allowing administrators to query driver information, link status, hardware capabilities, and configure parameters like speed, duplex mode, and various offload features. The tool is essential for network troubleshooting, performance tuning, and hardware diagnostics. It can enable or disable features like checksumming offload, scatter-gather I/O, and segmentation offloading that affect network throughput and CPU utilization. ethtool works directly with network device drivers, exposing hardware-specific capabilities and statistics not available through standard networking tools.

参数

-i, --driver
Display driver information
-k, --show-features
Show offload and other features
-K, --features
Change offload and other features
-S, --statistics
Show NIC and driver statistics
-p, --identify _seconds_
Blink device LEDs for identification
-s, --change
Change device settings
speed _10|100|1000|10000_
Set link speed in Mbps
duplex _half|full_
Set duplex mode
autoneg _on|off_
Enable/disable auto-negotiation

FAQ

What is the ethtool command used for?

ethtool displays and modifies Network Interface Controller (NIC) parameters. It provides comprehensive control over Ethernet device settings, allowing administrators to query driver information, link status, hardware capabilities, and configure parameters like speed, duplex mode, and various offload features. The tool is essential for network troubleshooting, performance tuning, and hardware diagnostics. It can enable or disable features like checksumming offload, scatter-gather I/O, and segmentation offloading that affect network throughput and CPU utilization. ethtool works directly with network device drivers, exposing hardware-specific capabilities and statistics not available through standard networking tools.

How do I run a basic ethtool example?

Run `ethtool eth0` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -i, --driver do in ethtool?

Display driver information