ethtool
ethtool is used for querying settings of an ethernet device and changing them.[1]
Documentation
- man 8 'ethtool' [EN]
Syntax
ethtool [PARAMETER] INTERFACE [OPTION ...]
Parameters
- -s, --change
- Allows changing some or all settings of the specified ethernet device. All following options only apply if -s was specified.
- speed NUMBER
- Set speed in Mb/s. ethtool with just the device name as an argument will show you the supported device speeds.
- duplex half|full
- Sets full or half duplex mode.
- port tp|aui|bnc|mii
- Selects device port.
- autoneg on|off
- Specifies whether autonegotiation should be enabled. Autonegotiation is enabled by default, but in some network devices may have trouble with it, so you can disable it if really necessary.
- wol p|u|m|b|a|g|s|d
- Sets Wake-on-LAN options. Not all devices support this. The argument to this option is a string of characters specifying which options to enable.
- p
- Wake on physical activity.
- u
- Wake on unicast messages.
- m
- Wake on multicast messages.
- b
- Wake on broadcast messages.
- a
- Wake on ARP.
- g
- Wake on 'MagicPacket'.
- s
- Enable 'SecureOn' password for 'MagicPacket'.
- d
- Disable (wake on nothing). This option clears all previous options.
Examples
- Set link speed, duplex mode and autonegotiation
ethtool --change 'eth0' speed 1000 duplex 'full' autoneg 'off'
- Activate Wake-on-LAN
ethtool --change 'eth0' wol 'g'
References
- ↑ man 8 'ethtool'