相關(guān)命令: 暫無相關(guān)命令
ethtool是用于查詢及設(shè)置網(wǎng)卡參數(shù)的命令。
參數(shù):
ethtool eth*? ? ? #查詢eth*網(wǎng)口基本設(shè)置
ethtool –h? ? ? ? #顯示ethtool的命令幫助(help)
ethtool –i eth*? ? #查詢eth*網(wǎng)口的相關(guān)信息
ethtool –d eth*? ? #查詢eth*網(wǎng)口注冊(cè)性信息
ethtool –r eth*? ? #重置eth*網(wǎng)口到自適應(yīng)模式
ethtool –S eth*? ? #查詢eth*網(wǎng)口收發(fā)包統(tǒng)計(jì)
ethtool –s eth*? [speed 10|100|1000]\? ? ? ? #設(shè)置網(wǎng)口速率10/100/1000M
[duplex half|full]\? ? ? ? ? #設(shè)置網(wǎng)口半/全雙工
[autoneg on|off]\? ? ? ? ? ? #設(shè)置網(wǎng)口是否自協(xié)商
[port tp|aui|bnc|mii]\? ? ? ? #設(shè)置網(wǎng)口類型
[phyad N]\? ? ? ? ? ? ? ?
[xcvr internal|exteral]\
[wol p|u|m|b|a|g|s|d...]\
[sopass xx:yy:zz:aa:bb:cc]\
[msglvl N]
例子
[root@redhat ~]# ethtool eth1? ? ? ? #查詢eth1網(wǎng)口基本設(shè)置
[root@redhat ~]# ethtool -i eth1? ? ? #查詢eth1網(wǎng)口相關(guān)信息
[root@redhat ~]# ethtool -S eth1? ? ? #查詢eth1網(wǎng)口收發(fā)包統(tǒng)計(jì)
[root@redhat ~]# ethtool -s eth1 autoneg off speed 100 duplex full? #設(shè)置eth1網(wǎng)口速率
root@c:~# ethtool -k br-prv? #顯示網(wǎng)卡詳細(xì)信息
Features for br-prv:
Cannot get device udp-fragmentation-offload settings: Operation not supported
rx-checksumming: off [fixed]
tx-checksumming: on
tx-checksum-ipv4: off [fixed]
tx-checksum-ip-generic: on
tx-checksum-ipv6: off [fixed]
tx-checksum-fcoe-crc: off [fixed]
tx-checksum-sctp: off [fixed]
scatter-gather: on
tx-scatter-gather: on
tx-scatter-gather-fraglist: on
tcp-segmentation-offload: on
tx-tcp-segmentation: on
tx-tcp-ecn-segmentation: on
tx-tcp-mangleid-segmentation: on
tx-tcp6-segmentation: on
udp-fragmentation-offload: off
generic-segmentation-offload: on
generic-receive-offload: on
large-receive-offload: off [fixed]
rx-vlan-offload: off [fixed]
tx-vlan-offload: on
ntuple-filters: off [fixed]
receive-hashing: off [fixed]
highdma: on
rx-vlan-filter: off [fixed]
vlan-challenged: off [fixed]
tx-lockless: on [fixed]
netns-local: off [fixed]
tx-gso-robust: off [fixed]
tx-fcoe-segmentation: off [fixed]
tx-gre-segmentation: on
tx-gre-csum-segmentation: on
tx-ipxip4-segmentation: on
tx-ipxip6-segmentation: on
tx-udp_tnl-segmentation: on
tx-udp_tnl-csum-segmentation: on
tx-gso-partial: off [fixed]
tx-sctp-segmentation: on
tx-esp-segmentation: off [fixed]
fcoe-mtu: off [fixed]
tx-nocache-copy: off
loopback: off [fixed]
rx-fcs: off [fixed]
rx-all: off [fixed]
tx-vlan-stag-hw-insert: on
rx-vlan-stag-hw-parse: off [fixed]
rx-vlan-stag-filter: off [fixed]
l2-fwd-offload: off [fixed]
hw-tc-offload: off [fixed]
esp-hw-offload: off [fixed]
esp-tx-csum-hw-offload: off [fixed]
rx-udp_tunnel-port-offload: off [fixed]