ethtool hardware settings
This example configures ethtool hardware settings:
- change auto negotation to 10 or 100Mbps FD
- disable flow control
- add an ipv4 address
- set the link state to
up
{
networking.ifstate = {
enable = true;
settings = {
interfaces.eth0 = {
addresses = [ "192.0.2.1/24" ];
ethtool = {
change = {
autoneg = "on";
# 0x002 10baseT Full
# +0x008 100baseT Full
advertise = 10;
};
pause = {
autoneg = "on";
tx = "off";
rx = "off";
};
};
link = {
kind = "physical";
state = "up";
};
};
};
};
}