How to Change NIC speed without restarting the Linux AS 3 server?????

Posted on 2007-10-12
Last Modified: 2013-12-16
I would like to change the NIC settings from 100 to 1000, Auto_negotiation Yes without restarting the  Linux Machine. Please see the details below

# uname -r
# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 3 (Taroon Update 6)
#ethtool eth0
Settings for eth0:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
        Supports auto-negotiation: Yes
        Advertised link modes:  Not reported
        Advertised auto-negotiation: No
        Speed: 100Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: off
        Supports Wake-on: g
        Wake-on: d
        Link detected: yes
# cat /etc/modules.conf
alias eth0 bcm5700
options eth0 line_speed=100 auto_speed=0 full_duplex=1
alias eth1 bcm5700
options eth1 line_speed=100 auto_speed=0 full_duplex=1
alias scsi_hostadapter cciss
alias usb-controller usb-ohci
options bond0 miimon=100 mode=active-backup
alias bond0 bonding
Question by:bennisabraham
    LVL 30

    Expert Comment

    by:Kerem ERSOY

    You can use ethtool command for modifying speed:
    ethtool -s eth0 speed 100 duplex full autoneg on

    The resuls are immediate you don't need to reboot. But for the next boot you can either remove:
    options eth0 line_speed=100 auto_speed=0 full_duplex=1
    options eth1 line_speed=100 auto_speed=0 full_duplex=1

    Lines from your /etc/modules conf thiswill force your adapter to autonegotiation od change the "line_speed=100" to "line_speed=1000" if you want to do it manually.

    LVL 30

    Accepted Solution

    sorry I mean:
    ethtool -s eth0 speed 1000 duplex full autoneg on

    In the previous post I mestakenly told "speed 100".

    The best way is to remove optinos statements from your /etc/modules.conf.
    You might as well use this command :

    ethtool -s eth0 autoneg on

    This will negotiate he best speed your switch supports automatically. Here are the options for ethtool set command:

    ethtool -s DEVNAME \
                    [ speed 10|100|1000 ] \
                    [ duplex half|full ]    \
                    [ port tp|aui|bnc|mii|fibre ] \
                    [ autoneg on|off ] \
                    [ phyad %d ] \
                    [ xcvr internal|external ] \
                    [ wol p|u|m|b|a|g|s|d... ] \
                    [ sopass %x:%x:%x:%x:%x:%x ] \
                    [ msglvl %d ]


    Author Comment

    How would i set as Auto Auto for this server
    LVL 30

    Expert Comment

    by:Kerem ERSOY
    You want to set it back to auto ??

    Then you'd issue:
    ethtool -s eth0 autoneg on

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
    1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
    This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now