ethtool 是用于查询及设置网卡参数的命令。
使用概要:
ethtool enp5s0fx //查询ethx网口基本设置,其中 x 是对应网卡的编号,如enp5s0fx 等等
ethtool –h //显示ethtool的命令帮助(help)
ethtool –i enp5s0fx//查询ethX网口的相关信息
ethtool –d enp5s0fx//查询ethX网口注册性信息
ethtool –r enp5s0fx//重置ethX网口到自适应模式
ethtool –S enp5s0fx//查询ethX网口收发包统计
ethtool –s enp5s0fx [speed 10|100|1000] [duplex half|full] [autoneg on|off] //设置网口速率10/100/1000M、设置网口半/全双工、设置网口是否自协商