{"id":1683,"date":"2026-03-23T14:23:08","date_gmt":"2026-03-23T06:23:08","guid":{"rendered":"https:\/\/www.jchj.top\/?p=1683"},"modified":"2026-04-24T18:07:26","modified_gmt":"2026-04-24T10:07:26","slug":"ubuntu%e9%95%bf%e6%9c%9f%e6%9c%8d%e5%8a%a1%e7%89%88%e5%ae%89%e8%a3%85gitlabgitlab-runne","status":"publish","type":"post","link":"https:\/\/www.jchj.top\/?p=1683","title":{"rendered":"\u534e\u4e3a\u4ea4\u6362\u673a\u7981\u7528\u67d0\u4e2aip\u5730\u5740"},"content":{"rendered":"\n<p>1\uff1b\u5982\u679c\u7684\u662f\u5168\u5c40\u5730\u5740\u6c60\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u547d\u4ee4\u3002<\/p>\n\n\n\n<p>[Huawei-ip-pool-vlan10] dhcp server forbidden-mac 00e0-fc12-3456<\/p>\n\n\n\n<p>\u4e5f\u5c31\u53ef\u4ee5\u914d\u7f6eACL\u7b56\u7565 \u62d2\u7edd\u6d41\u91cf\u901a\u8fc7<\/p>\n\n\n\n<p>[Huawei] acl number 3000 # \u521b\u5efa\u9ad8\u7ea7ACL\uff083000-3999\u7528\u4e8e\u4e09\u5c42IP\u6d41\u91cf\u63a7\u5236\uff09<\/p>\n\n\n\n<p>[Huawei-acl-adv-3000] rule deny ip source 192.168.1.100 0 # \u62d2\u7edd\u6e90IP\u4e3a192.168.1.100\u7684\u6240\u6709IP\u6d41\u91cf<\/p>\n\n\n\n<p>[Huawei-acl-adv-3000] quit # \u9000\u51faACL\u89c6\u56fe<\/p>\n\n\n\n<p>2\uff1b\u4e34\u65f6\u542f\u7528\u4e5f\u53ef\u4ee5\u542f\u7528\u914d\u7f6eMAC\u9ed1\u540d\u5355<\/p>\n\n\n\n<p>[Huawei] display mac-address blackhole<\/p>\n\n\n\n<p>[Huawei] mac-address blackhole 00e0-fc12-3456 vlan 10<\/p>\n\n\n\n<p>[Huawei] display mac-address blackhole<\/p>\n\n\n\n<p>MAC Address VLAN\/VSI\/SI Port Type Aging<\/p>\n\n\n\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n\n\n\n<p>00e0-fc12-3456 10 &#8211; blackhole static<\/p>\n\n\n\n<p>\u5220\u9664\u914d\u7f6e\uff1a\u82e5\u9700\u53d6\u6d88\u62e6\u622a\uff0c\u4f7f\u7528 undo \u547d\u4ee4\uff1a<\/p>\n\n\n\n<p>[Huawei] undo mac-address blackhole 00e0-fc12-3456 vlan 10<\/p>\n\n\n\n<p>\u624b\u52a8\u6e05\u9664\u7279\u5b9a ARP \u8868\u9879<\/p>\n\n\n\n<p>&lt;Huawei&gt; reset arp static ip-address &lt;\u76ee\u6807IP&gt; # \u6e05\u9664\u9759\u6001ARP\uff08\u82e5\u6709\uff09<\/p>\n\n\n\n<p>&lt;Huawei&gt; reset arp dynamic ip-address &lt;\u76ee\u6807IP&gt; # \u6e05\u9664\u52a8\u6001ARP\uff08\u6309IP\u6e05\u9664\uff09<\/p>\n\n\n\n<p>\u6216\u6309\u7167 MAC \u5730\u5740\u6e05\u9664<\/p>\n\n\n\n<p>&lt;Huawei&gt; reset arp dynamic mac-address &lt;\u76ee\u6807MAC&gt;<\/p>\n\n\n\n<p>3\uff1b\u4e5f\u53ef\u914d\u7f6e ARP \u9ed1\u540d\u5355\uff08\u963b\u6b62 ARP \u5b66\u4e60\uff09<\/p>\n\n\n\n<p>\u901a\u8fc7 ACL \u9650\u5236\u8be5 MAC \u7684 ARP \u62a5\u6587\uff0c\u963b\u6b62\u8bbe\u5907\u5b66\u4e60\u5176 ARP \u6620\u5c04\uff1a<\/p>\n\n\n\n<p>[Huawei] acl number 4000 # \u57fa\u672cACL\uff084000-4999\u7528\u4e8e\u4e8c\u5c42MAC\u8fc7\u6ee4\uff09<\/p>\n\n\n\n<p>[Huawei-acl-L2-4000] rule deny source-mac &lt;\u76ee\u6807MAC&gt; 0-0-0 # \u62d2\u7edd\u6e90MAC\u4e3a\u76ee\u6807\u7684\u62a5\u6587<\/p>\n\n\n\n<p>[Huawei-acl-L2-4000] quit<\/p>\n\n\n\n<p>[Huawei] interface &lt;\u63a5\u53e3\u540d&gt; # \u8be5MAC\u6240\u5728\u7684\u63a5\u53e3<\/p>\n\n\n\n<p>[Huawei-&lt;\u63a5\u53e3\u540d&gt;] traffic-filter inbound acl 4000 # \u5165\u65b9\u5411\u8fc7\u6ee4\u8be5MAC\u7684\u6240\u6709\u62a5\u6587\uff08\u5305\u62ecARP\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\uff1b\u5982\u679c\u7684\u662f\u5168\u5c40\u5730\u5740\u6c60\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u547d\u4ee4\u3002 [Hua&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,10],"tags":[],"class_list":["post-1683","post","type-post","status-publish","format-standard","hentry","category-19","category-10"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.jchj.top\/index.php?rest_route=\/wp\/v2\/posts\/1683","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jchj.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jchj.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jchj.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jchj.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1683"}],"version-history":[{"count":2,"href":"https:\/\/www.jchj.top\/index.php?rest_route=\/wp\/v2\/posts\/1683\/revisions"}],"predecessor-version":[{"id":1686,"href":"https:\/\/www.jchj.top\/index.php?rest_route=\/wp\/v2\/posts\/1683\/revisions\/1686"}],"wp:attachment":[{"href":"https:\/\/www.jchj.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1683"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jchj.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1683"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jchj.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1683"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}