EFW Support

Support => Hardware Support => Topic started by: as3 on Friday 09 October 2015, 12:58:18 am



Title: Set NIC parameters at boot (ethtool) - Endian 3.0.5b1
Post by: as3 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


Title: Re: Set NIC parameters at boot (ethtool) - Endian 3.0.5b1
Post by: as3 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