EFW Support
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
Tuesday 19 November 2024, 09:20:44 am
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
The Latest Endian Firewall is now available for download
HERE
14258
Posts in
4377
Topics by
6515
Members
Latest Member:
hulteends
Search:
Advanced search
EFW Support
Support
Hardware Support
Set NIC parameters at boot (ethtool) - Endian 3.0.5b1
0 Members and 1 Guest are viewing this topic.
« previous
next »
Pages:
[
1
]
Author
Topic: Set NIC parameters at boot (ethtool) - Endian 3.0.5b1 (Read 16885 times)
as3
Jr. Member
Offline
Posts: 3
Set NIC parameters at boot (ethtool) - Endian 3.0.5b1
«
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
Posts: 3
Re: Set NIC parameters at boot (ethtool) - Endian 3.0.5b1
«
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
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Announcements
-----------------------------
=> Project News
=> Latest News and Updates
-----------------------------
Support
-----------------------------
=> General Support
=> Installation Support
=> EFW SMTP, HTTP, SIP, FTP Proxy Support
=> VPN Support
=> Hardware Support
-----------------------------
Development
-----------------------------
=> EFW Wishlist
=> Contribute Your Customisations & Modifications
Page created in 0.047 seconds with 18 queries.
Powered by SMF 1.1 RC2
|
SMF © 2001-2005, Lewis Media
Design by
7dana.com