{"id":812,"date":"2025-12-20T14:43:57","date_gmt":"2025-12-20T06:43:57","guid":{"rendered":"https:\/\/www.52runoob.com\/?p=812"},"modified":"2025-12-20T14:43:57","modified_gmt":"2025-12-20T06:43:57","slug":"cmd%e6%9f%a5%e7%9c%8b%e5%b1%80%e5%9f%9f%e7%bd%91%e6%89%80%e6%9c%89ip%e4%bf%a1%e6%81%af-arp-a-arp%e5%91%bd%e4%bb%a4%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/www.52runoob.com\/index.php\/2025\/12\/20\/cmd%e6%9f%a5%e7%9c%8b%e5%b1%80%e5%9f%9f%e7%bd%91%e6%89%80%e6%9c%89ip%e4%bf%a1%e6%81%af-arp-a-arp%e5%91%bd%e4%bb%a4%e4%bb%8b%e7%bb%8d\/","title":{"rendered":"cmd\u67e5\u770b\u5c40\u57df\u7f51\u6240\u6709IP\u4fe1\u606f arp -a (ARP\u547d\u4ee4\u4ecb\u7ecd)\u00a0"},"content":{"rendered":"\n<p>\u5728 <strong>Windows<\/strong> \u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0c<code>arp -a<\/code> \u547d\u4ee4\u7528\u4e8e\u67e5\u770b\u5c40\u57df\u7f51\u4e2d\u6240\u6709\u7684 <strong>IP \u5730\u5740<\/strong> \u548c\u5bf9\u5e94\u7684 <strong>MAC \u5730\u5740<\/strong>\u3002\u8be5\u547d\u4ee4\u662f <strong>ARP\uff08Address Resolution Protocol\uff09<\/strong> \u534f\u8bae\u7684\u4e00\u90e8\u5206\uff0c\u7528\u4e8e\u663e\u793a <strong>\u672c\u5730\u7f13\u5b58\u7684 IP-MAC \u5730\u5740\u6620\u5c04\u8868<\/strong>\u3002\u4ee5\u4e0b\u662f\u5bf9\u8be5\u547d\u4ee4\u7684\u8be6\u7ec6\u4ecb\u7ecd\uff1a<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1. ARP \u547d\u4ee4\u6982\u8ff0<\/strong><\/h3>\n\n\n\n<p><strong>ARP<\/strong>\uff08Address Resolution Protocol\uff09\u662f\u4e00\u79cd\u7528\u4e8e\u5c06 <strong>IP \u5730\u5740<\/strong> \u6620\u5c04\u5230 <strong>MAC \u5730\u5740<\/strong> \u7684\u7f51\u7edc\u534f\u8bae\u3002\u5f53\u8ba1\u7b97\u673a\u9700\u8981\u4e0e\u5c40\u57df\u7f51\u4e2d\u7684\u5176\u4ed6\u8bbe\u5907\u901a\u4fe1\u65f6\uff0c\u5b83\u9996\u5148\u4f1a\u67e5\u627e ARP \u7f13\u5b58\u4e2d\u662f\u5426\u5df2\u6709\u8be5\u8bbe\u5907\u7684 MAC \u5730\u5740\u3002\u5982\u679c\u6ca1\u6709\uff0c\u8ba1\u7b97\u673a\u4f1a\u53d1\u9001 ARP \u8bf7\u6c42\u5e7f\u64ad\u5230\u7f51\u7edc\u4e0a\uff0c\u5bfb\u627e\u8be5\u8bbe\u5907\u7684 MAC \u5730\u5740\u3002<\/p>\n\n\n\n<p><strong><code>arp -a<\/code><\/strong> \u547d\u4ee4\u662f\u67e5\u770b <strong>ARP \u7f13\u5b58\u8868<\/strong> \u7684\u5de5\u5177\uff0c\u663e\u793a\u672c\u673a\u4e0e\u5c40\u57df\u7f51\u4e2d\u7684\u5176\u4ed6\u8bbe\u5907\u7684 <strong>IP \u5730\u5740<\/strong> \u548c <strong>MAC \u5730\u5740<\/strong>\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2. <code>arp -a<\/code> \u547d\u4ee4\u7684\u8bed\u6cd5<\/strong><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\narp -a\n\n<\/pre><\/div>\n\n\n<p>\u6b64\u547d\u4ee4\u4f1a\u5217\u51fa\u5f53\u524d\u8ba1\u7b97\u673a ARP \u7f13\u5b58\u4e2d\u6240\u6709\u7684 IP \u5730\u5740\u53ca\u5176\u5bf9\u5e94\u7684 MAC \u5730\u5740\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3. <code>arp -a<\/code> \u8f93\u51fa\u5185\u5bb9<\/strong><\/h3>\n\n\n\n<p>\u8fd0\u884c <code>arp -a<\/code> \u540e\uff0c\u7cfb\u7edf\u4f1a\u663e\u793a\u4e00\u4e2a\u8868\u683c\uff0c\u901a\u5e38\u5305\u62ec\u4ee5\u4e0b\u51e0\u5217\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Internet Address (IP \u5730\u5740)<\/strong><\/th><th><strong>Physical Address (MAC \u5730\u5740)<\/strong><\/th><th><strong>Type<\/strong><\/th><\/tr><\/thead><tbody><tr><td>192.168.1.1<\/td><td>00-14-22-01-23-45<\/td><td>dynamic<\/td><\/tr><tr><td>192.168.1.2<\/td><td>00-14-22-01-23-46<\/td><td>dynamic<\/td><\/tr><tr><td>192.168.1.3<\/td><td>00-14-22-01-23-47<\/td><td>dynamic<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Internet Address (IP \u5730\u5740)<\/strong>\uff1a\u663e\u793a\u5c40\u57df\u7f51\u4e2d\u8bbe\u5907\u7684 IP \u5730\u5740\u3002<\/li>\n\n\n\n<li><strong>Physical Address (MAC \u5730\u5740)<\/strong>\uff1a\u663e\u793a\u5bf9\u5e94\u8bbe\u5907\u7684 <strong>MAC \u5730\u5740<\/strong>\uff0c\u5373\u7269\u7406\u5730\u5740\uff0c\u552f\u4e00\u6807\u8bc6\u7f51\u7edc\u8bbe\u5907\u3002<\/li>\n\n\n\n<li><strong>Type<\/strong>\uff1a\u8868\u793a\u8be5\u6761\u76ee\u662f\u5982\u4f55\u6dfb\u52a0\u7684\u3002\u4e00\u822c\u4e3a <code>dynamic<\/code>\uff0c\u8868\u793a\u5b83\u662f\u901a\u8fc7 ARP \u8bf7\u6c42\u52a8\u6001\u6dfb\u52a0\u7684\uff1b\u5982\u679c\u662f\u9759\u6001\u914d\u7f6e\u7684\uff0c\u5219\u663e\u793a <code>static<\/code>\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>4. <code>arp -a<\/code> \u547d\u4ee4\u7684\u5e38\u89c1\u9009\u9879<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u663e\u793a\u7279\u5b9a\u7684\u63a5\u53e3 ARP \u8868<\/strong><br>\u5982\u679c\u8ba1\u7b97\u673a\u6709\u591a\u4e2a\u7f51\u7edc\u63a5\u53e3\uff08\u4f8b\u5982\u6709\u7ebf\u548c\u65e0\u7ebf\uff09\uff0c\u4f60\u53ef\u4ee5\u6307\u5b9a\u663e\u793a\u7279\u5b9a\u63a5\u53e3\u7684 ARP \u7f13\u5b58\u3002<code>arp -a 192.168.1.1 <\/code>\u8be5\u547d\u4ee4\u4f1a\u663e\u793a\u4e0e IP \u5730\u5740 <code>192.168.1.1<\/code> \u76f8\u5173\u7684 ARP \u7f13\u5b58\u3002<\/li>\n\n\n\n<li><strong>\u67e5\u770b\u67d0\u4e00\u7f51\u7edc\u63a5\u53e3\u7684 ARP \u8868<\/strong><code>arp -a -N 192.168.1.1 <\/code>\u8fd9\u4e2a\u547d\u4ee4\u4f1a\u67e5\u770b\u4e0e\u6307\u5b9a\u63a5\u53e3\u76f8\u5173\u7684 ARP \u8868\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>5. ARP \u7f13\u5b58\u7684\u4f5c\u7528<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>IP \u5230 MAC \u5730\u5740\u7684\u6620\u5c04<\/strong>\uff1aARP \u7f13\u5b58\u5b58\u50a8\u4e86 IP \u5730\u5740\u4e0e MAC \u5730\u5740\u4e4b\u95f4\u7684\u6620\u5c04\u5173\u7cfb\uff0c\u4f7f\u5f97\u8ba1\u7b97\u673a\u5728\u4e0e\u5176\u4ed6\u8bbe\u5907\u901a\u4fe1\u65f6\uff0c\u4e0d\u9700\u8981\u6bcf\u6b21\u90fd\u8fdb\u884c ARP \u8bf7\u6c42\uff0c\u8282\u7701\u7f51\u7edc\u5e26\u5bbd\u548c\u63d0\u9ad8\u901a\u4fe1\u6548\u7387\u3002<\/li>\n\n\n\n<li><strong>\u52a8\u6001\u66f4\u65b0<\/strong>\uff1aARP \u7f13\u5b58\u4f1a\u52a8\u6001\u66f4\u65b0\uff0c\u5f53\u7f51\u7edc\u4e0a\u6709\u65b0\u8bbe\u5907\u52a0\u5165\u6216 IP \u5730\u5740\u53d8\u5316\u65f6\uff0c\u7f13\u5b58\u4f1a\u81ea\u52a8\u66f4\u65b0\u3002<\/li>\n\n\n\n<li><strong>\u7f13\u5b58\u8fc7\u671f<\/strong>\uff1aARP \u7f13\u5b58\u4e2d\u7684\u6761\u76ee\u6709\u65f6\u6548\u6027\uff0c\u8fc7\u4e00\u6bb5\u65f6\u95f4\u5982\u679c\u6ca1\u6709\u4f7f\u7528\uff0c\u7f13\u5b58\u4e2d\u7684\u6761\u76ee\u4f1a\u88ab\u6e05\u9664\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>6. \u6e05\u9664 ARP \u7f13\u5b58<\/strong><\/h3>\n\n\n\n<p>\u5982\u679c ARP \u7f13\u5b58\u4e2d\u7684\u6761\u76ee\u8fc7\u65f6\uff0c\u6216\u8005\u4f60\u9047\u5230\u7f51\u7edc\u6545\u969c\uff0c\u9700\u8981\u6e05\u7a7a ARP \u7f13\u5b58\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\narp -d\n\n<\/pre><\/div>\n\n\n<p>\u6b64\u547d\u4ee4\u4f1a\u5220\u9664\u6240\u6709 ARP \u7f13\u5b58\u6761\u76ee\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5220\u9664\u7279\u5b9a IP \u7684\u7f13\u5b58\u6761\u76ee<\/strong>\uff1a<code>arp -d 192.168.1.1 <\/code>\u8be5\u547d\u4ee4\u4f1a\u5220\u9664\u4e0e IP \u5730\u5740 <code>192.168.1.1<\/code> \u76f8\u5173\u7684 ARP \u7f13\u5b58\u6761\u76ee\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>7. ARP \u547d\u4ee4\u7684\u5e94\u7528\u573a\u666f<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u7f51\u7edc\u6545\u969c\u6392\u67e5<\/strong>\uff1a\u901a\u8fc7 <code>arp -a<\/code> \u547d\u4ee4\uff0c\u7ba1\u7406\u5458\u53ef\u4ee5\u67e5\u770b\u5c40\u57df\u7f51\u4e2d\u6240\u6709\u8bbe\u5907\u7684 IP-MAC \u6620\u5c04\u5173\u7cfb\uff0c\u5e2e\u52a9\u8bca\u65ad IP \u914d\u7f6e\u9519\u8bef\u6216\u8bbe\u5907\u4e4b\u95f4\u7684\u7f51\u7edc\u95ee\u9898\u3002<\/li>\n\n\n\n<li><strong>\u76d1\u6d4b\u7f51\u7edc\u8bbe\u5907<\/strong>\uff1a\u53ef\u4ee5\u7528\u6765\u67e5\u770b\u5c40\u57df\u7f51\u4e2d\u5f53\u524d\u6d3b\u52a8\u7684\u8bbe\u5907\uff0c\u5e2e\u52a9\u7ba1\u7406\u5458\u68c0\u67e5\u662f\u5426\u6709\u672a\u6388\u6743\u7684\u8bbe\u5907\u8fde\u63a5\u5230\u7f51\u7edc\u3002<\/li>\n\n\n\n<li><strong>\u9632\u6b62 ARP \u6b3a\u9a97<\/strong>\uff1aARP \u6b3a\u9a97\u653b\u51fb\u662f\u9ed1\u5ba2\u5229\u7528 ARP \u534f\u8bae\u7684\u6f0f\u6d1e\uff0c\u53d1\u9001\u4f2a\u9020\u7684 ARP \u4fe1\u606f\u6765\u6b3a\u9a97\u5176\u4ed6\u8bbe\u5907\u4e0e\u653b\u51fb\u8005\u901a\u4fe1\u3002\u7ba1\u7406\u5458\u53ef\u4ee5\u5b9a\u671f\u68c0\u67e5 ARP \u7f13\u5b58\u8868\uff0c\u786e\u8ba4 IP \u548c MAC \u5730\u5740\u7684\u5339\u914d\u662f\u5426\u6b63\u5e38\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>8. \u4f8b\u5b50\uff1a\u67e5\u770b\u5c40\u57df\u7f51\u7684\u6240\u6709\u8bbe\u5907<\/strong><\/h3>\n\n\n\n<p>\u5728\u8fd0\u884c <code>arp -a<\/code> \u547d\u4ee4\u65f6\uff0c\u7cfb\u7edf\u4f1a\u5217\u51fa\u6240\u6709\u5728 ARP \u7f13\u5b58\u4e2d\u7684\u8bbe\u5907\u3002\u4f8b\u5982\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nC:\\&gt; arp -a\n\n\u63a5\u53e3: 192.168.1.100 --- 0x2\n  Internet \u5730\u5740      \u7269\u7406\u5730\u5740           \u7c7b\u578b\n  192.168.1.1        00-14-22-01-23-45   \u52a8\u6001\n  192.168.1.2        00-14-22-01-23-46   \u52a8\u6001\n  192.168.1.3        00-14-22-01-23-47   \u52a8\u6001\n\n<\/pre><\/div>\n\n\n<p>\u8fd9\u4e2a\u8f93\u51fa\u8868\u660e\uff0c\u5f53\u524d\u7f51\u7edc\u4e2d\u6709\u4e09\u4e2a\u8bbe\u5907\u5206\u522b\u4f7f\u7528\u4e86 <code>192.168.1.1<\/code>\u3001<code>192.168.1.2<\/code> \u548c <code>192.168.1.3<\/code> \u4f5c\u4e3a IP \u5730\u5740\uff0c\u4e14\u5b83\u4eec\u7684 MAC \u5730\u5740\u5206\u522b\u662f <code>00-14-22-01-23-45<\/code>\u3001<code>00-14-22-01-23-46<\/code> \u548c <code>00-14-22-01-23-47<\/code>\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u603b\u7ed3<\/strong><\/h3>\n\n\n\n<p><code>arp -a<\/code> \u662f\u4e00\u4e2a\u975e\u5e38\u6709\u7528\u7684\u547d\u4ee4\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u67e5\u770b\u5c40\u57df\u7f51\u4e2d\u6240\u6709\u8bbe\u5907\u7684 IP \u5730\u5740\u4e0e MAC \u5730\u5740\u7684\u6620\u5c04\u5173\u7cfb\u3002\u901a\u8fc7\u8be5\u547d\u4ee4\uff0c\u53ef\u4ee5\u5e2e\u52a9\u7f51\u7edc\u7ba1\u7406\u5458\u8fdb\u884c\u7f51\u7edc\u6545\u969c\u6392\u67e5\u3001\u8bbe\u5907\u76d1\u63a7\u548c\u9632\u6b62 ARP \u6b3a\u9a97\u7b49\u4efb\u52a1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 Windows \u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0carp -a \u547d\u4ee4\u7528\u4e8e\u67e5\u770b\u5c40\u57df\u7f51\u4e2d\u6240\u6709\u7684 IP &#8230; <a class=\"more-link\" href=\"https:\/\/www.52runoob.com\/index.php\/2025\/12\/20\/cmd%e6%9f%a5%e7%9c%8b%e5%b1%80%e5%9f%9f%e7%bd%91%e6%89%80%e6%9c%89ip%e4%bf%a1%e6%81%af-arp-a-arp%e5%91%bd%e4%bb%a4%e4%bb%8b%e7%bb%8d\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[],"class_list":["post-812","post","type-post","status-publish","format-standard","hentry","category-linux"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/posts\/812","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/comments?post=812"}],"version-history":[{"count":1,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/posts\/812\/revisions"}],"predecessor-version":[{"id":813,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/posts\/812\/revisions\/813"}],"wp:attachment":[{"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/media?parent=812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/categories?post=812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/tags?post=812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}