ethtool: query or control network driver and hardware settings
- Ethtool Mac Os X
- Ethtool For Os X Sierra
- Ethtool For Os X Catalina
- Ethtool For Os Xenoverse
- Ethtool For Os X Catalina
- Os X 10.11.4
- Os X Download For Mac
Command to display ethtool
manual in Linux: $ man 8 ethtool
NAME
ethtool - query or control network driver and hardware settings
Fork of Meize's RealtekRTL8111 Network driver for OS X - RehabMan/OS-X-Realtek-Network. Ethtool is a Network Interface Card configuration command that allows us to retrieve information and change our NIC settings. The information includes Speed, Duplex, Auto-Negotiation, and many other parameters. To continue, we have to know the name of the network interface card. To get the name of the network interface card, just run.
SYNOPSIS
IBM Developer 正在整合其语言站点组合。 请根据您未来的需求考虑以下资源: IBM Developer 网站 (英文) IBM 中国网站 IBM. Currently, my NIC enx00e04c42a3fe is working in Full duplex mode at 100 Mbps speed. To change it, let’s say in Full duplex mode at 10 Mbps speed, run ethtool as follows: $ sudo ethtool -s enx00e04c42a3fe speed 10 duplex full autoneg off. As you can see, the speed is changed to 10Mbps and the duplex mode is full.
ethtoolis used to query and control network device driver and hardwaresettings, particularly for wired Ethernet devices.
devnameis the name of the network device on which ethtool should operate.
OPTIONS
ethtoolwith a single argument specifying the device name prints currentsettings of the specified device.
-h --helpShows a short help message.--versionShows the ethtool version number.-a --show-pauseQueries the specified Ethernet device for pause parameter information.-A --pauseChanges the pause parameters of the specified Ethernet device.- autonegon|off
- Specifies whether pause autonegotiation should be enabled.
- rxon|off
- Specifies whether RX pause should be enabled.
- txon|off
- Specifies whether TX pause should be enabled.
-c --show-coalesceQueries the specified network device for coalescing information.-C --coalesceChanges the coalescing settings of the specified network device.-g --show-ringQueries the specified network device for rx/tx ring parameter information.-G --set-ringChanges the rx/tx ring parameters of the specified network device.- rxN
- Changes the number of ring entries for the Rx ring.
- rx-miniN
- Changes the number of ring entries for the Rx Mini ring.
- rx-jumboN
- Changes the number of ring entries for the Rx Jumbo ring.
- txN
- Changes the number of ring entries for the Tx ring.
-i --driverQueries the specified network device for associated driver information.-d --register-dumpRetrieves and prints a register dump for the specified network device.The register format for some devices is known and decoded othersare printed in hex.When raw is enabled, then ethtool dumps the raw register data to stdout.Iffileis specified, then use contents of previous raw register dump, ratherthan reading from the device.-e --eeprom-dumpRetrieves and prints an EEPROM dump for the specified network device.When raw is enabled, then it dumps the raw EEPROM data to stdout. Thelength and offset parameters allow dumping certain portions of the EEPROM.Default is to dump the entire EEPROM.- rawon|off
- offsetN
- lengthN
-E --change-eepromIf value is specified, changes EEPROM byte for the specified network device.offset and value specify which byte and it's new value. If value is notspecified, stdin is read and written to the EEPROM. The length and offsetparameters allow writing to certain portions of the EEPROM.Because of the persistent nature of writing to the EEPROM, a device-specificmagic key must be specified to prevent the accidental writing to the EEPROM.-k --show-features --show-offloadQueries the specified network device for the state of protocoloffload and other features.-K --features --offloadChanges the offload parameters and other features of the specifiednetwork device. The following feature names are built-in and othersmay be defined by the kernel.- rxon|off
- Specifies whether RX checksumming should be enabled.
- txon|off
- Specifies whether TX checksumming should be enabled.
- sgon|off
- Specifies whether scatter-gather should be enabled.
- tsoon|off
- Specifies whether TCP segmentation offload should be enabled.
- ufoon|off
- Specifies whether UDP fragmentation offload should be enabled
- gsoon|off
- Specifies whether generic segmentation offload should be enabled
- groon|off
- Specifies whether generic receive offload should be enabled
- lroon|off
- Specifies whether large receive offload should be enabled
- rxvlanon|off
- Specifies whether RX VLAN acceleration should be enabled
- txvlanon|off
- Specifies whether TX VLAN acceleration should be enabled
- ntupleon|off
- Specifies whether Rx ntuple filters and actions should be enabled
- rxhashon|off
- Specifies whether receive hashing offload should be enabled
-p --identifyInitiates adapter-specific action intended to enable an operator toeasily identify the adapter by sight. Typically this involvesblinking one or more LEDs on the specific network port.- [ N]
- Length of time to perform phys-id, in seconds.
-P --show-permaddrQueries the specified network device for permanent hardware address.-r --negotiateRestarts auto-negotiation on the specified Ethernet device, ifauto-negotiation is enabled.-S --statisticsQueries the specified network device for NIC- and driver-specificstatistics.--phy-statisticsQueries the specified network device for PHY specific statistics.-t --testExecutes adapter selftest on the specified network device. Possible test modes are:- offline
- Perform full set of tests, possibly interrupting normal operationduring the tests,
- online
- Perform limited set of tests, not interrupting normal operation,
- external_lb
- Perform full set of tests, as for offline, and additionally anexternal-loopback test.
-s --changeAllows changing some or all settings of the specified network device.All following options only apply if
-swas specified.
speedNSet speed in Mb/s.ethtoolwith just the device name as an argument will show you the supported device speeds.duplexhalf|fullSets full or half duplex mode.porttp|aui|bnc|miiSelects device port.mdixauto|on|offSelects MDI-X mode for port. May be used to override the automaticdetection feature of most adapters. An argument of auto meansautomatic detection of MDI status, on forces MDI-X (crossover)mode, while off means MDI (straight through) mode. The drivershould guarantee that this command takes effect immediately, and ifnecessary may reset the link to cause the change to take effect.autonegon|offSpecifies whether autonegotiation should be enabled. Autonegotiation is enabled by default, but in some network devices may have troublewith it, so you can disable it if really necessary. advertiseNSets the speed and duplex advertised by autonegotiation. The argument isa hexadecimal value using one or a combination of the following values:
0x001 | 10baseT Half |
|
0x002 | 10baseT Full |
|
0x004 | 100baseT Half |
|
0x008 | 100baseT Full |
|
0x010 | 1000baseT Half | (not supported by IEEE standards)
|
0x020 | 1000baseT Full |
|
0x20000 | 1000baseKX Full |
|
0x20000000000 | 1000baseX Full |
|
0x8000 | 2500baseX Full | (not supported by IEEE standards)
|
0x1000 | 10000baseT Full |
|
0x40000 | 10000baseKX4 Full |
|
0x80000 | 10000baseKR Full |
|
0x40000000000 | 10000baseCR Full |
|
0x80000000000 | 10000baseSR Full |
|
0x100000000000 | 10000baseLR Full |
|
0x200000000000 | 10000baseLRM Full |
|
0x400000000000 | 10000baseER Full |
|
0x200000 | 20000baseMLD2 Full | (not supported by IEEE standards)
|
0x400000 | 20000baseKR2 Full | (not supported by IEEE standards)
|
0x80000000 | 25000baseCR Full |
|
0x100000000 | 25000baseKR Full |
|
0x200000000 | 25000baseSR Full |
|
0x800000 | 40000baseKR4 Full |
|
0x1000000 | 40000baseCR4 Full |
|
0x2000000 | 40000baseSR4 Full |
|
0x4000000 | 40000baseLR4 Full |
|
0x400000000 | 50000baseCR2 Full |
|
0x800000000 | 50000baseKR2 Full |
|
0x10000000000 | 50000baseSR2 Full |
|
0x1000000000 | 100000baseKR4 Full |
|
0x2000000000 | 100000baseSR4 Full |
|
0x4000000000 | 100000baseCR4 Full |
|
0x8000000000 | 100000baseLR4_ER4 Full |
|
phyadNPHY address.xcvrinternal|externalSelects transceiver type. Currently only internal and external can bespecified, in the future further types might be added.wolp|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 PHY 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.
|
sopass xx:yy:zz:aa:bb:ccSets the SecureOn™ password. The argument to this option must be 6bytes in Ethernet MAC hex format (xx:yy:zz:aa:bb:cc).msglvlN
msglvltypeon|off...
Sets the driver message type flags by name or number.
typenames the type of message to enable or disable;
N specifies thenew flags numerically. The defined type names and numbers are:
drv | 0x0001 General driver status |
|
probe | 0x0002 Hardware probing |
|
link | 0x0004 Link state |
|
timer | 0x0008 Periodic status check |
|
ifdown | 0x0010 Interface being brought down |
|
ifup | 0x0020 Interface being brought up |
|
rx_err | 0x0040 Receive error |
|
tx_err | 0x0080 Transmit error |
|
tx_queued | 0x0100 Transmit queueing |
|
intr | 0x0200 Interrupt handling |
|
tx_done | 0x0400 Transmit completion |
|
rx_status | 0x0800 Receive completion |
|
pktdata | 0x1000 Packet contents |
|
hw | 0x2000 Hardware status |
|
wol | 0x4000 Wake-on-LAN status |
|
The precise meanings of these type flags differ between drivers.
-n -u --show-nfc --show-ntupleRetrieves receive network flow classification options or rules.
rx-flow-hashtcp4|udp4|ah4|esp4|sctp4|tcp6|udp6|ah6|esp6|sctp6Retrieves the hash options for the specified flow type.
tcp4 | TCP over IPv4
|
udp4 | UDP over IPv4
|
ah4 | IPSEC AH over IPv4
|
esp4 | IPSEC ESP over IPv4
|
sctp4 | SCTP over IPv4
|
tcp6 | TCP over IPv6
|
udp6 | UDP over IPv6
|
ah6 | IPSEC AH over IPv6
|
esp6 | IPSEC ESP over IPv6
|
sctp6 | SCTP over IPv6
|
ruleNRetrieves the RX classification rule with the given ID.-N -U --config-nfc --config-ntupleConfigures receive network flow classification options or rules.
rx-flow-hashtcp4|udp4|ah4|esp4|sctp4|tcp6|udp6|ah6|esp6|sctp6:m|v|t|s|d|f|n|r...Configures the hash options for the specified flow type.
m | Hash on the Layer 2 destination address of the rx packet.
|
v | Hash on the VLAN tag of the rx packet.
|
t | Hash on the Layer 3 protocol field of the rx packet.
|
s | Hash on the IP source address of the rx packet.
|
d | Hash on the IP destination address of the rx packet.
|
f | Hash on bytes 0 and 1 of the Layer 4 header of the rx packet.
|
n | Hash on bytes 2 and 3 of the Layer 4 header of the rx packet.
|
r | Discard all packets of this flow type. When this option is set, allother options are ignored.
|
flow-type ether|ip4|tcp4|udp4|sctp4|ah4|esp4|ip6|tcp6|udp6|ah6|esp6|sctp6Inserts or updates a classification rule for the specified flow type.
ether | Ethernet
|
ip4 | Raw IPv4
|
tcp4 | TCP over IPv4
|
udp4 | UDP over IPv4
|
sctp4 | SCTP over IPv4
|
ah4 | IPSEC AH over IPv4
|
esp4 | IPSEC ESP over IPv4
|
ip6 | Raw IPv6
|
tcp6 | TCP over IPv6
|
udp6 | UDP over IPv6
|
sctp6 | SCTP over IPv6
|
ah6 | IPSEC AH over IPv6
|
esp6 | IPSEC ESP over IPv6
|
For all fields that allow both a value and a mask to be specified, themask may be specified immediately after the value using the mkeyword, or separately using the field name keyword with -maskappended, e.g. src-mask.
srcxx:yy:zz:aa:bb:cc[mxx:yy:zz:aa:bb:cc]Includes the source MAC address, specified as 6 bytes in hexadecimalseparated by colons, along with an optional mask. Valid only forflow-type ether.dstxx:yy:zz:aa:bb:cc[mxx:yy:zz:aa:bb:cc]Includes the destination MAC address, specified as 6 bytes in hexadecimalseparated by colons, along with an optional mask. Valid only forflow-type ether.protoNfR [fPmNfR]fPIncludes the Ethernet protocol number (ethertype) and an optional mask.Valid only for flow-type ether.src-ipip-address[mip-address]Specify the source IP address of the incoming packet to match along withan optional mask. Valid for all IP based flow-types.dst-ipip-address[mip-address]Specify the destination IP address of the incoming packet to match alongwith an optional mask. Valid for all IP based flow-types.tosNfR [fPmNfR]fPSpecify the value of the Type of Service field in the incoming packet tomatch along with an optional mask. Applies to all IPv4 based flow-types.tclassNfR [fPmNfR]fPSpecify the value of the Traffic Class field in the incoming packet tomatch along with an optional mask. Applies to all IPv6 based flow-types.l4protoNfR [fPmNfR]fPIncludes the layer 4 protocol number and optional mask. Valid only forflow-types ip4 and ip6.src-portNfR [fPmNfR]fPSpecify the value of the source port field (applicable to TCP/UDP packets)in the incoming packet to match along with an optional mask. Valid forflow-types ip4, tcp4, udp4, and sctp4 and their IPv6 equivalents.dst-portNfR [fPmNfR]fPSpecify the value of the destination port field (applicable to TCP/UDPpackets)in the incoming packet to match along with an optional mask.Valid for flow-types ip4, tcp4, udp4, and sctp4 and their IPv6 equivalents.spiNfR [fPmNfR]fPSpecify the value of the security parameter index field (applicable toAH/ESP packets)in the incoming packet to match along with an optionalmask. Valid for flow-types ip4, ah4, and esp4 and their IPv6 equivalents.l4dataNfR [fPmNfR]fPSpecify the value of the first 4 Bytes of Layer 4 in the incoming packet tomatch along with an optional mask. Valid for ip4 and ip6 flow-types.vlan-etypeNfR [fPmNfR]fPIncludes the VLAN tag Ethertype and an optional mask.vlanNfR [fPmNfR]fPIncludes the VLAN tag and an optional mask.user-defNfR [fPmNfR]fPIncludes 64-bits of user-specific data and an optional mask.dst-macxx:yy:zz:aa:bb:cc[mxx:yy:zz:aa:bb:cc]Includes the destination MAC address, specified as 6 bytes in hexadecimalseparated by colons, along with an optional mask.Valid for all IP based flow-types.actionNSpecifies the Rx queue to send packets to, or some other action.
-1 | Drop the matched flow
|
0 or higher | Rx queue to route the flow
|
locNSpecify the location/ID to insert the rule. This will overwriteany rule present in that location and will not go through anyof the rule ordering process.deleteNDeletes the RX classification rule with the given ID.-w --get-dumpRetrieves and prints firmware dump for the specified network device.By default, it prints out the dump flag, version and length of the dump data.Whendatais indicated, then ethtool fetches the dump data and directs it to afile.-W --set-dumpSets the dump flag for the device.-T --show-time-stampingShow the device's time stamping capabilities and associated PTPhardware clock.-x --show-rxfh-indir --show-rxfhRetrieves the receive flow hash indirection table and/or RSS hash key.-X --set-rxfh-indir --rxfhConfigures the receive flow hash indirection table and/or RSS hash key.- hkey
- Sets RSS hash key of the specified network device. RSS hash key should be of device supported length.Hash key format must be in xx:yy:zz:aa:bb:cc format meaning both the nibbles of a byte should be mentionedeven if a nibble is zero.
- equal N
- Sets the receive flow hash indirection table to spread flows evenlybetween the first N receive queues.
- weightW0 W1 ...
- Sets the receive flow hash indirection table to spread flows betweenreceive queues according to the given weights. The sum of the weightsmust be non-zero and must not exceed the size of the indirection table.
- default
- Sets the receive flow hash indirection table to its default value.
-f --flashWrite a firmware image to flash or other non-volatile memory on thedevice.- file
- Specifies the filename of the firmware image. The firmware must firstbe installed in one of the directories where the kernel firmwareloader or firmware agent will look, such as /lib/firmware.
- N
- If the device stores multiple firmware images in separate regions ofnon-volatile memory, this parameter may be used to specify whichregion is to be written. The default is 0, requesting that allregions are written. All other values are driver-dependent.
-l --show-channelsQueries the specified network device for the numbers of channels it has.A channel is an IRQ and the set of queues that can trigger that IRQ.-L --set-channelsChanges the numbers of channels of the specified network device.- rxN
- Changes the number of channels with only receive queues.
- txN
- Changes the number of channels with only transmit queues.
- otherN
- Changes the number of channels used only for other purposes e.g. link interrupts or SR-IOV co-ordination.
- combinedN
- Changes the number of multi-purpose channels.
-m --dump-module-eeprom --module-infoRetrieves and if possible decodes the EEPROM from plugin modules, e.g SFP+, QSFP.If the driver and module support it, the optical diagnostic information is alsoread and decoded.--show-priv-flagsQueries the specified network device for its private flags. Thenames and meanings of private flags (if any) are defined by eachnetwork device driver.--set-priv-flagsSets the device's private flags as specified.
flagon|offSets the state of the named private flag.
--show-eeeQueries the specified network device for its support of Energy-EfficientEthernet (according to the IEEE 802.3az specifications)--set-eeeSets the device EEE behaviour.- eeeon|off
- Enables/disables the device support of EEE.
- tx-lpion|off
- Determines whether the device should assert its Tx LPI.
- advertiseN
- Sets the speeds for which the device should advertise EEE capabilities.Values are as for--change advertise
- tx-timerN
- Sets the amount of time the device should stay in idle mode prior to assertingits Tx LPI (in microseconds). This has meaning only when Tx LPI is enabled.
BUGS
Not supported (in part or whole) on all network drivers.
AUTHOR
ethtoolwas written by David Miller.
Modifications by Jeff Garzik, Tim Hockin,Jakub Jelinek,Andre Majorel,Eli Kupermann,Scott Feldman,Andi Kleen,Alexander Duyck,Sucheta Chakraborty,Jesse Brandeburg,Ben Hutchings.
AVAILABILITY
Os X 10.11.4
ethtoolis available fromhttp://www.kernel.org/pub/software/network/ethtool/¸e®?
Os X Download For Mac
Pages related to ethtool
- ether-wake (8) - A tool to send a Wake-On-LAN "Magic Packet"
- etapro (8) - Driver for ETA UPS equipment
- etckeeper (8) - store /etc in git, mercurial, bazaar, or darcs
- ettercap (8) - A multipurpose sniffer/content filter for man in the middle attacks
- ettercap_curses (8) - Man page for the Ncurses GUI.
- ettercap_plugins (8) - A collection of plugins for ettercap
- etterfilter (8) - Filter compiler for ettercap content filtering engine
- pethtool (8) - Display or change ethernet card settings
Linux man pages generated by: SysTutorials. Linux Man Pages Copyright Respective Owners. Site Copyright © SysTutorials. All Rights Reserved.