Welcome, Guest. Please login or register.
Did you miss your activation email?
Wednesday 14 November 2018, 10:52:35 pm

Login with username, password and session length

Visit the Official Endian Bug tracker  HERE
13842 Posts in 4211 Topics by 5908 Members
Latest Member: madeliness18
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  Hardware Support
| | |-+  Set NIC parameters at boot (ethtool) - Endian 3.0.5b1
0 Members and 0 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Set NIC parameters at boot (ethtool) - Endian 3.0.5b1  (Read 4145 times)
as3
Jr. Member
*
Offline Offline

Posts: 3


« on: Friday 09 October 2015, 12:58:18 am »

I have an Endian 3.0.5 box and the ISP (providing 100 Mbps Ethernet) has equipment that doesn't do autonegotiation well. I can manually set the RED NIC parameters on the running system with the following command:

ethtool -s eth1 speed 100 duplex full autoneg off

I want that command run at every boot, however. I found old threads for Endian 2.4/2.5 that talk about putting the command into a script called /var/efw/inithooks/start.local. I created that file and chmod'ed it 755. It looks like this (without the leading and trailing dashed dividers):

-------------
#!/bin/bash
/usr/sbin/ethtool -s eth1 speed 100 duplex full autoneg off
-------------

Unfortunately, it doesn't work. The system boots and the NIC is back in autoneg on mode.

Any assistance would be greatly appreciated.

Thx,

AS
Logged
as3
Jr. Member
*
Offline Offline

Posts: 3


« Reply #1 on: Saturday 10 October 2015, 05:15:40 am »

Replying just for anyone else who has this or a similar problem. It seems that /var/efw/inithooks/start.local has been deprecated. Nothing I put in there ever ran at boot time (I tested by 'touch'ing a file in /tmp). Instead, I renamed the file to rc.firewall.local (still in /var/efw/inithooks) and that ran fine. It now runs ethtool at startup and forces the NIC into 100 Mbps and full duplex. Hope that helps someone...

AS
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Page created in 0.078 seconds with 18 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com