Diferencia entre revisiones de «Comandos de la terminal/ethtool»
Ir a la navegación
Ir a la búsqueda
(Sin diferencias)
|
Revisión actual del 19:39 3 mar 2017
- ethtool --help o -h
- ethtool devNombre
- ethtool --change o -s
- ethtool --show-pause o -a
- ethtool --pause o -A
- ethtool --show-ring o -g
- ethtool --show-features | --show-offload o -k
- ethtool --driver -i
- ethtool --register-dump o -d
- ethtool --test o -t
- ethtool --statistics o -S
- --show-time-stamping o -T
- --show-permaddr o -P
- ethtool --version
- ethtool --flash o -f
ethtool
ethtool -h
[root@tanio ~]# ethtool -h
ethtool version 3.15
Usage:
ethtool DEVNAME Display standard information about device
ethtool -s|--change DEVNAME Change generic options
[ speed %d ]
[ duplex half|full ]
[ port tp|aui|bnc|mii|fibre ]
[ mdix auto|on|off ]
[ autoneg on|off ]
[ advertise %x ]
[ phyad %d ]
[ xcvr internal|external ]
[ wol p|u|m|b|a|g|s|d... ]
[ sopass %x:%x:%x:%x:%x:%x ]
[ msglvl %d | msglvl type on|off ... ]
ethtool -a|--show-pause DEVNAME Show pause options
ethtool -A|--pause DEVNAME Set pause options
[ autoneg on|off ]
[ rx on|off ]
[ tx on|off ]
ethtool -c|--show-coalesce DEVNAME Show coalesce options
ethtool -C|--coalesce DEVNAME Set coalesce options
[adaptive-rx on|off]
[adaptive-tx on|off]
[rx-usecs N]
[rx-frames N]
[rx-usecs-irq N]
[rx-frames-irq N]
[tx-usecs N]
[tx-frames N]
[tx-usecs-irq N]
[tx-frames-irq N]
[stats-block-usecs N]
[pkt-rate-low N]
[rx-usecs-low N]
[rx-frames-low N]
[tx-usecs-low N]
[tx-frames-low N]
[pkt-rate-high N]
[rx-usecs-high N]
[rx-frames-high N]
[tx-usecs-high N]
[tx-frames-high N]
[sample-interval N]
ethtool -g|--show-ring DEVNAME Query RX/TX ring parameters
ethtool -G|--set-ring DEVNAME Set RX/TX ring parameters
[ rx N ]
[ rx-mini N ]
[ rx-jumbo N ]
[ tx N ]
ethtool -k|--show-features|--show-offload DEVNAME Get state of protocol offload and other features
ethtool -K|--features|--offload DEVNAME Set protocol offload and other features
FEATURE on|off ...
ethtool -i|--driver DEVNAME Show driver information
ethtool -d|--register-dump DEVNAME Do a register dump
[ raw on|off ]
[ file FILENAME ]
ethtool -e|--eeprom-dump DEVNAME Do a EEPROM dump
[ raw on|off ]
[ offset N ]
[ length N ]
ethtool -E|--change-eeprom DEVNAME Change bytes in device EEPROM
[ magic N ]
[ offset N ]
[ length N ]
[ value N ]
ethtool -r|--negotiate DEVNAME Restart N-WAY negotiation
ethtool -p|--identify DEVNAME Show visible port identification (e.g. blinking)
[ TIME-IN-SECONDS ]
ethtool -t|--test DEVNAME Execute adapter self test
[ online | offline | external_lb ]
ethtool -S|--statistics DEVNAME Show adapter statistics
ethtool -n|-u|--show-nfc|--show-ntuple DEVNAME Show Rx network flow classification options or rules
[ rx-flow-hash tcp4|udp4|ah4|esp4|sctp4|tcp6|udp6|ah6|esp6|sctp6 |
rule %d ]
ethtool -N|-U|--config-nfc|--config-ntuple DEVNAME Configure Rx network flow classification options or rules
rx-flow-hash tcp4|udp4|ah4|esp4|sctp4|tcp6|udp6|ah6|esp6|sctp6 m|v|t|s|d|f|n|r... |
flow-type ether|ip4|tcp4|udp4|sctp4|ah4|esp4
[ src %x:%x:%x:%x:%x:%x [m %x:%x:%x:%x:%x:%x] ]
[ dst %x:%x:%x:%x:%x:%x [m %x:%x:%x:%x:%x:%x] ]
[ proto %d [m %x] ]
[ src-ip %d.%d.%d.%d [m %d.%d.%d.%d] ]
[ dst-ip %d.%d.%d.%d [m %d.%d.%d.%d] ]
[ tos %d [m %x] ]
[ l4proto %d [m %x] ]
[ src-port %d [m %x] ]
[ dst-port %d [m %x] ]
[ spi %d [m %x] ]
[ vlan-etype %x [m %x] ]
[ vlan %x [m %x] ]
[ user-def %x [m %x] ]
[ dst-mac %x:%x:%x:%x:%x:%x [m %x:%x:%x:%x:%x:%x] ]
[ action %d ]
[ loc %d]] |
delete %d
ethtool -T|--show-time-stamping DEVNAME Show time stamping capabilities
ethtool -x|--show-rxfh-indir DEVNAME Show Rx flow hash indirection
ethtool -X|--set-rxfh-indir DEVNAME Set Rx flow hash indirection
equal N | weight W0 W1 ...
ethtool -f|--flash DEVNAME Flash firmware image from the specified file to a region on the device
FILENAME [ REGION-NUMBER-TO-FLASH ]
ethtool -P|--show-permaddr DEVNAME Show permanent hardware address
ethtool -w|--get-dump DEVNAME Get dump flag, data
[ data FILENAME ]
ethtool -W|--set-dump DEVNAME Set dump flag of the device
N
ethtool -l|--show-channels DEVNAME Query Channels
ethtool -L|--set-channels DEVNAME Set Channels
[ rx N ]
[ tx N ]
[ other N ]
[ combined N ]
ethtool --show-priv-flags DEVNAME Query private flags
ethtool --set-priv-flags DEVNAME Set private flags
FLAG on|off ...
ethtool -m|--dump-module-eeprom|--module-info DEVNAME Query/Decode Module EEPROM information and optical diagnostics if available
[ raw on|off ]
[ hex on|off ]
[ offset N ]
[ length N ]
ethtool --show-eee DEVNAME Show EEE settings
ethtool --set-eee DEVNAME Set EEE settings
[ eee on|off ]
[ advertise %x ]
[ tx-lpi on|off ]
[ tx-timer %d ]
ethtool -h|--help Show this help
ethtool --version Show version number
ethtool devNombre
[root@tanio ~]# ethtool enp0s7
Settings for enp0s7:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 1
Transceiver: external
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Link detected: yes
ethtool -s
[root@tanio ~]# ethtool --change enp0s7 speed 10 duplex half
[root@tanio ~]# ethtool enp0s7
Settings for enp0s7:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: Unknown!
Duplex: Unknown! (255)
Port: MII
PHYAD: 1
Transceiver: external
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Link detected: no
[root@tanio ~]# ethtool enp0s7
Settings for enp0s7:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: Unknown!
Duplex: Unknown! (255)
Port: MII
PHYAD: 1
Transceiver: external
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Link detected: no
[root@tanio ~]# ethtool --change enp0s7 speed 100 duplex full
[root@tanio ~]# ethtool enp0s7
Settings for enp0s7:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 100baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 1
Transceiver: external
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Link detected: yes
ethtool -a
[root@tanio ~]# ethtool -a enp0s7
Pause parameters for enp0s7:
Autonegotiate: on
RX: on
TX: on
ethtool --pause
[root@tanio ~]# ethtool -A enp0s7 autoneg off
ethtool -g
[root@tanio ~]# ethtool -g enp0s7
Ring parameters for enp0s7:
Pre-set maximums:
RX: 16384
RX Mini: 0
RX Jumbo: 0
TX: 16384
Current hardware settings:
RX: 512
RX Mini: 0
RX Jumbo: 0
TX: 256
ethtool -k
[root@tanio ~]# ethtool -k enp0s7
Features for enp0s7:
rx-checksumming: off [fixed]
tx-checksumming: off
tx-checksum-ipv4: off [fixed]
tx-checksum-ip-generic: off [fixed]
tx-checksum-ipv6: off [fixed]
tx-checksum-fcoe-crc: off [fixed]
tx-checksum-sctp: off [fixed]
scatter-gather: off
tx-scatter-gather: off [fixed]
tx-scatter-gather-fraglist: off [fixed]
tcp-segmentation-offload: off
tx-tcp-segmentation: off [fixed]
tx-tcp-ecn-segmentation: off [fixed]
tx-tcp6-segmentation: off [fixed]
udp-fragmentation-offload: off [fixed]
generic-segmentation-offload: off [requested on]
generic-receive-offload: on
large-receive-offload: off [fixed]
rx-vlan-offload: off [fixed]
tx-vlan-offload: off [fixed]
ntuple-filters: off [fixed]
receive-hashing: off [fixed]
highdma: on [fixed]
rx-vlan-filter: off [fixed]
vlan-challenged: off [fixed]
tx-lockless: off [fixed]
netns-local: off [fixed]
tx-gso-robust: off [fixed]
tx-fcoe-segmentation: off [fixed]
tx-gre-segmentation: off [fixed]
tx-ipip-segmentation: off [fixed]
tx-sit-segmentation: off [fixed]
tx-udp_tnl-segmentation: off [fixed]
fcoe-mtu: off [fixed]
tx-nocache-copy: off
loopback: off
rx-fcs: off [fixed]
rx-all: off [fixed]
tx-vlan-stag-hw-insert: off [fixed]
rx-vlan-stag-hw-parse: off [fixed]
rx-vlan-stag-filter: off [fixed]
l2-fwd-offload: off [fixed]
busy-poll: off [fixed]
ethtool -i
[root@tanio ~]# ethtool -i enp0s7
driver: forcedeth
version: 0.64
firmware-version:
bus-info: 0000:00:07.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no
ethtool -d
[root@tanio ~]# ethtool -d enp0s7
Offset Values
------ ------
0x0000: 20 00 00 00 df 00 00 00 03 00 00 00 0d 00 03 00
0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0030: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0040: 0e e2 20 04 55 a4 00 00 20 2e 00 00 00 00 00 00
0x0050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0060: 00 00 00 00 00 00 00 00 00 00 00 00 ff ff 00 00
0x0070: ff ff 00 00 ff ff 00 00 ff ff 00 00 00 00 00 00
0x0080: 3d 0f 3b 00 01 00 00 c0 00 00 00 00 28 00 7f 00
0x0090: 1c 06 00 00 01 00 00 00 00 00 00 00 3c 7f 00 80
0x00a0: 0f 05 15 00 16 00 00 00 70 71 bc f7 07 83 00 00
0x00b0: 01 00 00 00 00 00 00 00 cd cc 00 08 f8 00 00 00
0x00c0: 01 00 00 0c 01 00 00 00 01 00 00 00 01 00 00 00
0x00d0: 01 00 00 00 01 00 00 00 01 00 00 00 01 00 00 00
0x00e0: 01 00 00 00 01 00 00 00 01 00 00 00 01 00 00 00
0x00f0: 01 00 00 00 01 00 00 00 01 00 00 00 01 00 00 00
0x0100: 00 20 48 ca 00 00 48 ca ff 00 ff 01 00 80 00 00
0x0110: 64 00 01 00 00 00 00 00 23 00 00 00 e0 22 48 ca
0x0120: 00 05 48 ca 40 91 ae a5 ef ff 00 a0 40 d0 5b a5
0x0130: 1c 06 00 80 ec 22 48 ca 40 04 48 ca 00 80 e0 01
0x0140: 20 41 30 00 00 22 c0 80 00 00 00 00 00 00 00 00
0x0150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0170: 10 00 80 01 00 c0 00 00 00 00 00 00 00 00 00 00
0x0180: 16 00 00 00 08 00 00 00 69 78 94 01 03 81 00 00
0x0190: 25 00 00 00 e1 45 00 00 80 00 00 00 e3 c5 00 00
0x01a0: 16 00 00 00 08 00 00 00 69 78 94 01 03 81 00 00
0x01b0: 25 00 00 00 e1 45 00 00 80 00 00 00 e3 c5 00 00
0x01c0: 16 00 00 00 08 00 00 00 69 78 94 01 03 81 00 00
0x01d0: 25 00 00 00 e1 45 00 00 80 00 00 00 e3 c5 00 00
0x01e0: 16 00 00 00 08 00 00 00 69 78 94 01 03 81 00 00
0x01f0: 25 00 00 00 e1 45 00 00 80 00 00 00 e3 c5 00 00
0x0200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0210: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0220: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0230: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0240: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0250: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0260: 00 00 00 00 00 00 00 00 01 50 02 fe 00 01 00 00
0x0270: 00 00 00 00 a1 00 00 00 01 50 02 fe a1 01 00 00
0x0280: ba 09 00 00 19 00 00 00 00 00 00 00 00 00 00 00
0x0290: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x02a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x02b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x02c0: 00 00 00 00 00 00 00 00 28 00 00 00 00 00 00 00
0x02d0: 01 00 00 00 00 00 00 00 19 00 00 00 5b a3 00 00
0x02e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x02f0: 00 00 00 00 01 00 00 00 01 00 00 00 01 00 00 00
0x0300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0310: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0320: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0330: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0340: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0350: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0360: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0370: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0390: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x03a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x03b0: 00 00 00 00 04 00 00 00 ff ff 00 00 ff ff 00 00
0x03c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x03d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x03e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x03f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0410: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0420: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0430: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0440: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0450: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0460: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0470: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0490: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x04a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x04b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x04c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x04d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x04e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x04f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0510: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0520: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0530: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0540: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0550: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0560: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0570: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0590: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x05a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x05b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x05c0: 00 00 06 00 ff ff 00 00 00 00 00 00 00 00 00 00
0x05d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x05e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x05f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0600: 00 00 00 00
ethtool -t
[root@tanio ~]# ethtool -t enp0s7
The test result is PASS
The test extra info:
link (online/offline) 0
register (offline) 0
interrupt (offline) 0
loopback (offline) 0
ethtool --statistics
[root@tanio ~]# ethtool -S enp0s7
NIC statistics:
tx_bytes: 12867087
tx_zero_rexmt: 109460
tx_one_rexmt: 0
tx_many_rexmt: 0
tx_late_collision: 0
tx_fifo_errors: 0
tx_carrier_errors: 0
tx_excess_deferral: 0
tx_retry_error: 0
rx_frame_error: 0
rx_extra_byte: 0
rx_late_collision: 0
rx_runt: 0
rx_frame_too_long: 0
rx_over_errors: 0
rx_crc_errors: 0
rx_frame_align_error: 0
rx_length_error: 0
rx_unicast: 138419
rx_multicast: 1382
rx_broadcast: 2459
rx_packets: 142260
rx_errors_total: 0
tx_errors_total: 0
tx_deferral: 0
tx_packets: 109460
rx_bytes: 160781611
tx_pause: 0
rx_pause: 0
rx_drop_frame: 0
ethtool --show-time-stamping
[root@tanio ~]# ethtool -T enp0s7
Time stamping parameters for enp0s7:
Capabilities:
software-transmit (SOF_TIMESTAMPING_TX_SOFTWARE)
software-receive (SOF_TIMESTAMPING_RX_SOFTWARE)
software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
PTP Hardware Clock: none
Hardware Transmit Timestamp Modes: none
Hardware Receive Filter Modes: none
ethtool --show-permaddr
[root@tanio ~]# ethtool -P enp0s7
Permanent address: 70:71:bc:f7:07:83
ethtool --version
[root@tanio ~]# ethtool --version
ethtool version 3.15
ethtool -f
ethtool -f|--flash DEVNAME FILENAME [ REGION-NUMBER-TO-FLASH ]