ethtool是一个用于查询和控制以太网设备参数的命令行工具。它可以显示网卡的当前设置和状态,并允许用户修改某些设置,如速度、双工模式、自动协商等。以下是ethtool的详细说明及其显示内容的解释。
安装ethtool
在大多数Linux发行版中,可以通过包管理器安装ethtool。例如:
- Debian/Ubuntu:
sudo apt-get install ethtool - Red Hat/CentOS:
sudo yum install ethtool
基本用法
1. 显示网卡信息
sudo ethtool eth0
这个命令显示网卡eth0的详细信息。
显示内容说明
运行ethtool eth0后的输出示例及解释:
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: No



















