zoukankan      html  css  js  c++  java
  • linux下用mii-tool和ethtool 查看网线是否正确连接到网卡

    输入mii-tool可以查看网线是否连接到网卡
    #mii-tool

    1. eth0: negotiated 100baseTx-FD, link ok

    有时驱动可能不支持会出错下列错误
    #mii-tool

    1. SIOCGMIIPHY on 'eth0' failed: Operation not supported
    2. no MII interfaces found

    可以使用ethtool查看
    #ethtool eth0

    1. Settings for eth0:
    2.         Supported ports: [ TP ]
    3.         Supported link modes:   10baseT/Half 10baseT/Full
    4.                                 100baseT/Half 100baseT/Full
    5.                                 1000baseT/Full
    6.         Supports auto-negotiation: Yes
    7.         Advertised link modes:  10baseT/Half 10baseT/Full
    8.                                 100baseT/Half 100baseT/Full
    9.                                 1000baseT/Full
    10.         Advertised auto-negotiation: Yes
    11.         Speed: 100Mb/s
    12.         Duplex: Full
    13.         Port: Twisted Pair
    14.         PHYAD: 0
    15.         Transceiver: internal
    16.         Auto-negotiation: on
    17.         Supports Wake-on: pumbg
    18.         Wake-on: g
    19.         Current message level: 0x00000033 (51)
    20.         Link detected: yes

    Link detected: yes为正常no为失败

  • 相关阅读:
    MTK android flash配置
    MTK平台缩写
    百度员工离职总结:如何做个好员工
    android 分区layout以及虚拟内存布局-小结
    Android eMMC Booting
    Android gingerbread eMMC booting
    Chrome插件开发
    jsonp解决CORS问题
    【好玩】将js代码转为日式表情
    多行文本溢出显示省略号(...)的方法
  • 原文地址:https://www.cnblogs.com/pinganzi/p/5697250.html
Copyright © 2011-2022 走看看