{"id":6976,"date":"2020-04-25T20:48:10","date_gmt":"2020-04-25T12:48:10","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6976"},"modified":"2020-04-25T20:48:12","modified_gmt":"2020-04-25T12:48:12","slug":"ipstat","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/ipstat","title":{"rendered":"ipstat\u547d\u4ee4 – \u5b9e\u65f6\u663e\u793a Linux \u5185\u6838\u4e2d iptables \u7684\u5de5\u4f5c\u72b6\u6001"},"content":{"rendered":"\n

ipstat \u547d\u4ee4\u7528\u4e8e\u6839\u636e\u547d\u4ee4\u8bed\u6cd5\u4e2d\u6307\u5b9a\u7684\u6240\u9009\u8f93\u51fa\u6a21\u5f0f\u548c\u6392\u5e8f\u987a\u5e8f\u6536\u96c6\u5e76\u62a5\u544a\u6709\u5173\u670d\u52a1\u5668\u4e0a IP \u901a\u4fe1\u6d41\u91cf\u7684\u7edf\u8ba1\u4fe1\u606f\u3002\u4f7f\u7528\u6b64\u547d\u4ee4\u53ef\u4ee5\u89c2\u5bdf IP \u5c42\u7684\u7f51\u7edc\u901a\u4fe1\u6d41\u91cf\uff08\u6309\u6e90\u3001\u76ee\u6807\u3001\u9ad8\u5c42\u534f\u8bae\u548c\u63a5\u53e3\u8fdb\u884c\u805a\u5408\uff09\u3002\u5f53\u60a8\u5e0c\u671b\u89c2\u5bdf\u4e00\u4e2a\u670d\u52a1\u5668\u4e0e\u5176\u4ed6\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u901a\u4fe1\u91cf\u65f6\uff0c\u4f7f\u7528\u6b64\u547d\u4ee4\u3002<\/p>\n\n\n\n

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

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-c<\/td>\u5728\u4ee5\u524d\u7684\u62a5\u544a\u4e4b\u540e\u6253\u5370\u66f4\u65b0\u7684\u62a5\u544a<\/td><\/tr>
-l<\/td>\u6307\u5b9a\u6bcf\u4e2a\u62a5\u8868\u8981\u8f93\u51fa\u7684\u6570\u636e\u884c\u6570<\/td><\/tr>
-d<\/td>\u663e\u793a\u6807\u51c6\u65e5\u671f\u683c\u5f0f (\u2013d
 d) \u7684\u65f6\u95f4\u6233<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

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

\u89c2\u5bdf\u6700\u6d3b\u8dc3\u7684\u4e94\u4e2a IP \u901a\u4fe1\u6d41\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# ipstat -l 5 <\/pre>\n\n\n\n

\u5728\u4ee5\u524d\u7684\u62a5\u544a\u4e4b\u540e\u6253\u5370\u66f4\u65b0\u7684\u62a5\u544a,\u65f6\u95f4\u95f4\u9694\u4e3a3\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# ipstat -c 3<\/pre>\n\n\n\n

\u5728unix\u65f6\u95f4\u5f62\u5f0f\u6253\u5370\u65f6\u95f4\u6233,\u65f6\u95f4\u95f4\u9694\u4e3a3\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# ipstat -d u -c 3<\/pre>\n\n\n\n

<\/p>\n","protected":false},"excerpt":{"rendered":"

ipstat \u547d\u4ee4\u7528\u4e8e\u6839\u636e\u547d\u4ee4\u8bed\u6cd5\u4e2d\u6307\u5b9a\u7684\u6240\u9009\u8f93\u51fa\u6a21\u5f0f\u548c\u6392\u5e8f\u987a\u5e8f\u6536\u96c6\u5e76\u62a5\u544a\u6709\u5173\u670d\u52a1\u5668\u4e0a IP \u901a\u4fe1\u6d41 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6976"}],"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=6976"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6976\/revisions"}],"predecessor-version":[{"id":7101,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6976\/revisions\/7101"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6976"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6976"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}