{"id":3152,"date":"2019-06-25T13:22:40","date_gmt":"2019-06-25T05:22:40","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=3152"},"modified":"2019-06-25T13:22:42","modified_gmt":"2019-06-25T05:22:42","slug":"ethtool","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/ethtool","title":{"rendered":"ethtool\u547d\u4ee4 – \u67e5\u8be2\u4e0e\u8bbe\u7f6e\u7f51\u5361\u53c2\u6570"},"content":{"rendered":"\n

ethtool\u547d\u4ee4\u7528\u4e8e\u67e5\u8be2ethX\u7f51\u53e3\u57fa\u672c\u8bbe\u7f6e\u3001\u53ca\u8bbe\u7f6e\u7f51\u5361\u7684\u53c2\u6570\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>ethtool [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
-i<\/td>\u663e\u793a\u7f51\u5361\u9a71\u52a8\u7684\u4fe1\u606f<\/td><\/tr>
-E<\/td>\u4fee\u6539\u7f51\u5361\u53ea\u8bfb\u5b58\u50a8\u5668\u5b57\u8282<\/td><\/tr>
-K<\/td>\u4fee\u6539\u7f51\u5361 Offload \u7684\u72b6\u6001<\/td><\/tr>
ethx<\/td> \u67e5\u8be2ethx\u7f51\u53e3\u57fa\u672c\u8bbe\u7f6e\uff0c\u5176\u4e2d x \u662f\u5bf9\u5e94\u7f51\u5361\u7684\u7f16\u53f7\uff0c\u5982eth0\u3001eth1\u7b49 <\/td><\/tr>
-s<\/td>\u4fee\u6539\u7f51\u5361\u7684\u90e8\u5206\u914d\u7f6e<\/td><\/tr>
-t<\/td>\u8ba9\u7f51\u5361\u6267\u884c\u81ea\u6211\u68c0\u6d4b<\/td><\/tr><\/tbody><\/table>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u67e5\u8be2\u7f51\u53e3\u57fa\u672c\u8bbe\u7f6e\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# ethtool eth0<\/pre>\n\n\n\n

\u67e5\u8be2\u7f51\u53e3\u7684\u9a71\u52a8\u76f8\u5173\u4fe1\u606f\uff1a <\/p>\n\n\n\n

[root@linuxcool ~]# ethtool -i eth0                                                                                        driver: e1000\nversion: 7.3.21-k8-NAPI\nfirmware-version: <\/pre>\n\n\n\n

\u8bbe\u7f6e\u7f51\u53e3\u5de5\u4f5c\u65b9\u5f0f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# ethtool -s eth0 autoneg off speed 100 duplex full \n[root@linuxcool ~]# ethtool eth0<\/em>        <\/pre>\n\n\n\n

\u67e5\u770b\u7f51\u5361\uff0c\u5728\u63a5\u6536\/\u53d1\u9001\u6570\u636e\u65f6\uff0c\u6709\u6ca1\u6709\u51fa\u9519 \uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# ethtool -S eth0      <\/pre>\n\n\n\n

\u505c\u6b62\u7f51\u5361\u7684\u53d1\u9001\u6a21\u5757TX: <\/p>\n\n\n\n

[root@linuxcool ~]# ethtool -A tx off eth0       <\/pre>\n","protected":false},"excerpt":{"rendered":"

ethtool\u547d\u4ee4\u7528\u4e8e\u67e5\u8be2ethX\u7f51\u53e3\u57fa\u672c\u8bbe\u7f6e\u3001\u53ca\u8bbe\u7f6e\u7f51\u5361\u7684\u53c2\u6570\u3002 \u8bed\u6cd5\u683c\u5f0f\uff1aethtool [\u53c2\u6570] \u5e38\u7528\u53c2 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3152"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=3152"}],"version-history":[{"count":11,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3152\/revisions"}],"predecessor-version":[{"id":3525,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3152\/revisions\/3525"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=3152"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=3152"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=3152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}