Linux ethtool命令,linuxethtool命令


一、简介

ethtool 是用于查询及设置网卡参数的命令。

 

二、常用选项

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

 

三、实例

http://blog.chinaunix.net/uid-20639775-id-154546.html
http://blog.chinaunix.net/uid-21768364-id-4370448.html

相关内容