ethtool是用于查询及设置网卡参数的命令。
参数:
ethtool eth* #查询eth*网口基本设置
ethtool –h #显示ethtool的命令帮助(help)
ethtool –i eth* #查询eth*网口的相关信息
ethtool –d eth* #查询eth*网口注册性信息
ethtool -p eth* #点亮网卡
ethtool –r eth* #重置eth*网口到自适应模式
ethtool –S eth* #查询eth*网口收发包统计
ethtool –s eth* [speed 10|100|1000]\ #设置网口速率10/100/1000M
[duplex half|full]\ #设置网口半/全双工
[autoneg on|off]\ #设置网口是否自协商
[port tp|aui|bnc|mii]\ #设置网口类型
[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网口基本设置 [root@redhat ~]# ethtool -i eth1 #查询eth1网口相关信息 [root@redhat ~]# ethtool -S eth1 #查询eth1网口收发包统计 [root@redhat ~]# ethtool -s eth1 autoneg off speed 100 duplex full #设置eth1网口速率
root@c:~# ethtool -k br-prv #显示网卡详细信息 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]
评论(0)
暂无评论