Hi,
I can desactivate autonegocation after startup with this command :
ethtool -s eth0 speed 100 duplex full autoneg off
But I want to disable on startup.
How can I do that?
Hi,
I can desactivate autonegocation after startup with this command :
ethtool -s eth0 speed 100 duplex full autoneg off
But I want to disable on startup.
How can I do that?
hi @mazareth
You can create and launch a service at the startup as explained here.
Best regards, Jaski
hi @jaski.tx
I know how to add a service.
But i think the autonegociation was done by one of your services and i don’t know which one.
If i put a service after, the autonegociation should be already done. No?
Hi,
To be more explicit,
Where can i find the ETHTOOL_OPTS parameter in the linux filesystem?
If i put these parameters that could be great ”autoneg off speed 100 duplex full”
edit :
maybe the file
root@apalis-imx6:/etc/network/if-up.d# cat zeroconf
could do something?
Yeah, but the service will turn the autoneg off before the module get an IP Address. So what is the issue?
Where can I find the ETHTOOL_OPTS parameter in the linux filesystem?
I didn’t see this in the linux kernel configuration. So I don’t know, where you can find it.
edit : maybe the file root@apalis-imx6:/etc/network/if-up.d# cat zeroconf
I don’t think this is possible.
could do something?
The only solution I know is to use ethtool with the command you provided.
Best regards, Jaski
My solution if someone need it :
add a service
[Unit]
Description=/etc/rc.local Compatibility
ConditionPathExists=/etc/rc.local
[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99
[Install]
WantedBy=multi-user.target
And add the rc.local file
#! /bin/sh
ethtool -s eth0 speed 100 duplex full autoneg off
exit 0
Thanks for the Input. Perfect that you found a solution.