Centos 6.5 to limit the network card speed by Ethtool

Source: Internet
Author: User

Operating Environment:

Centos 6.5 x86_64

Ethtool

Operation Steps:

View Network Port EM1 device information at this time

[Root@ceph-osd-2 ~]# ethtool em1
Settings for EM1:
        supported ports: [TP]
        supported link modes:   10baset/ Half 10baset/full 
                                100baset/half 100baset/full 
                                1000baset/full supported 
        frame pause
        use:no Auto-negotiation:yes
        Advertised link modes:  10baset/half 10baset/full 100baset/half 100baset/full 
                                1000baset/full 
        Advertised pause frame use:no
        advertised Auto-negotiation:yes
        speed:1000mb/s
        Port: Twisted Pair
        phyad:1
        transceiver:internal
        auto-negotiation:on mdi-x
        : Unknown
        Supports Wake-on:g
        wake-on:d
        Link detected:yes


Use Ethtool to display the EM1 port rate, indicating that it cannot be set

[Root@ceph-osd-2 ~]# ethtool-s em1 Speed-cannot advertise speed
100

Later look up the data and set the correct method as follows

#ethtool-S Em1 speed duplex full Autoneg off


View EM1 Network information at this time

[Root@ceph-osd-2 ~]# ethtool em1
Settings for EM1:
        supported ports: [TP]
        supported link modes:   10baset/ Half 10baset/full 
                                100baset/half 100baset/full 
                                1000baset/full supported 
        frame pause
        use:no Auto-negotiation:yes
        Advertised link modes: Not  reported
        advertised pause frame use:no
        advertised Auto-negotiation:no
        speed:100mb/s
        duplex:full
        port:twisted Pair
        phyad:1
        : Internal
        auto-negotiation:off
        mdi-x: Unknown
        Supports wake-on:g
        wake-on:d
        Link detected: Yes


Configuration succeeded


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.