码迷,mamicode.com
首页 > 其他好文 > 详细

ls | ethtool

时间:2017-07-13 16:12:37      阅读:189      评论:0      收藏:0      [点我收藏+]

标签:print   全双工   duplex   等等   注册   相关信息   too   网卡   ethtool   

ls -lhS *.mp4|awk ‘{if($5>4000000) print $0}‘
ls -lhS *.mp4|awk ‘{if(($5>100000) && ($5<2000000)) print $0}‘

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、设置网口半/全双工、设置网口是否自协商
Eg:
ethtool -s em1 speed 100 duplex full autoneg off

ls | ethtool

标签:print   全双工   duplex   等等   注册   相关信息   too   网卡   ethtool   

原文地址:http://www.cnblogs.com/Oliver.net/p/7160149.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!