{"id":975,"date":"2019-04-27T22:12:19","date_gmt":"2019-04-27T14:12:19","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=975"},"modified":"2019-04-28T14:34:54","modified_gmt":"2019-04-28T06:34:54","slug":"arpd","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/arpd","title":{"rendered":"arpd\u547d\u4ee4 – \u6536\u96c6arp\u4fe1\u606f"},"content":{"rendered":"\n

arpd\u547d\u4ee4\u662f\u7528\u6765\u6536\u96c6\u514d\u8d39arp\u4fe1\u606f\u7684\u4e00\u4e2a\u5b88\u62a4\u8fdb\u7a0b\uff0c\u5b83\u5c06\u6536\u96c6\u5230\u7684\u4fe1\u606f\u4fdd\u5b58\u5728\u78c1\u76d8\u4e0a\u6216\u8005\u5728\u9700\u8981\u65f6\uff0c\u63d0\u4f9b\u7ed9\u5185\u6838\u7528\u6237\u7528\u4e8e\u907f\u514d\u591a\u4f59\u5e7f\u64ad\u3002 <\/p>\n\n\n\n

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

\u53c2\u8003\u5b9e\u4f8b<\/strong>
<\/p>\n\n\n\n
-l<\/td>\u5c06arp\u6570\u636e\u5e93\u8f93\u51fa\u5230\u6807\u51c6\u8f93\u51fa\u8bbe\u5907\u663e\u793a\u5e76\u9000\u51fa <\/td><\/tr>
-f<\/td> \u6307\u5b9a\u8bfb\u53d6\u548c\u52a0\u8f7darpd\u6570\u636e\u5e93\u7684\u6587\u672c\u6587\u4ef6\uff0c\u6587\u4ef6\u7684\u683c\u5f0f\u4e0e\u201c-l\u201d\u8f93\u51fa\u4fe1\u606f\u7c7b\u4f3c <\/td><\/tr>
-b<\/td> \u6307\u5b9aarpd\u6570\u636e\u5e93\u6587\u4ef6\uff0c\u9ed8\u8ba4\u7684\u4f4d\u7f6e\u4e3a\u201c\/var\/lib\/arpd.db <\/td><\/tr>
-a<\/td> \u6307\u5b9a\u76ee\u6807\u88ab\u8ba4\u4e3a\u6b7b\u6389\u524d\u67e5\u8be2\u7684\u6b21\u6570 <\/td><\/tr>
-k<\/td> \u7981\u6b62\u901a\u8fc7\u5185\u6838\u53d1\u9001\u5e7f\u64ad\u67e5\u8be2 <\/td><\/tr>
-n<\/td> \u8bbe\u5b9a\u7f13\u51b2\u5931\u6548\u65f6\u95f4 <\/td><\/tr><\/tbody><\/table>\n\n\n\n

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

\u542f\u52a8arpd\u8fdb\u7a0b\uff1a <\/p>\n\n\n\n

[root@linuxcool ~]# arpd -b \/var\/tmp\/arpd.db <\/pre>\n\n\n\n

\u4e00\u6bb5\u65f6\u95f4\u540e\u770b\u7ed3\u679c\uff1a <\/p>\n\n\n\n

[root@linuxcool ~]# killall arpd ; arpd -l -b \/var\/tmp\/arpd.db <\/pre>\n\n\n\n

\u542f\u7528\u5185\u6838\u5e2e\u52a9\u7a0b\u5e8f\uff0c\u5c06\u4e3b\u8981\u89d2\u8272\u7559\u7ed9\u5185\u6838\uff1a <\/p>\n\n\n\n

[root@linuxcool ~]# arpd -b \/var\/tmp\/arpd.db -a 1 eth0 eth1 <\/pre>\n\n\n\n

\u5b8c\u5168\u66ff\u6362\u63a5\u53e3eth0\u548ceth1\u4e0a\u7684\u5185\u6838\u51b3\u8bae\u3002 \u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u5185\u6838\u4ecd\u4f1a\u8fdb\u884c\u5355\u64ad\u63a2\u6d4b\u4ee5\u9a8c\u8bc1\u6761\u76ee\uff0c\u4f46\u6240\u6709\u5e7f\u64ad\u6d3b\u52a8\u90fd\u88ab\u6291\u5236\u5e76\u5728arpd\u7684\u6388\u6743\u4e0b\u8fdb\u884c\uff1a <\/p>\n\n\n\n

[root@linuxcool ~]# arpd -b \/var\/tmp\/arpd.db -a 3 -k eth0 eth1 <\/pre>\n\n\n\n

\u7981\u6b62\u5185\u6838\u53d1\u9001\u5e7f\u64ad\u67e5\u8be2 \uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# arpd -k<\/pre>\n\n\n\n

<\/p>\n\n\n\n

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

arpd\u547d\u4ee4\u662f\u7528\u6765\u6536\u96c6\u514d\u8d39arp\u4fe1\u606f\u7684\u4e00\u4e2a\u5b88\u62a4\u8fdb\u7a0b\uff0c\u5b83\u5c06\u6536\u96c6\u5230\u7684\u4fe1\u606f\u4fdd\u5b58\u5728\u78c1\u76d8\u4e0a\u6216\u8005\u5728\u9700\u8981\u65f6\uff0c\u63d0\u4f9b\u7ed9\u5185\u6838\u7528\u6237\u7528 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/975"}],"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=975"}],"version-history":[{"count":9,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/975\/revisions"}],"predecessor-version":[{"id":1573,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/975\/revisions\/1573"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=975"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=975"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=975"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}