ethtool用法 linux_Linux命令之Ethtool用法详解

-h

shows a short help message.

-a

queries the specified ethernet device for pause parameter information.

-A

change the pause parameters of the specified ethernet device.

autoneg on|off

Specify if pause autonegotiation is enabled.

rx on|off

Specify if RX pause is enabled.

tx on|off

Specify if TX pause is enabled.

-c

queries the specified ethernet device for coalescing information.

-C

change the coalescing settings of the specified ethernet device.

-g

queries the specified ethernet device for rx/tx ring parameter information.

-G

change the rx/tx ring parameters of the specified ethernet device.

rxN

Change number of ring entries for the Rx ring.

rx-miniN

Change number of ring entries for the Rx Mini ring.

rx-jumboN

Change number of ring entries for the Rx Jumbo ring.

txN

Change number of ring entries for the Tx ring.

-i

queries the specified ethernet device for associated driver information.

-d

retrieves and prints a register dump for the specified ethernet device.

-e

retrieves and prints an EEPROM dump for the specified ethernet device.

-k

queries the specified ethernet device for checksumming information.

-K

change the checksumming parameters of the specified ethernet device.

rx on|off

Specify if RX checksumming is enabled.

tx on|off

Specify if TX checksumming is enabled.

sg on|off

Specify if scatter-gather is enabled.

-p

initiates adapter-specific action intended to enable an operator to easily identify the adapter by sight. typically this involves blinking one or more LEDs on the specific ethernet port.

N

Length of time to perform phys-id, in seconds.

-r

restarts auto-negotiation on the specified ethernet device, if auto-negotiation is enabled.

-S

queries the specified ethernet device for NIC- and driver-specific statistics.

-t

executes adapter selftest on the specified ethernet device. Possible test modes are:

offline|online

defines test type: offline (default) means to perform full set of tests possibly causing normal operation interruption during the tests, online means to perform limited set of tests do not interrupting normal adapter operation.

-s

option allows changing some or all settings of the specified ethernet device. All following options only apply if -s was specified.

speed 10|100|1000

Set speed in Mb/s. ethtool with single argument will show you the supported device speeds.

duplex half|full

Set full or half duplex mode.

port tp|aui|bnc|mii

Select device port.

autoneg on|off

Specify if autonegotiation is enabled. In the usual case it is, but might cause some problems with some network devices, so you can turn it off.

phyadN

PHY address.

xcvr internal|external

Select transceiver type. Currently only internal and external can be specified, in the future further types might be added.

wol p|u|m|b|a|g|s|d...

Set 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(tm)

s

Enable SecureOn(tm) password for MagicPacket(tm)

d

Disable (wake on nothing). This option clears all previous options.

sopass xx:yy:zz:aa:bb:cc

Set the SecureOn(tm) password. The argument to this option must be 6 bytes in ethernet MAC hex format (xx:yy:zz:aa:bb:cc).

msglvlN

Set the driver message level. Meanings differ per driver

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值