{"id":16146,"date":"2026-06-20T07:55:39","date_gmt":"2026-06-19T23:55:39","guid":{"rendered":"https:\/\/pfchina.org\/?p=16146"},"modified":"2026-07-01T09:12:44","modified_gmt":"2026-07-01T01:12:44","slug":"pfsense-ip-%e9%9d%99%e6%80%81%e7%bb%91%e5%ae%9a%e6%8f%92%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/pfchina.org\/?p=16146","title":{"rendered":"\u9002\u7528\u4e8e pfSense\u3001OPNsense \u7684 IP \u9759\u6001\u7ed1\u5b9a\u63d2\u4ef6"},"content":{"rendered":"<p style=\"text-align: justify;\">\u5728\u65e5\u5e38\u4f7f\u7528\u4e2d\uff0c\u5f88\u591a\u573a\u666f\u90fd\u9700\u8981\u5bf9\u5c40\u57df\u7f51\u7ec8\u7aef\u8fdb\u884c\u56fa\u5b9a IP\/MAC \u7ed1\u5b9a\uff0c\u4f8b\u5982\u529e\u516c\u7f51\u7edc\u3001\u5b9e\u9a8c\u73af\u5883\u3001\u65c1\u8def\u7531\u73af\u5883\u3001\u865a\u62df\u5316\u6d4b\u8bd5\u7f51\u7edc\u7b49\u3002\u4e3a\u4e86\u65b9\u4fbf\u5728 WebGUI \u4e2d\u7ef4\u62a4 ARP \u9759\u6001\u7ed1\u5b9a\u5217\u8868\uff0c\u6211\u4e3a pfSense \u548c OPNsense \u5236\u4f5c\u4e86 MAC\u4e0e IP \u9759\u6001\u7ed1\u5b9a\u63d2\u4ef6\u3002\u63d2\u4ef6\u63d0\u4f9b\u4e86\u4e00\u4e2a\u72ec\u7acb\u7684 WebGUI \u9875\u9762\uff0c\u7528\u4e8e\u67e5\u770b\u5f53\u524d ARP \u8868\u3001\u590d\u5236 ARP \u8bb0\u5f55\u3001\u7ef4\u62a4\u9759\u6001\u7ed1\u5b9a\u8bb0\u5f55\uff0c\u5e76\u53ef\u6309\u63a5\u53e3\u8bbe\u7f6e ARP \u5e94\u7b54\u6a21\u5f0f\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u63d2\u4ef6\u7279\u70b9<\/h2>\n<ul style=\"text-align: justify;\">\n<li>\u4e0d\u8986\u76d6\u7cfb\u7edf\u6587\u4ef6<\/li>\n<li>\u81ea\u52a8\u6392\u9664WAN\u63a5\u53e3<\/li>\n<li>\u6807\u51c6 pkg \u63d2\u4ef6\u5305\u7ed3\u6784<\/li>\n<li>\u652f\u6301\u5f53\u524d ARP \u8868\u590d\u5236<\/li>\n<li>\u652f\u6301\u63a5\u53e3 ARP \u5e94\u7b54\u6a21\u5f0f\u5207\u6362<\/li>\n<li>\u652f\u6301\u751f\u6210\u5ba2\u6237\u7aef ARP \u7ed1\u5b9a\u811a\u672c<\/li>\n<li>\u652f\u6301\u9759\u6001 IP\/MAC \u7ed1\u5b9a\u8bb0\u5f55\u7ef4\u62a4<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u63d2\u4ef6\u4f1a\u6839\u636e\u7cfb\u7edf\u8bed\u8a00\u81ea\u52a8\u5207\u6362\u663e\u793a\u8bed\u8a00\u3002\u652f\u6301\uff1a\u82f1\u6587\u3001\u7b80\u4f53\u4e2d\u6587\u3001\u7e41\u4f53\u4e2d\u6587\u3002\u5982\u679c\u7cfb\u7edf\u8bed\u8a00\u4e0d\u5728\u652f\u6301\u5217\u8868\u4e2d\uff0c\u5219\u9ed8\u8ba4\u663e\u793a\u82f1\u6587\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u5b89\u88c5\u65b9\u6cd5<\/h2>\n<p style=\"text-align: justify;\">\u4f7f\u7528\u6807\u51c6 pkg \u547d\u4ee4\u5b89\u88c5\u3002<\/p>\n<h3 style=\"text-align: justify;\">1.pfSense<\/h3>\n<p style=\"text-align: justify;\">\u5c06\u63d2\u4ef6\u4e0a\u4f20\u5230\u9632\u706b\u5899\uff0c\u5728 shell \u7ec8\u7aef\u73af\u5883\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5 \uff1a<\/p>\n<pre class=\"code\">pkg add -f pfSense-pkg-arp.pkg<\/pre>\n<h3 style=\"text-align: justify;\">2.OPNsense<\/h3>\n<p style=\"text-align: justify;\">\u5728shell \u7ec8\u7aef\u73af\u5883\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5 \uff1a<\/p>\n<pre class=\"code\">pkg add -f os-staticarp.pkg<\/pre>\n<h2 style=\"text-align: justify;\">\u914d\u7f6e\u65b9\u6cd5<\/h2>\n<p style=\"text-align: justify;\">\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5237\u65b0 WebGUI\uff0c\u8fdb\u5165\uff1a\u670d\u52a1 &gt; \u9759\u6001\u7ed1\u5b9a\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/pfchina.org\/wp-content\/uploads\/2026\/06\/arp.png\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/pfchina.org\/wp-content\/uploads\/2026\/06\/arp.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16149\" data-original=\"https:\/\/pfchina.org\/wp-content\/uploads\/2026\/06\/arp.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" width=\"2070\" height=\"1678\" \/><\/div><\/a><\/p>\n<p style=\"text-align: justify;\"><em>pfSense\u914d\u7f6e\u754c\u9762<\/em><\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/pfchina.org\/wp-content\/uploads\/2026\/06\/arp.for_.opnsense.png\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/pfchina.org\/wp-content\/uploads\/2026\/06\/arp.for_.opnsense.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16171\" data-original=\"https:\/\/pfchina.org\/wp-content\/uploads\/2026\/06\/arp.for_.opnsense.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" width=\"2586\" height=\"1430\" \/><\/div><\/a><\/p>\n<p style=\"text-align: justify;\"><em>OPNsense\u914d\u7f6e\u754c\u9762<\/em><\/p>\n<p style=\"text-align: justify;\">\u914d\u7f6e\u5206\u4e3a\u4e24\u90e8\u5206\u3002<\/p>\n<p style=\"text-align: justify;\">\u7b2c\u4e00\u90e8\u5206\u662f\u201c\u63a5\u53e3\u8bbe\u7f6e\u201d\uff0c\u7528\u4e8e\u663e\u793a\u5f53\u524d\u63a5\u53e3\u4fe1\u606f\uff0c\u5305\u62ec\uff1a<\/p>\n<ul style=\"text-align: justify;\">\n<li>\u63a5\u53e3\u540d\u79f0<\/li>\n<li>\u7f51\u7edc\u8bbe\u5907<\/li>\n<li>IP \u5730\u5740<\/li>\n<li>MAC \u5730\u5740<\/li>\n<li>\u63a5\u53e3\u72b6\u6001<\/li>\n<li>ARP \u5e94\u7b54\u6a21\u5f0f<\/li>\n<li>\u5ba2\u6237\u7aef\u811a\u672c\u4e0b\u8f7d<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u7b2c\u4e8c\u90e8\u5206\u662f\u201c\u7ed1\u5b9a\u914d\u7f6e\u201d\uff0c\u7528\u4e8e\u7ef4\u62a4\u7ed1\u5b9a\u8bb0\u5f55\u3002<\/p>\n<p style=\"text-align: justify;\">\u7ed1\u5b9a\u8bb0\u5f55\u683c\u5f0f\u5982\u4e0b\uff1a<\/p>\n<pre class=\"code\">192.168.10.10 00:11:22:33:44:55<\/pre>\n<p style=\"text-align: justify;\">\u6bcf\u884c\u4e00\u6761\u8bb0\u5f55\u3002\u53ef\u4ee5\u70b9\u51fb\u201c\u590d\u5236\u5f53\u524d ARP \u8868\u201d\uff0c\u5c06\u7cfb\u7edf\u5f53\u524d\u5b66\u4e60\u5230\u7684 ARP \u8bb0\u5f55\u590d\u5236\u5230\u7ed1\u5b9a\u8bb0\u5f55\u4e2d\uff0c\u7136\u540e\u6839\u636e\u9700\u8981\u5220\u9664\u4e0d\u9700\u8981\u56fa\u5b9a\u7ed1\u5b9a\u7684\u8bb0\u5f55\u3002<\/p>\n<h3 style=\"text-align: justify;\">\u5e94\u7b54\u6a21\u5f0f<\/h3>\n<p style=\"text-align: justify;\">\u652f\u6301\u4e09\u79cd ARP \u6a21\u5f0f\uff1a<\/p>\n<ul style=\"text-align: justify;\">\n<li>\u6b63\u5e38\u5e94\u7b54\uff1a\u63a5\u53e3\u6309\u7cfb\u7edf\u9ed8\u8ba4\u65b9\u5f0f\u54cd\u5e94 ARP \u8bf7\u6c42\u3002\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\uff0c\u9002\u5408\u666e\u901a\u7f51\u7edc\u73af\u5883\u3002<\/li>\n<li>\u9759\u6001\u5e94\u7b54\uff1a\u63a5\u53e3\u53ea\u54cd\u5e94\u9759\u6001 ARP \u8868\u4e2d\u7684\u5ba2\u6237\u7aef\u3002\u9002\u5408 LAN \u4fa7\u56fa\u5b9a\u7ec8\u7aef\uff0c\u5982\u529e\u516c\u7535\u8111\u3001\u670d\u52a1\u5668\u3001\u7ba1\u7406\u4e3b\u673a\u7b49\u3002<\/li>\n<li>\u53d6\u6d88\u5e94\u7b54\uff1a\u63a5\u53e3\u4e0d\u54cd\u5e94 ARP \u8bf7\u6c42\u3002\u8be5\u6a21\u5f0f\u53ef\u80fd\u5bfc\u81f4\u5ba2\u6237\u7aef\u65e0\u6cd5\u6b63\u5e38\u8bbf\u95ee\u7f51\u5173\uff0c\u9664\u975e\u660e\u786e\u9700\u8981\u9694\u79bb\uff0c\u5426\u5219\u4e0d\u5efa\u8bae\u968f\u610f\u542f\u7528\u3002<\/li>\n<\/ul>\n<h2 style=\"text-align: justify;\">\u5378\u8f7d\u65b9\u6cd5<\/h2>\n<p style=\"text-align: justify;\">\u4f7f\u7528\u6807\u51c6 pkg \u547d\u4ee4\u5378\u8f7d\u3002<\/p>\n<h3 style=\"text-align: justify;\">1.pfSense<\/h3>\n<p style=\"text-align: justify;\">\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u5b89\u5378\u8f7d\u63d2\u4ef6\uff1a<\/p>\n<pre class=\"code\">pkg delete -f pfSense-pkg-arp<\/pre>\n<h3 style=\"text-align: justify;\">2.OPNsense<\/h3>\n<p style=\"text-align: justify;\">\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u5b89\u5378\u8f7d\u63d2\u4ef6\uff1a<\/p>\n<pre class=\"code\">pkg delete os-staticarp<\/pre>\n<h2 style=\"text-align: justify;\">\u6ce8\u610f\u4e8b\u9879<\/h2>\n<p style=\"text-align: justify;\">\u542f\u7528\u9759\u6001\u7ed1\u5b9a\u524d\uff0c\u8bf7\u52a1\u5fc5\u786e\u8ba4\u5f53\u524d\u7ba1\u7406\u4e3b\u673a\u5df2\u7ecf\u52a0\u5165\u7ed1\u5b9a\u8bb0\u5f55\u3002\u5982\u679c\u5c06\u63a5\u53e3\u5207\u6362\u4e3a\u201c\u9759\u6001\u5e94\u7b54\u201d\uff0c\u800c\u7ba1\u7406\u4e3b\u673a\u4e0d\u5728\u7ed1\u5b9a\u5217\u8868\u4e2d\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u65e0\u6cd5\u7ee7\u7eed\u8bbf\u95ee WebGUI\u3002<\/p>\n<p style=\"text-align: justify;\">\u5efa\u8bae\u64cd\u4f5c\u987a\u5e8f\uff1a<\/p>\n<ol style=\"text-align: justify;\" start=\"1\">\n<li>\u5148\u8fdb\u5165\u63d2\u4ef6\u9875\u9762\u3002<\/li>\n<li>\u67e5\u770b\u201c\u5f53\u524d ARP \u8868\u201d\u3002<\/li>\n<li>\u70b9\u51fb\u201c\u590d\u5236\u5f53\u524d ARP \u8868\u201d\u3002<\/li>\n<li>\u786e\u8ba4\u7ba1\u7406\u7535\u8111\u7684 IP\/MAC \u5df2\u5728\u7ed1\u5b9a\u8bb0\u5f55\u4e2d\u3002<\/li>\n<li>\u5220\u9664\u4e0d\u9700\u8981\u56fa\u5b9a\u7ed1\u5b9a\u7684\u8bb0\u5f55\u3002<\/li>\n<li>\u52fe\u9009\u542f\u7528\u9759\u6001 ARP \u7ed1\u5b9a\u3002<\/li>\n<li>\u4fdd\u5b58\u914d\u7f6e\u3002<\/li>\n<\/ol>\n<h2 style=\"text-align: justify;\">\u6d4b\u8bd5\u73af\u5883<\/h2>\n<p style=\"text-align: justify;\">\u5728\u4ee5\u4e0b\u73af\u5883\u6d4b\u8bd5\u901a\u8fc7\uff1a<\/p>\n<ul style=\"text-align: justify;\">\n<li>OPNsense 26.1.10<\/li>\n<li>pfSense CE 2.8.1<\/li>\n<li>pfSense plus 26.03.1<\/li>\n<\/ul>\n<h2 style=\"text-align: justify;\">\u9644\u4ef6\u4e0b\u8f7d<\/h2>\n<ul>\n<li style=\"text-align: justify;\"><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/pfchina.org\/wp-content\/uploads\/2026\/07\/pfSense-pkg-arp.zip\"><strong>pfSense-pkg-arp<\/strong><\/a><\/span><\/li>\n<li style=\"text-align: justify;\"><span style=\"color: #0000ff;\"><strong><a style=\"color: #0000ff;\" href=\"https:\/\/pfchina.org\/wp-content\/uploads\/2026\/06\/os-staticarp.zip\">Staticarp for OPNsense<\/a><\/strong><\/span><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u65e5\u5e38\u4f7f\u7528\u4e2d\uff0c\u5f88\u591a\u573a\u666f\u90fd\u9700\u8981\u5bf9\u5c40\u57df\u7f51\u7ec8\u7aef\u8fdb\u884c\u56fa\u5b9a IP\/MAC \u7ed1\u5b9a\uff0c\u4f8b\u5982\u529e\u516c\u7f51\u7edc\u3001\u5b9e\u9a8c\u73af\u5883\u3001\u65c1\u8def\u7531\u73af\u5883\u3001\u865a\u62df [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,28],"tags":[111],"class_list":["post-16146","post","type-post","status-publish","format-standard","hentry","category-opnsense","category-pfsense","tag-arp"],"_links":{"self":[{"href":"https:\/\/pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/16146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pfchina.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pfchina.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pfchina.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16146"}],"version-history":[{"count":24,"href":"https:\/\/pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/16146\/revisions"}],"predecessor-version":[{"id":16181,"href":"https:\/\/pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/16146\/revisions\/16181"}],"wp:attachment":[{"href":"https:\/\/pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}