www.cnblogs.com/ruiyqinrui

开源、架构、Linux C/C++/python AI BI 运维开发自动化运维。 春风桃李花 秋雨梧桐叶。“力尽不知热 但惜夏日长”。夏不惜,秋不获。@ruiY--秦瑞

python爬虫,C编程,嵌入式开发.hadoop大数据,桉树,onenebula云计算架构.linux运维及驱动开发.

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

浅析ubuntu下如何修改网卡网速--将100M网卡改为10M网卡

 公司的路由器可能比较陈旧,机器启动之后,默认网卡是100M的,但是登录QQ经常出现掉线现象,后来得知原来需要将100M网卡降频到10M才能正常使用,果然修改之后thunderbird收发邮件也嗖嗖的了,

luther@gliethttp:~$ sudo apt-get install ethtool net-tools
/*删除luther@gliethttp:~$ sudo ethtool -s eth0 autoneg off  // 不然网络会自动断开,自动重启网卡之后会重新获得100M,所以将导致不能修改10M成功,必须关闭自动.
luther@gliethttp:~$ sudo ethtool -s eth0 speed 10 duplex half
luther@gliethttp:~$ sudo service networking restart */
luther@gliethttp:~$ sudo ethtool -s eth0 speed 10 duplex half autoneg on


=============================================
luther@gliethttp:~$ sudo mii-tool eth0
eth0: negotiated 100baseTx-FD, link ok

luther@gliethttp:~$ sudo ethtool eth0
Settings for eth0:
    Supported ports: [ TP MII ]
    Supported link modes:   10baseT/Half 10baseT/Full
                            100baseT/Half 100baseT/Full
    Supports auto-negotiation: Yes
    Advertised link modes:  10baseT/Half 10baseT/Full
                            100baseT/Half 100baseT/Full
    Advertised auto-negotiation: Yes
    Speed: 100Mb/s
    Duplex: Full
    Port: MII
    PHYAD: 32
    Transceiver: internal
    Auto-negotiation: on
    Supports Wake-on: pumbg
    Wake-on: d
    Current message level: 0x00000007 (7)
    Link detected: yes

(PS:如果因为网络布线问题造成的不稳定,那么只能买个路由器,从稳定的工位作出口路由了[luther.gliethttp])

posted on 2015-11-17 08:17  秦瑞It行程实录  阅读(410)  评论(0编辑  收藏  举报
www.cnblogs.com/ruiyqinrui