{"id":40,"date":"2024-06-10T17:59:00","date_gmt":"2024-06-10T09:59:00","guid":{"rendered":"https:\/\/zty.ink\/?p=40"},"modified":"2025-09-12T16:58:23","modified_gmt":"2025-09-12T08:58:23","slug":"%e5%9c%a8%e6%a0%a1%e5%9b%ad%e7%bd%91%e7%8e%af%e5%a2%83%e4%b8%ad%e9%85%8d%e7%bd%aeopenwrt%e4%bb%a5%e5%ae%9e%e7%8e%b0ipv6%e4%b8%ad%e7%bb%a7%e5%92%8cipv4%e8%bd%ac%e5%8f%91","status":"publish","type":"post","link":"https:\/\/zty.ink\/?p=40","title":{"rendered":"\u5728\u6821\u56ed\u7f51\u73af\u5883\u4e2d\u914d\u7f6eOpenWrt\u4ee5\u5b9e\u73b0IPv6\u4e2d\u7ee7\u548cIPv4\u8f6c\u53d1"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">\u73af\u5883<\/h1>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/github.com\/SuLingGG\/OpenWrt-Rpi\/releases\/tag\/bcm27xx-bcm2711\">immortalwrt-bcm27xx-bcm2711-rpi-4-squashfs-factory.img(\u6811\u8393\u6d3e 4immortalwrt \u7248\u672c openwrt)<\/a><\/li>\n\n\n\n<li>Linux version 5.4.203 (runner@fv-az1253-223) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r12307-d740b795ef))<\/li>\n\n\n\n<li>\u6821\u56ed\u7f51 IPv4\uff1a\u9700\u8ba4\u8bc1\u4e14\u6709\u8bbe\u5907\u6570\u91cf\u9650\u5236\uff0c\u4e0d\u9009\u62e9\u4e2d\u7ee7<\/li>\n\n\n\n<li>\u6821\u56ed\u7f51 IPv6\uff1a\u65e0 pd\uff0c\u5730\u5740\u6bb5\u4e0d\u591f\u7528<\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\">\u95ee\u9898\u6982\u8ff0<\/h1>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6821\u56ed\u7f51\u73af\u5883\u65e0\u6cd5\u8bbf\u95ee OpenWrt \u5e73\u53f0<\/li>\n\n\n\n<li>OpenWrt Raspi \u7248\u672c\u9ed8\u8ba4\u4e0d\u5f00\u542f IPv6<\/li>\n\n\n\n<li>\u6821\u56ed\u7f51 IPv6 \u65e0 pd\uff0c\u65e0\u6cd5\u518d\u5212\u5206\u5b50\u7f51\uff0c\u56e0\u6b64\u9700\u8981\u6211\u4eec\u4e2d\u7ee7\u4e0a\u4e00\u7ea7\u7f51\u7edc\u7684 IPv6<\/li>\n\n\n\n<li>OpenWrt \u4e0b\u4f7f\u7528\u7edf\u4e00 IPv4 \u5730\u5740\uff0cIPv4 \u4e0d\u8fdb\u884c\u4e2d\u7ee7\uff08\u589e\u52a0\u8bbe\u5907\u6570\u91cf\uff09<\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\">\u524d\u7f6e\u51c6\u5907<\/h1>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u82e5\u521a\u5c06 OpenWrt \u5b89\u88c5\u81f3 SD \u5361\u4e2d\uff0c\u8bf7\u4ece<a href=\"#:r23:\u6821\u56ed\u7f51\u73af\u5883\u4e0b\u767b\u5f55openwrt\u5e76\u8bbe\u7f6e\u57fa\u7840\u7684wan\u53e3\u53calan\u53e3\">\u6821\u56ed\u7f51\u73af\u5883\u4e0b\u767b\u5f55 OpenWrt \u5e76\u8bbe\u7f6e\u57fa\u7840\u7684 WAN \u53e3\u53ca LAN \u53e3<\/a>\u5f00\u59cb\u3002<\/li>\n\n\n\n<li>\u82e5\u5df2\u7ecf\u642d\u5efa\u597d OpenWrt\uff0c\u4f46\u5e0c\u671b\u8fdb\u884c IPv4 \u4e2d\u7ee7\u6216 IPv6 \u8bbf\u95ee\uff0c\u8bf7\u4ece<a href=\"#:r27:\u5f00\u542f\u6d41\u91cf\u8f6c\u53d1\u4ee5\u4f7f\u7528ipv4\">\u5f00\u542f\u6d41\u91cf\u8f6c\u53d1\u4ee5\u4f7f\u7528 ipv4<\/a><\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\">\u6b65\u9aa4<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">\u6821\u56ed\u7f51\u73af\u5883\u4e0b\u767b\u5f55 OpenWrt \u5e76\u8bbe\u7f6e\u57fa\u7840\u7684 WAN \u53e3\u53ca LAN \u53e3<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u8fde\u63a5 OpenWrt &#8211; Raspi<\/h3>\n\n\n\n<p>\u7531\u4e8e OpenWrt \u5b89\u88c5\u597d\u7684\u7cfb\u7edf\u9ed8\u8ba4\u5c06 WAN \u53e3\u548c WiFi \u8bbe\u7f6e\u8fdb\u884c\u6865\u63a5\uff0c\u6240\u4ee5\u65b0\u5b89\u88c5\u7684 OpenWrt \u82e5\u63a5\u5165\u6821\u56ed\u7f51\uff0c\u8fde\u63a5 OpenWrt WiFi \u540e\uff0c\u662f\u65e0\u6cd5\u901a\u8fc7 192.168.1.1 \u8fde\u63a5\u8def\u7531\u5668\u7684\uff0c\u56e0\u6b64\u6b64\u65f6\u6211\u4eec<strong>\u4e0d\u8fde\u63a5\u4efb\u4f55\u7f51\u7edc<\/strong>\uff0c\u76f4\u63a5\u63d2\u7535\u8fdb\u5165 OpenWrt \u540e\u53f0\u8fdb\u884c\u914d\u7f6e<\/p>\n\n\n\n<p>\u8fde\u63a5 WiFi \u540e\u6d4f\u89c8\u5668\u8fdb\u5165\u540e\u53f0\u5730\u5740<code>192.168.1.1<\/code>\uff0c\u9ed8\u8ba4\u5bc6\u7801<code>password<\/code>\u3002\u8fdb\u5165\u540e\u4fee\u6539\u5bc6\u7801\u4ee5\u53ca SSH \u767b\u5f55\u4fe1\u606f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u57fa\u7840 LAN \u53e3\u8bbe\u7f6e<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8fdb\u5165\u7f51\u7edc &#8211; \u63a5\u53e3\uff0c\u4fee\u6539 LAN \u63a5\u53e3\uff0c\u7269\u7406\u8bbe\u7f6e &#8211; \u63a5\u53e3\uff0c\u4ec5\u8bbe\u7f6e\u4e3a<strong>\u65e0\u7ebf\u7f51\u7edc<\/strong>\uff0c\u63d0\u4ea4\u5e76\u4fdd\u5b58\u3002<img decoding=\"async\" src=\"https:\/\/api.zty.ink\/api\/v2\/objects\/file\/z0bf3nklobq6d3c3y8.png\" alt=\"LAN \u63a5\u53e3\u8bbe\u7f6e\"><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u57fa\u7840 WAN \u53e3\u8bbe\u7f6e<\/h3>\n\n\n\n<p>\u6dfb\u52a0\u65b0\u63a5\u53e3\uff0c\u547d\u4ee4\u4e3a WAN\uff0c\u6b64\u63a5\u53e3\u7528\u4e8e\u8fde\u63a5\u4e0a\u7ea7\u7f51\u7edc\uff08\u6821\u56ed\u7f51\uff09\u3002\u5305\u62ec<strong>eth0 \u63a5\u53e3\uff08\u7f51\u7ebf\u63a5\u53e3\uff09<\/strong>\u3002\u5728<strong>\u540e\u9762\u7531\u4e8e\u6821\u56ed\u7f51\u7279\u6b8a\u6784\u9020\uff0c\u6211\u4eec\u9700\u8981\u8bbe\u7f6e\u6210\u9759\u6001 IP \u6a21\u5f0f<\/strong>\uff0c\u4f46\u662f\u7531\u4e8e\u6b64\u8282\u8bb2\u8ff0 OpenWrt \u914d\u7f6e\uff0c\u56e0\u6b64\u6309\u7167\u4e00\u822c\u8bbe\u7f6e\uff0c\u6211\u4eec<strong>\u4f7f\u7528 DHCP<\/strong>\u3002\u63d0\u4ea4\u5e76\u4fdd\u5b58\u3002<img decoding=\"async\" src=\"https:\/\/api.zty.ink\/api\/v2\/objects\/file\/y6qquy3liomddwc1se.png\" alt=\"WAN \u8bbe\u7f6e\"><\/p>\n\n\n\n<p>\u6b64\u65f6\uff0c\u4f60\u5c31\u53ef\u4ee5\u5c06\u7f51\u7ebf\u63d2\u5165\u6821\u56ed\u7f51\uff0c\u4e0d\u5f71\u54cd\u540e\u53f0\u767b\u5f55\u4e86\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5f00\u542f\u6d41\u91cf\u8f6c\u53d1\u4ee5\u4f7f\u7528 IPv4<\/h2>\n\n\n\n<p>\u8fdb\u5165\u7f51\u7edc &#8211; \u9632\u706b\u5899\uff0c\u6dfb\u52a0\u4ece LAN \u5230 WAN \u7684\u8f6c\u53d1\u4ee5\u53ca WAN \u5230 LAN \u7684\u8f6c\u53d1\uff0c\u6253\u5f00\u540e\u5e94\u8be5\u80fd\u6b63\u5e38\u8bbf\u95ee\u6821\u56ed\u7f51\uff0c\u4f46\u4ec5\u6709 IPv4<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/api.zty.ink\/api\/v2\/objects\/file\/hnzn5jncour439n4f0.png\" alt=\"\u6d41\u91cf\u8f6c\u53d1\u8bbe\u7f6e\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u6821\u56ed\u7f51\u73af\u5883\u4e0b\u7684 IPv6 \u4e2d\u7ee7<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e0b\u8f7d\u5e76\u8fd0\u884c ipv6-helper.sh \u5b89\u88c5 v6 \u6a21\u7ec4<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4e0b\u8f7d\u597d https:\/\/openwrt.cc\/scripts\/ipv6-helper.sh \u5e76\u5b89\u88c5 IPv6 \u6a21\u7ec4\uff08\u7531\u4e8e OpenWrt \u6b64\u65f6\u65e0\u6cd5\u6b63\u5e38\u4e0a\u7f51\uff0c\u5efa\u8bae\u4f7f\u7528 SFTP \u7684\u65b9\u5f0f\u4e0a\u4f20 OpenWrt\uff09<\/li>\n\n\n\n<li>\u672c\u7ad9\u4e0b\u8f7d\u5730\u5740\uff1ahttps:\/\/api.zty.ink\/api\/v2\/objects\/file\/c3siwt84ar895u58zt.sh<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282A36\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#f6f6f4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>wget -O ipv6-helper.sh https:\/\/api.zty.ink\/api\/v2\/objects\/file\/c3siwt84ar895u58zt.sh\nchmod +x ipv6-helper.sh &amp;&amp; bash ipv6-helper install<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dracula-soft\" style=\"background-color: #282A36\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #62E884\">wget<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">-O<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">ipv6-helper.sh<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">https:\/\/api.zty.ink\/api\/v2\/objects\/file\/c3siwt84ar895u58zt.sh<\/span><\/span>\n<span class=\"line\"><span style=\"color: #62E884\">chmod<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">+x<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">ipv6-helper.sh<\/span><span style=\"color: #F6F6F4\"> &amp;&amp; <\/span><span style=\"color: #62E884\">bash<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">ipv6-helper<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">install<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u914d\u7f6e WAN6\uff0c\u83b7\u53d6 IPv6 \u6d41\u91cf<\/h3>\n\n\n\n<p>WAN6 \u548c WAN4 \u5176\u5b9e\u662f\u540c\u4e00\u4e2a\u63a5\u53e3\uff0c\u90fd\u4f7f\u7528\u4e86 eth0\uff0c\u4f46\u662f\u4e3a\u4e86\u65b9\u4fbf\u914d\u7f6e\uff0c\u5206\u6210\u4e86\u4e24\u4e2a\u903b\u8f91\u63a5\u53e3\uff0c\u8fd9\u6837\u4e5f\u4f1a\u66f4\u65b9\u4fbf\u6211\u4eec IPv4 \u548c IPv6 \u7684\u5206\u522b\u914d\u7f6e\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6dfb\u52a0\u4e00\u4e2a\u65b0\u7684\u63a5\u53e3 WAN6 \u5c06\u4f20\u8f93\u534f\u8bae\u4fee\u6539\u4e3a DHCPv6\uff0c\u63a5\u53e3\u6dfb\u52a0\u5230 eth0 \u4e2d\uff0c\u4fdd\u5b58\u5e76\u5e94\u7528\uff0c\u8fc7\u4e00\u6bb5\u65f6\u95f4\u53ef\u4ee5\u53d1\u73b0\u6211\u4eec\u5df2\u7ecf\u4ece\u4e0a\u7ea7\u8def\u7531\u5904\u83b7\u5f97\u4e86\u4e00\u4e2a\/64 \u5730\u5740\uff08\u5982\u679c\u4f60\u7684\u4e86\u6bd4\u8fd9\u4e2a\u8ddf\u5c0f\u7684\u5730\u5740\uff0c\u90a3\u4e48\u540e\u9762\u4f60\u5c31\u4e0d\u9700\u8981\u7ee7\u7eed\u770b\u4e86\uff0c\u76f4\u63a5\u4f7f\u7528\u5c31\u597d\uff09\uff0c\u4f46\u8fd9\u4e2a\u5730\u5740\u5176\u5b9e\u5e76\u4e0d\u662f\u6211\u4eec\u8def\u7531\u5668\u80fd\u5206\u914d\u7684\uff08\u975e dp \u63a5\u53e3\uff09\uff0c\u4ec5\u4ec5\u53ea\u662f OpenWrt \u83b7\u5f97\u7684 v6 \u5730\u5740\uff0c\u56e0\u6b64\u6211\u4eec\u5728\u540e\u9762\u9009\u62e9\u8fdb\u884c\u4e2d\u7ee7\u3002\u8fd9\u4e2a DHCPv6 \u5ba2\u6237\u7aef\u662f\u4e3a\u4e86\u83b7\u53d6 ipv6 \u6d41\u91cf\u3002<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/api.zty.ink\/api\/v2\/objects\/file\/c1xmc8wt64jzapt5bp.png\" alt=\"WAN6 \u914d\u7f6e\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u914d\u7f6e WAN \u5230\u9759\u6001\u5730\u5740<\/h3>\n\n\n\n<p>\u7531\u4e8e DHCP \u534f\u8bae\u4e2d\u6ca1\u6709 ipv6 \u8bbe\u7f6e\uff0c\u6240\u4ee5\u6211\u4eec\u9700\u8981\u5c06 WAN \u4fee\u6539\u4e3a\u9759\u6001\u5730\u5740\uff0c\u5f53\u7136\u8fd9\u5e94\u8be5\u662f\u56fe\u5f62\u5316\u754c\u9762\u6ca1\u6709\u4f18\u5316\u5230\u7684\u90e8\u5206\uff0c\u5f53\u7136\u8fd9\u90e8\u5206\u5185\u5bb9\u4e5f\u53ef\u4ee5\u5728<code>\/etc\/config\/dhcp<\/code>\u4e2d\u8fdb\u884c\u914d\u7f6e\uff0c\u6b64\u5904\u6211\u4eec\u9009\u62e9\u76f4\u63a5\u5c06 WAN \u4fee\u6539\u4e3a\u9759\u6001\u5730\u5740\u540e\u914d\u7f6e dhcpv6 \u8bbe\u7f6e\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>IPv4 \u5730\u5740\u586b\u5199\u4f60\u5728 DHCP \u670d\u52a1\u5668\u65f6\u83b7\u53d6\u5230\u7684 IP \u5730\u5740\uff0c\u5b50\u7f51\u63a9\u7801\u548c\u7f51\u5173\u4e5f\u586b\u5199\u5bf9\u5e94\u5185\u5bb9\u5373\u53ef\u3002<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/api.zty.ink\/api\/v2\/objects\/file\/ibhe6g99n7w588et68.png\" alt=\"WAN \u9759\u6001\u914d\u7f6e\"\/><\/figure>\n\n\n\n<p>\u540c\u65f6\u4fee\u6539 WAN \u7684 DHCP \u670d\u52a1\u5668 &#8211; IPv6 \u8bbe\u7f6e\uff0c\u5c06\u4e09\u4e2a\u670d\u52a1\u8bbe\u7f6e\u4e3a<strong>\u4e2d\u7ee7\u6a21\u5f0f<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">LAN \u7684 IPv6 \u4e2d\u7ee7\u8bbe\u7f6e<\/h3>\n\n\n\n<p>\u540c\u4e0a\u4e00\u6b65\uff0c\u7531\u4e8e LAN \u672c\u8eab\u4e3a\u9759\u6001 IP \u5730\u5740\uff0c\u6240\u4ee5\u6211\u4eec\u53ea\u9700\u8981\u4fee\u6539\u5176\u5176 DHCPv6 \u5373\u53ef\uff0c\u540c\u6837\u5168\u90e8\u8bbe\u7f6e\u4e3a\u4e2d\u7ee7\u6a21\u5f0f\u5373\u53ef\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u6307\u5b9a\u4e3b\u63a5\u53e3<\/h3>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282A36\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#f6f6f4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>nano \/etc\/config\/dhcp<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dracula-soft\" style=\"background-color: #282A36\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #62E884\">nano<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">\/etc\/config\/dhcp<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u5728 WAN \u884c\u6dfb\u52a0<code>option master '1'<\/code><\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282A36\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#f6f6f4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>config dhcp 'WAN'\n        option start '100'\n        option leasetime '12h'\n        option limit '150'\n        option interface 'WAN'\n        option ra 'relay'\n        option dhcpv6 'relay'\n        option ndp 'relay'\n        option master '1'<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dracula-soft\" style=\"background-color: #282A36\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #62E884\">config<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">dhcp<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">WAN<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">        <\/span><span style=\"color: #62E884\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">start<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">100<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">        <\/span><span style=\"color: #62E884\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">leasetime<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">12h<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">        <\/span><span style=\"color: #62E884\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">limit<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">150<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">        <\/span><span style=\"color: #62E884\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">interface<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">WAN<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">        <\/span><span style=\"color: #62E884\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">ra<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">relay<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">        <\/span><span style=\"color: #62E884\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">dhcpv6<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">relay<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">        <\/span><span style=\"color: #62E884\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">ndp<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">relay<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">        <\/span><span style=\"color: #62E884\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">master<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">1<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u914d\u7f6e<code>option master '1'<\/code>\u7528\u4e8e\u6307\u5b9a\u4e3b\u63a5\u53e3\u7684\u4f5c\u7528\u662f\u542f\u7528 IPv6 \u4e2d\u7ee7\uff08relay\uff09\u529f\u80fd\u3002IPv6 \u4e2d\u7ee7\u529f\u80fd\u5141\u8bb8\u8def\u7531\u5668\u5c06\u4e0a\u6e38\uff08WAN\uff09\u63a5\u53e3\u83b7\u53d6\u7684 IPv6 \u524d\u7f00\u4fe1\u606f\u8f6c\u53d1\u5230\u4e0b\u6e38\uff08LAN\uff09\u63a5\u53e3\uff0c\u4ece\u800c\u4f7f\u5c40\u57df\u7f51\u4e2d\u7684\u8bbe\u5907\u80fd\u591f\u83b7\u5f97 IPv6 \u5730\u5740\u5e76\u901a\u8fc7\u8def\u7531\u5668\u8bbf\u95ee\u4e92\u8054\u7f51<\/p>\n\n\n\n<p>\u91cd\u542f Network<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282A36\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#f6f6f4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>\/etc\/init.d\/network restart<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dracula-soft\" style=\"background-color: #282A36\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #62E884\">\/etc\/init.d\/network<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">restart<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u5f00\u542f IPv6 DNS \u89e3\u6790<\/h3>\n\n\n\n<p>\u8fdb\u5165\u7f51\u7edc &#8211; DHCP\/DNS &#8211; \u9ad8\u7ea7\u8bbe\u7f6e\uff0c\u5173\u95ed<code>\u7981\u6b62\u89e3\u6790 IPv6 DNS \u8bb0\u5f55<\/code>\u5373\u53ef\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u6dfb\u52a0\u57df\u540d\u767d\u540d\u5355<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u4e8e2025\u5e742\u670818\u65e5\u66f4\u65b0<\/p>\n<\/blockquote>\n\n\n\n<p>\u8fdb\u5165<code>DHCP and DNS<\/code>&#8211;<code>filter<\/code>\uff0c\u6dfb\u52a0\u9700\u8981\u4fee\u6539\u7684\u57df\u540d\u8fdb\u5165\u5230<code>Domain whitelist<\/code>\u5373\u53ef\uff08\u901a\u5e38\u662f\u8ba4\u8bc1\u7f51\u5740\uff09<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u603b\u7ed3<\/h1>\n\n\n\n<p>\u8bf4\u767d\u4e86\uff0c\u5c31\u662f\u4f7f\u7528 OpenWrt \u7684 DHCPv4\uff0c\u4f7f\u7528\u4e0a\u6e38\u8def\u7531\u5668\u7684 DHCPv6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5728\u6821\u56ed\u7f51\u73af\u5883\u4e2d\uff0c\u5229\u7528\u6811\u8393\u6d3e4\u5b89\u88c5\u7684OpenWrt\u7cfb\u7edf\uff0c\u5b9e\u73b0IPv4\u548cIPv6\u5171\u5b58\u7684\u914d\u7f6e\u65b9\u6cd5\u3002\u901a\u8fc7\u914d\u7f6e\u57fa\u7840\u7684WAN\u53e3\u548cLAN\u53e3\u3001\u5f00\u542f\u6d41\u91cf\u8f6c\u53d1\u4ee5\u4f7f\u7528IPv4\u3001\u4e0b\u8f7d\u5e76\u8fd0\u884cipv6-helper\u811a\u672c\u5b89\u88c5IPv6\u6a21\u7ec4\u3001\u914d\u7f6eWAN6\u63a5\u53e3\u83b7\u53d6IPv6\u6d41\u91cf\u3001\u5c06WAN\u63a5\u53e3\u914d\u7f6e\u4e3a\u9759\u6001\u5730\u5740\u4ee5\u53ca\u8bbe\u7f6eLAN\u53e3\u7684IPv6\u4e2d\u7ee7\uff0c\u6700\u7ec8\u5b9e\u73b0\u4e86IPv6\u4e2d\u7ee7\u529f\u80fd\uff0c\u4f7f\u5c40\u57df\u7f51\u4e2d\u7684\u8bbe\u5907\u80fd\u591f\u83b7\u5f97IPv6\u5730\u5740\u5e76\u901a\u8fc7\u8def\u7531\u5668\u8bbf\u95ee\u4e92\u8054\u7f51\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,9,3],"tags":[5],"class_list":["post-40","post","type-post","status-publish","format-standard","hentry","category-openwrt","category-raspi","category-3","tag-5"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5728\u6821\u56ed\u7f51\u73af\u5883\u4e2d\u914d\u7f6eOpenWrt\u4ee5\u5b9e\u73b0IPv6\u4e2d\u7ee7\u548cIPv4\u8f6c\u53d1 - Zero To You<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/zty.ink\/?p=40\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728\u6821\u56ed\u7f51\u73af\u5883\u4e2d\u914d\u7f6eOpenWrt\u4ee5\u5b9e\u73b0IPv6\u4e2d\u7ee7\u548cIPv4\u8f6c\u53d1 - Zero To You\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5728\u6821\u56ed\u7f51\u73af\u5883\u4e2d\uff0c\u5229\u7528\u6811\u8393\u6d3e4\u5b89\u88c5\u7684OpenWrt\u7cfb\u7edf\uff0c\u5b9e\u73b0IPv4\u548cIPv6\u5171\u5b58\u7684\u914d\u7f6e\u65b9\u6cd5\u3002\u901a\u8fc7\u914d\u7f6e\u57fa\u7840\u7684WAN\u53e3\u548cLAN\u53e3\u3001\u5f00\u542f\u6d41\u91cf\u8f6c\u53d1\u4ee5\u4f7f\u7528IPv4\u3001\u4e0b\u8f7d\u5e76\u8fd0\u884cipv6-helper\u811a\u672c\u5b89\u88c5IPv6\u6a21\u7ec4\u3001\u914d\u7f6eWAN6\u63a5\u53e3\u83b7\u53d6IPv6\u6d41\u91cf\u3001\u5c06WAN\u63a5\u53e3\u914d\u7f6e\u4e3a\u9759\u6001\u5730\u5740\u4ee5\u53ca\u8bbe\u7f6eLAN\u53e3\u7684IPv6\u4e2d\u7ee7\uff0c\u6700\u7ec8\u5b9e\u73b0\u4e86IPv6\u4e2d\u7ee7\u529f\u80fd\uff0c\u4f7f\u5c40\u57df\u7f51\u4e2d\u7684\u8bbe\u5907\u80fd\u591f\u83b7\u5f97IPv6\u5730\u5740\u5e76\u901a\u8fc7\u8def\u7531\u5668\u8bbf\u95ee\u4e92\u8054\u7f51\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zty.ink\/?p=40\" \/>\n<meta property=\"og:site_name\" content=\"Zero To You\" \/>\n<meta property=\"article:published_time\" content=\"2024-06-10T09:59:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-09-12T08:58:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/api.zty.ink\/api\/v2\/objects\/file\/z0bf3nklobq6d3c3y8.png\" \/>\n<meta name=\"author\" content=\"zhangtianyi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"zhangtianyi\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/zty.ink\/?p=40\",\"url\":\"https:\/\/zty.ink\/?p=40\",\"name\":\"\u5728\u6821\u56ed\u7f51\u73af\u5883\u4e2d\u914d\u7f6eOpenWrt\u4ee5\u5b9e\u73b0IPv6\u4e2d\u7ee7\u548cIPv4\u8f6c\u53d1 - Zero To You\",\"isPartOf\":{\"@id\":\"https:\/\/zty.ink\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/zty.ink\/?p=40#primaryimage\"},\"image\":{\"@id\":\"https:\/\/zty.ink\/?p=40#primaryimage\"},\"thumbnailUrl\":\"https:\/\/api.zty.ink\/api\/v2\/objects\/file\/z0bf3nklobq6d3c3y8.png\",\"datePublished\":\"2024-06-10T09:59:00+00:00\",\"dateModified\":\"2025-09-12T08:58:23+00:00\",\"author\":{\"@id\":\"https:\/\/zty.ink\/#\/schema\/person\/c80c32751937fc5a8b1a4da22b441f60\"},\"breadcrumb\":{\"@id\":\"https:\/\/zty.ink\/?p=40#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/zty.ink\/?p=40\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/zty.ink\/?p=40#primaryimage\",\"url\":\"https:\/\/api.zty.ink\/api\/v2\/objects\/file\/z0bf3nklobq6d3c3y8.png\",\"contentUrl\":\"https:\/\/api.zty.ink\/api\/v2\/objects\/file\/z0bf3nklobq6d3c3y8.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/zty.ink\/?p=40#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/zty.ink\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728\u6821\u56ed\u7f51\u73af\u5883\u4e2d\u914d\u7f6eOpenWrt\u4ee5\u5b9e\u73b0IPv6\u4e2d\u7ee7\u548cIPv4\u8f6c\u53d1\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/zty.ink\/#website\",\"url\":\"https:\/\/zty.ink\/\",\"name\":\"Zero To You\",\"description\":\"\u6765\u81eazty\u7684\u7b14\u8bb0\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/zty.ink\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/zty.ink\/#\/schema\/person\/c80c32751937fc5a8b1a4da22b441f60\",\"name\":\"zhangtianyi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/zty.ink\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e60fc42ece674655853a6f943c65768079d157b86e45ccdd2ed928e1d62bc47e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e60fc42ece674655853a6f943c65768079d157b86e45ccdd2ed928e1d62bc47e?s=96&d=mm&r=g\",\"caption\":\"zhangtianyi\"},\"sameAs\":[\"http:\/\/172.22.0.14:8080\"],\"url\":\"https:\/\/zty.ink\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5728\u6821\u56ed\u7f51\u73af\u5883\u4e2d\u914d\u7f6eOpenWrt\u4ee5\u5b9e\u73b0IPv6\u4e2d\u7ee7\u548cIPv4\u8f6c\u53d1 - Zero To You","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zty.ink\/?p=40","og_locale":"zh_CN","og_type":"article","og_title":"\u5728\u6821\u56ed\u7f51\u73af\u5883\u4e2d\u914d\u7f6eOpenWrt\u4ee5\u5b9e\u73b0IPv6\u4e2d\u7ee7\u548cIPv4\u8f6c\u53d1 - Zero To You","og_description":"\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5728\u6821\u56ed\u7f51\u73af\u5883\u4e2d\uff0c\u5229\u7528\u6811\u8393\u6d3e4\u5b89\u88c5\u7684OpenWrt\u7cfb\u7edf\uff0c\u5b9e\u73b0IPv4\u548cIPv6\u5171\u5b58\u7684\u914d\u7f6e\u65b9\u6cd5\u3002\u901a\u8fc7\u914d\u7f6e\u57fa\u7840\u7684WAN\u53e3\u548cLAN\u53e3\u3001\u5f00\u542f\u6d41\u91cf\u8f6c\u53d1\u4ee5\u4f7f\u7528IPv4\u3001\u4e0b\u8f7d\u5e76\u8fd0\u884cipv6-helper\u811a\u672c\u5b89\u88c5IPv6\u6a21\u7ec4\u3001\u914d\u7f6eWAN6\u63a5\u53e3\u83b7\u53d6IPv6\u6d41\u91cf\u3001\u5c06WAN\u63a5\u53e3\u914d\u7f6e\u4e3a\u9759\u6001\u5730\u5740\u4ee5\u53ca\u8bbe\u7f6eLAN\u53e3\u7684IPv6\u4e2d\u7ee7\uff0c\u6700\u7ec8\u5b9e\u73b0\u4e86IPv6\u4e2d\u7ee7\u529f\u80fd\uff0c\u4f7f\u5c40\u57df\u7f51\u4e2d\u7684\u8bbe\u5907\u80fd\u591f\u83b7\u5f97IPv6\u5730\u5740\u5e76\u901a\u8fc7\u8def\u7531\u5668\u8bbf\u95ee\u4e92\u8054\u7f51\u3002","og_url":"https:\/\/zty.ink\/?p=40","og_site_name":"Zero To You","article_published_time":"2024-06-10T09:59:00+00:00","article_modified_time":"2025-09-12T08:58:23+00:00","og_image":[{"url":"https:\/\/api.zty.ink\/api\/v2\/objects\/file\/z0bf3nklobq6d3c3y8.png","type":"","width":"","height":""}],"author":"zhangtianyi","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"zhangtianyi","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/zty.ink\/?p=40","url":"https:\/\/zty.ink\/?p=40","name":"\u5728\u6821\u56ed\u7f51\u73af\u5883\u4e2d\u914d\u7f6eOpenWrt\u4ee5\u5b9e\u73b0IPv6\u4e2d\u7ee7\u548cIPv4\u8f6c\u53d1 - Zero To You","isPartOf":{"@id":"https:\/\/zty.ink\/#website"},"primaryImageOfPage":{"@id":"https:\/\/zty.ink\/?p=40#primaryimage"},"image":{"@id":"https:\/\/zty.ink\/?p=40#primaryimage"},"thumbnailUrl":"https:\/\/api.zty.ink\/api\/v2\/objects\/file\/z0bf3nklobq6d3c3y8.png","datePublished":"2024-06-10T09:59:00+00:00","dateModified":"2025-09-12T08:58:23+00:00","author":{"@id":"https:\/\/zty.ink\/#\/schema\/person\/c80c32751937fc5a8b1a4da22b441f60"},"breadcrumb":{"@id":"https:\/\/zty.ink\/?p=40#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zty.ink\/?p=40"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/zty.ink\/?p=40#primaryimage","url":"https:\/\/api.zty.ink\/api\/v2\/objects\/file\/z0bf3nklobq6d3c3y8.png","contentUrl":"https:\/\/api.zty.ink\/api\/v2\/objects\/file\/z0bf3nklobq6d3c3y8.png"},{"@type":"BreadcrumbList","@id":"https:\/\/zty.ink\/?p=40#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/zty.ink\/"},{"@type":"ListItem","position":2,"name":"\u5728\u6821\u56ed\u7f51\u73af\u5883\u4e2d\u914d\u7f6eOpenWrt\u4ee5\u5b9e\u73b0IPv6\u4e2d\u7ee7\u548cIPv4\u8f6c\u53d1"}]},{"@type":"WebSite","@id":"https:\/\/zty.ink\/#website","url":"https:\/\/zty.ink\/","name":"Zero To You","description":"\u6765\u81eazty\u7684\u7b14\u8bb0","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zty.ink\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/zty.ink\/#\/schema\/person\/c80c32751937fc5a8b1a4da22b441f60","name":"zhangtianyi","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/zty.ink\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e60fc42ece674655853a6f943c65768079d157b86e45ccdd2ed928e1d62bc47e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e60fc42ece674655853a6f943c65768079d157b86e45ccdd2ed928e1d62bc47e?s=96&d=mm&r=g","caption":"zhangtianyi"},"sameAs":["http:\/\/172.22.0.14:8080"],"url":"https:\/\/zty.ink\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/zty.ink\/index.php?rest_route=\/wp\/v2\/posts\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zty.ink\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zty.ink\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zty.ink\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zty.ink\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=40"}],"version-history":[{"count":2,"href":"https:\/\/zty.ink\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions"}],"predecessor-version":[{"id":48,"href":"https:\/\/zty.ink\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions\/48"}],"wp:attachment":[{"href":"https:\/\/zty.ink\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zty.ink\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zty.ink\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}