<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    gembin

    OSGi, Eclipse Equinox, ECF, Virgo, Gemini, Apache Felix, Karaf, Aires, Camel, Eclipse RCP

    HBase, Hadoop, ZooKeeper, Cassandra

    Flex4, AS3, Swiz framework, GraniteDS, BlazeDS etc.

    There is nothing that software can't fix. Unfortunately, there is also nothing that software can't completely fuck up. That gap is called talent.

    About Me

     

    ethtool and mii-tool

    mii-tool(這是Linux下專門設(shè)置網(wǎng)卡工作模式的命令)
      1. 查看網(wǎng)卡的工作模式,輸入命令:
      #mii-tool -v
      eth0: negotiated 100baseTx-FD, link ok
      product info: vendor 00:aa:00, model 56 rev 0
      basic mode: autonegotiation enabled
      basic status: autonegotiation complete, link ok
      capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
      advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
      link partner: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
      從以上信息中可以看出,這塊網(wǎng)卡工作在100M全雙工自適應(yīng)模式下,“100BaseTx-FD”意為100M Full Duplex。
      2. 更改網(wǎng)卡的工作模式,輸入命令:
      #mii-tool -F media [interface]
      media可選的模式有100baseTx-FD、100baseTx-HD、10baseT-FD、10baseT-HD等。 Interface代表所選擇的網(wǎng)卡,如eth0、eth1等,默認(rèn)為eth0。
      例如,設(shè)置網(wǎng)卡工作在10M半雙工模式下,輸入命令:
      #mii-tool -F 10baseT-HD eth0
      3. 恢復(fù)網(wǎng)卡的自適應(yīng)工作模式,輸入命令:
      #mii-tool -r eth0
      更詳細(xì)的使用方法可以用mii-tool -h來獲得。



    ethtool/mii-tool

    PrintPDF

    Linux LAN card: Find out full duplex / half speed or mode

    Q. How do I find out if my Lan (NIC) card working at full or halt duplex mode / speed under Linux?

    A. LAN card or NIC is use to send and receive data. Technically, we use word Duplex for this functionality. Full duplex means you are able to send and receive data (files) simultaneously. In half duplex, you can either send or receive data at a time (i.e. you cannot send receive data (files) simultaneously). Obviously, full duplex gives you best user experience. However, how can I find out whether I am using full duplex/half duplex speed/mode?
    Task: Find full or half duplex speed

    You can use dmesg command to find out your duplex mode:

    # dmesg | grep -i duplex

    Output:

    eth0: link up, 100Mbps, full-duplex, lpa 0x45E1

    ethtool command

    Uss ethtool to display or change ethernet card settings. To display duplex speed, enter:

    # ethtool eth1

    Output:

    Settings for eth1:
    Supported ports: [ TP ]
    Supported link modes:   10baseT/Half 10baseT/Full
    100baseT/Half 100baseT/Full
    1000baseT/Full
    Supports auto-negotiation: Yes
    Advertised link modes:  10baseT/Half 10baseT/Full
    100baseT/Half 100baseT/Full
    1000baseT/Full
    Advertised auto-negotiation: Yes
    Speed: 10Mb/s
    Duplex: Full
    Port: Twisted Pair
    PHYAD: 0
    Transceiver: internal
    Auto-negotiation: on
    Supports Wake-on: umbg
    Wake-on: g
    Current message level: 0x00000007 (7)
    Link detected: yes

    mii-tool command

    You can also use mii-tool to find out your duplex mode. Type following command at shell prompt:

    # mii-tool


    Output:

    eth0: negotiated 100baseTx-FD flow-control, link ok

    Remember,


    1. 100baseTx-FD: 100Mbps full duplex (FD)
    2. 100baseTx-HD: 100Mbps half duplex (HD)
    3. 10baseT-FD: 10Mbps full duplex (FD)
    4. 10baseT-HD: 10Mbps half duplex (HD)

    mii-tool utility checks or sets the status of a network interface Media Independent Interface (MII) unit. Most fast ethernet adapters use an MII to autonegotiate link speed and duplex setting. If you are using old card then this utility may not work (use dmesg command).

    This utility is useful for forcing specific Ethernet speed and duplex settings too, setup 100Mbps full duplex speed under Linux:

    # mii-tool -F 100baseTx-FD


    Setup 10Mbps half duplex:

    # mii-tool -F 10baseT-HD


    source:

    http://www.cyberciti.biz/faq/howto-setup-linux-lan-card-find-out-full-duplex-half-speed-or-mode/

    posted on 2012-09-07 14:41 gembin 閱讀(978) 評(píng)論(0)  編輯  收藏 所屬分類: Linux

    導(dǎo)航

    統(tǒng)計(jì)

    常用鏈接

    留言簿(6)

    隨筆分類(440)

    隨筆檔案(378)

    文章檔案(6)

    新聞檔案(1)

    相冊(cè)

    收藏夾(9)

    Adobe

    Android

    AS3

    Blog-Links

    Build

    Design Pattern

    Eclipse

    Favorite Links

    Flickr

    Game Dev

    HBase

    Identity Management

    IT resources

    JEE

    Language

    OpenID

    OSGi

    SOA

    Version Control

    最新隨筆

    搜索

    積分與排名

    最新評(píng)論

    閱讀排行榜

    評(píng)論排行榜

    free counters
    主站蜘蛛池模板: 无码免费又爽又高潮喷水的视频 | 三上悠亚在线观看免费| 国产裸模视频免费区无码| 亚洲一级大黄大色毛片| 中文免费观看视频网站| 亚洲免费黄色网址| 中国在线观看免费国语版| 国产.亚洲.欧洲在线| 色www永久免费视频| 欧洲亚洲国产精华液| 亚洲?v女人的天堂在线观看| 国产亚洲日韩在线a不卡| 亚洲欧洲中文日韩av乱码| 丝袜足液精子免费视频| 精品亚洲综合久久中文字幕| 日本免费中文字幕| 亚洲另类图片另类电影| 国产成人精品123区免费视频| 高清免费久久午夜精品| 亚洲AV无码一区二区乱子伦| 91香焦国产线观看看免费| 亚洲三级在线观看| 亚洲高清视频一视频二视频三| 一区二区视频免费观看| 久久精品国产99精品国产亚洲性色 | 国产偷国产偷亚洲清高动态图 | 亚洲成色在线影院| 国产又大又粗又长免费视频| 亚洲国产精品无码久久久秋霞1| 亚洲av区一区二区三| 七色永久性tv网站免费看| 国产亚洲福利在线视频| 国产偷国产偷亚洲高清日韩| 伊人久久免费视频| 亚洲精品国产摄像头| 国产精品V亚洲精品V日韩精品| 18禁成人网站免费观看| 午夜亚洲国产精品福利| 亚洲视频在线观看| 国产jizzjizz免费视频| 精品无码国产污污污免费网站|