Re: [SLE] ethtool settings on computer boot

From: Sandy Drobic (suse-linux-e_at_japantest.homelinux.com)
Date: 03/01/05

  • Next message: Anders Norrbring: "RE: [SLE] release of Suse 9.3 ?"
    Date: Tue, 01 Mar 2005 21:17:55 +0100
    To: suse-linux-e@suse.com
    
    

    Ryan McCain wrote:

    > I've searched the archives of the mailing list but havent found a
    > definitive answer to this question. How can I issue this command
    > during
    > system boot:
    >
    > ethtool -s eth1 autoneg off duplex full
    >
    > .. I tried putting it in /etc/boot.local, but apparently boot.local
    > runs before the network settings are touched.

    If you really need an ugly hack, here's one possibility:

    Set up a new service (use /etc/init.d/skeleton as a template) where you
    define the required services that need to be started. Something like

    -------/etc/init.d/netduplex-------------
    ### BEGIN INIT INFO
    # Provides: netduplex
    # Required-Start: $network
    # Default-Start: 3 5
    # Default-Stop: 0 1 2 6
    # Short-Description: Set full duplex connection
    # Description: Set full duplex connection after initialization
    ### END INIT INFO

    ethtool -s eth1 autoneg off duplex full
    -------/etc/init.d/netduplex-------------

    chkconfig netduplex on

    There you are, a quick and definitely ugly hack!!

    Sandy

    -- 
    Check the headers for your unsubscription address
    For additional commands send e-mail to suse-linux-e-help@suse.com
    Also check the archives at http://lists.suse.com
    Please read the FAQs: suse-linux-e-faq@suse.com
    

  • Next message: Anders Norrbring: "RE: [SLE] release of Suse 9.3 ?"

    Relevant Pages

    • Custom Shell and Network Settings
      ... should be able to adjust their network settings (DHCP on/off, ... command line based on the information I get from the user. ... DhcpNotifyConfigChange: haven't tried this yet, but it looks like it will ... apparently this works, but you have to reboot the ...
      (microsoft.public.windowsxp.embedded)
    • Re: need a lot of help with rs6000 170 44P AIX 5.3L
      ... PING is just hanging on me. ... I think the first packet message I am ... On my initial install all my network settings were accepted. ... some command line commands. ...
      (comp.unix.aix)
    • Re: [SLE] ethtool settings on computer boot
      ... How can I issue this command ... >runs before the network settings are touched. ... >OS: SLES 8 ... script should contain a virtually identical section. ...
      (SuSE)
    • CreateProcess causes WMI failure
      ... Using a C++ win32 console application we can set various network settings ... using WMI calls. ... When we run this program from the command line it works ...
      (microsoft.public.win32.programmer.wmi)
    • Using WMI to alter network settings
      ... Using a C++ win32 console application we can set various network settings ... using WMI calls. ... When we run this program from the command line it works ...
      (microsoft.public.win32.programmer.networks)