{"id":1264,"date":"2018-07-05T21:25:23","date_gmt":"2018-07-05T13:25:23","guid":{"rendered":"https:\/\/www.xiaobo.li\/?p=1264"},"modified":"2020-08-27T09:41:08","modified_gmt":"2020-08-27T01:41:08","slug":"linux-eth-ifconfig-network-%e6%9f%a5%e7%9c%8b%e7%bd%91%e5%8d%a1%e4%b8%aa%e6%95%b0%e5%8f%8a%e9%80%9f%e5%ba%a6","status":"publish","type":"post","link":"https:\/\/www.xiaobo.li\/notes\/archives\/1264","title":{"rendered":"linux eth \/ ifconfig \/ network  \u67e5\u770b\u7f51\u5361\u4e2a\u6570\u53ca\u901f\u5ea6"},"content":{"rendered":"<div id=\"cnblogs_post_body\" class=\"blogpost-body\">\n<div class=\"showContent\">\n<div class=\"cnt\">\n<pre> # lspci | grep Ethernet\r\n03:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet (rev 12)\r\n07:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet (rev 12)<\/pre>\n<pre><code>\r\n<\/code># dmesg |grep eth0 divert: allocating divert_blk for eth0 eth0: RealTek RTL8139 at 0xd800, 00:80:48:34:c2:84, IRQ 9 eth0: Identified 8139 chip type 'RTL-8100B\/8139D' divert: freeing divert_blk for eth0 divert: allocating divert_blk for eth0 eth0: RealTek RTL8139 at 0xd800, 00:90:44:34:a5:33, IRQ 9 eth0: Identified 8139 chip type 'RTL-8100B\/8139D' eth0: link up, 100Mbps, full-duplex, lpa 0x41E1 eth0: no IPv6 routers present ...<\/pre>\n<pre># mii-tool -v eth0<\/pre>\n<pre>eth0: negotiated 100baseTx-FD, link ok\r\nproduct info: vendor 00:00:00, model 0 rev 0\r\nbasic mode:   autonegotiation enabled\r\nbasic status: autonegotiation complete, link ok\r\ncapabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD\r\n            10baseT-HD\r\n...\r\n\r\n<\/pre>\n<pre># ethtool eth0\r\n\r\nSettings for eth0:\r\n Supported ports: [ TP MII ]\r\n Supported link modes:   10baseT\/Half 10baseT\/Full\r\n                         100baseT\/Half 100baseT\/Full\r\n Supports auto-negotiation: Yes\r\n Advertised link modes:  10baseT\/Half 10baseT\/Full\r\n                         100baseT\/Half 100baseT\/Full\r\n Advertised auto-negotiation: Yes\r\n <span style=\"color: #ff0000;\">Speed: 100Mb\/s<\/span>\r\n<span style=\"color: #ff0000;\"> Duplex: Full<\/span>\r\n Port: MII\r\n PHYAD: 32\r\n Transceiver: internal\r\n Auto-negotiation: on\r\n Supports Wake-on: pumbg\r\n Wake-on: p\r\n Current message level: 0x00000007 (7)\r\n Link detected: yes<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"clear\"><\/div>\n<div><\/div>\n<div><\/div>\n<div>#\u7aef\u53e3\u6d41\u91cf\u76d1\u63a7<br \/>\nyum install iptraf-ng<\/div>\n<div><\/div>\n<div><\/div>\n<div>#\u7f51\u7edc\u63a5\u53e3\u6d41\u91cf\u76d1\u63a7<\/div>\n<div>yum intall iftop<\/div>\n<div><\/div>\n<div id=\"blog_post_info_block\">\n<div id=\"BlogPostCategory\">..<\/div>\n<div><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p># lspci | grep Ethernet 03:00.0 Ethernet &hellip; <a href=\"https:\/\/www.xiaobo.li\/notes\/archives\/1264\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[287],"tags":[],"class_list":["post-1264","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/1264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/comments?post=1264"}],"version-history":[{"count":0,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/1264\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/media?parent=1264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/categories?post=1264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/tags?post=1264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}