zoukankan      html  css  js  c++  java
  • network / ethtool / eno

    s

    记录千兆网卡变百兆速率事件(linux)以及查询、恢复方式

    https://blog.csdn.net/yinhaoxu1/article/details/79937173

    事件:

        某日跑着数据,突然发现千兆网卡变成了百兆速率(网卡低速),导致各种超时异常。

    查询:  

        使用atop查看网卡的速率变成了 100Mbps !! 

        没有atop的可以使用ethtool  +网卡名 查看

    使用ethtool命令。

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

            举例:

        ethtool enp5s0

        

    解决:

        t1:如果自己没有做过配置文件或者其他设定,则可以重置网卡自适应模式进行恢复

     t2:  把网线重新拔掉再插上,重启网卡

     t3: 如果在某些地方更改则需要重新复原

       比如a).ethtool –s ethX [speed 1000]

            b). 配置文添加:ETHTOOL_OPTS="speed 1000 duplex full autoneg on" 

    详细参数参考:(//后面是注释,是原文的译文)

    ethtool ethX /

    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] //设置网口速率10/100/1000M

    [duplex half|full] //设置网口半/全双工

    [autoneg on|off] //设置网口是否自协商

    [port tp|aui|bnc|mii] //设置网口类型

    end

  • 相关阅读:
    OpenGL 五
    OpenGL 四
    对UICollectionView的学习
    KVO的简单用法
    css在各浏览器中的兼容问题
    iOS学习笔记---网络请求
    UI学习笔记---第十六天XML JSON解析
    ui学习笔记---第十五天数据库
    UI学习笔记---第十四天数据持久化
    UI学习笔记---第十三天可视化设计 XIB, StoryBoard
  • 原文地址:https://www.cnblogs.com/lindows/p/14268993.html
Copyright © 2011-2022 走看看