Welcome, Guest. Please login or register.
Did you miss your activation email?
Friday 27 December 2024, 11:19:27 pm

Login with username, password and session length

Get the new Updates directly from Endian  HERE
14262 Posts in 4377 Topics by 6517 Members
Latest Member: Sandro
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 19173 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.047 seconds with 18 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com