Linux常用命令ethtool怎么用


小编给大家分享一下Linux常用命令ethtool怎么用,希望大家阅读完这篇文章之后都有所收获,下面让我们一起去探讨吧!

Linux常用命令ethtool命令用于查询ethX网口基本设置、及设置网卡的参数

语法格式:

ethtool [参数]

常用参数:

-i显示网卡驱动的信息
-E修改网卡只读存储器字节
-K修改网卡 Offload 的状态
ethx查询ethx网口基本设置,其中 x 是对应网卡的编号,如eth0、eth2等
-s修改网卡的部分配置
-t让网卡执行自我检测

实例

例1

 [root@redhat ~]# ethtool eth2         #查询eth2网口基本设置  [root@redhat ~]# ethtool -i eth2      #查询eth2网口相关信息  [root@redhat ~]# ethtool -S eth2       #查询eth2网口收发包统计  [root@redhat ~]# ethtool -s eth2 autoneg off speed 100 duplex full   #设置eth2网口速率

例2

 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--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]

看完了这篇文章,相信你对“Linux常用命令ethtool怎么用”有了一定的了解,如果想了解更多相关知识,欢迎关注主机评测网行业资讯频道,感谢各位的阅读!


上一篇:Linux常用命令dpkg-statoverride怎么用

下一篇:SSH原理是什么与怎么使用


Copyright © 2002-2019 测速网 www.inhv.cn 皖ICP备2023010105号
测速城市 测速地区 测速街道 网速测试城市 网速测试地区 网速测试街道
温馨提示:部分文章图片数据来源与网络,仅供参考!版权归原作者所有,如有侵权请联系删除!

热门搜索 城市网站建设 地区网站制作 街道网页设计 大写数字 热点城市 热点地区 热点街道 热点时间 房贷计算器