####Table of Contents
- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with ethtool
- [What ethtool affects](#what-<%= metadata.name %>-affects)
- Setup requirements
- [Beginning with ethtool](#beginning-with-<%= metadata.name %>)
- Usage - Configuration options and additional functionality
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
This module enables you to set settings on your ethernet interfaces using the ethtool command.
You must turn pluginsync on to use this module as it is implemented as a custom type and provider
-
This module will only call the ethtool utility, so will only affect settings on already configured network interfaces. It will not adjust the settings which interfaces are brought up with.
-
This can be DANGEROUS you can use this module to break the networking on your servers.
ethtool { 'eth0':
.. put options here ..
}
Example usage with the most commonly used options:
ethtool { 'eth0':
speed => '100',
duplex => 'full',
tso => 'disabled',
autonegotiate_tx => 'disabled',
autonegotiate_rx => 'disabled',
}
You can use the puppet class to (optionally) install ethtool for your, and enforce ordering so that the ethtool type is only used after the ethtool package is available:
include ethtool
For when you don't want it to install ethtool for you:
class { 'ethtool': ensure_installed => false }
Note that not all interfaces support the querying or setting of all of these properties! Which settings and properties are available will depend on your ethernet card and driver!
The speed of the interface: auto/10/100/1000. Note that not all speeds are supported on every interface
If duplex transmission should be enabled on the interface. Possible values are full half or auto.
If TCP segment offload is enabled or disabled for this interface
Specifies whether large receive offload should be enabled or disabled
Specifies whether UDP fragmentation offload should be enabled or disabled
Specifies whether generic segmentation offload should be enabled
Specifies whether generic receive offload should be enabled
Specifies whether scatter_gather should be enabled
Specifies whether RX checksumming should be enabled
Specifies whether TX checksumming should be enabled
If autonegotiation (PAUSE frames) are enabled or disabled
If autonegotiation is enabled or disabled for transmitting
If autonegotiation is enabled or disabled for receiving
Specifies whether rx-vlan-offload should be disabled
Specifies whether tx-vlan-offload should be disabled
This defaults to true. If your ethernet card doesn't appear to support a setting then we don't try to set it, which means that you can set the settings you want generally, but they'll be ignored on NICs which don't support those settings.
If you'd like puppet to try to set settings which can't be read anyway (and throw an error if this fails), then you can set this parameter to true.
##Limitations
Only works on Linux.
Currently only manages a subset of the whole ethtool functionality.
Doesn't support puppet resource querying of resource state.
Doesn't cache properties or use the flush interface, so makes one call to ethtool per property..
##Development
This module works for what it does, but will not fulfil everyone's needs.
Please feel free to patch and send pull requests