{"id":256230,"date":"2024-07-21T15:00:00","date_gmt":"2024-07-21T07:00:00","guid":{"rendered":"https:\/\/blog.zhenglei.net\/?p=256230"},"modified":"2024-07-21T15:00:00","modified_gmt":"2024-07-21T07:00:00","slug":"%e7%bb%99%e5%ae%b6%e4%b8%ad%e7%9a%84%e6%9c%8d%e5%8a%a1%e5%99%a8-%e5%88%86%e9%85%8d-ipv6%e5%85%ac%e7%bd%91%e5%9c%b0%e5%9d%80","status":"publish","type":"post","link":"https:\/\/blog.zhenglei.net\/?p=256230","title":{"rendered":"\u7ed9\u5bb6\u4e2d\u7684\u670d\u52a1\u5668,   \u5206\u914d IPv6\u516c\u7f51\u5730\u5740"},"content":{"rendered":"\n<p>\u6761\u4ef6:  <\/p>\n\n\n\n<p>           \u4e2d\u56fd\u7535\u4fe1\u5149\u732b,  Openwrt \u8def\u7531\u5668,  \u963f\u91cc\u4e91\u57df\u540d<\/p>\n\n\n\n<p>Step 1:      \u8def\u7531\u5668\u5347\u7ea7, \u6700\u65b0\u7248 OpenWrt \/ 23.05.03     <\/p>\n\n\n\n<p>Step 2:      \u4ece\u7535\u4fe1\u83b7\u5f97 \u5bbd\u5e26\u5e10\u53f7\/\u5bbd\u5e26\u5bc6\u7801<\/p>\n\n\n\n<p>Step 3:      \u8bbe\u7f6e\u5149\u732b\u4e3aBridge \u6a21\u5f0f<\/p>\n\n\n\n<p>Step 4:     \u8def\u7531\u5668 Lan \u63a5\u53e3 IPv4  \u5730\u5740\u8bbe\u7f6e\u4e3a 10.0.0.1<\/p>\n\n\n\n<p>Step 5:    \u8def\u7531\u5668 Wan \u63a5\u53e3 \u4fee\u6539\u4e3a PPPoE \u6a21\u5f0f,   PAP\/CHAP username\/password \u586b\u5165\u4ece\u7535\u4fe1\u83b7\u5f97\u7684\u3000\u5bbd\u5e26\u5e10\u53f7\uff0f\u5bbd\u5e26\u5bc6\u7801<\/p>\n\n\n\n<p>Step 6:    \u56e0\u4e3aPPPoE \u62e8\u53f7\u4f1a\u540c\u65f6\u83b7\u5f97 IPv4 \u548c IPv6\u5730\u5740\uff0cwan6 \u63a5\u53e3\u6ca1\u7528\uff0c\u5220\u9664wan6\u63a5\u53e3<\/p>\n\n\n\n<p>Step 7:   \u91cd\u8d77wan\u63a5\u53e3\uff0c\u4f1a\u81ea\u52a8\u62e8\u53f7\uff0c\u82e5\u6210\u529f\uff0c\u81ea\u52a8\u589e\u52a0wan_6\u865a\u62df\u63a5\u53e3\uff0cIPv6 \u548cIPv6-PD<\/p>\n\n\n\n<p>Step 8:   \u4fee\u6539Lan\u63a5\u53e3Advanced Setting\uff1a<\/p>\n\n\n\n<p>                   Delegate IPv6 prefixes = yes<\/p>\n\n\n\n<p>                   IPv6 assignment length = 60<\/p>\n\n\n\n<p>                  IPv6 prefix filter = wan_6<\/p>\n\n\n\n<p>Step 9:   \u4fee\u6539\u8def\u7531\u5668 network\/dhcp\/Static Leases,  \u4e3a\u6bcf\u4e2aIPv6\u516c\u7f51\u7f51\u5361\u589e\u52a0\u4e00\u9879\u7eaa\u5f55\uff1a<\/p>\n\n\n\n<p>               \u5305\u62ec:  Hostname, Mac \u5730\u5740\uff0cIPv4\uff0cIPv6-Suffix\uff0c<\/p>\n\n\n\n<p>                          \u4e3a\u65b9\u4fbf\u8bb0\u5fc6\uff0c\u6211\u9009\u62e9 IPv4 \u6700\u540e\u4e00\u680f\u4e0eIPv6-Suffix \u76f8\u540c\uff0c<\/p>\n\n\n\n<p>                           \u6bd4\u5982\uff0cmpd IPv4=10.0.0.222,  mpd\u7684IPv6-Suffix \u8bbe\u7f6e\u4e3a0222<\/p>\n\n\n\n<p>Step 10\uff1a \u6839\u636e\u5e94\u7528\u9700\u8981\uff0c\u4fee\u6539\u57fa\u4e8e\u7aef\u53e3\u7684\u9632\u706b\u5899\uff1aNetwork\/Firewall\/TrafficRules \u589e\u52a0\u7eaa\u5f55                <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u81f3\u6b64\uff0c\u8def\u7531\u5668\u8bbe\u7f6e\u5b8c\u6bd5<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>\u57df\u540d\u66f4\u65b0<\/strong><\/p>\n\n\n\n<p>\u7531\u4e8e\u6bcf\u6b21\u62e8\u53f7\uff0c\u90fd\u4f1a\u83b7\u5f97\u4e00\u4e2a\u4e0d\u540c\u7684IPv6-PD\u503c<\/p>\n\n\n\n<p>\u53ef\u4ee5\u4f7f\u7528\u811a\u672c\u7a0b\u5e8f\uff0c\u76d1\u63a7\u8def\u7531\u5668\u4e2d\u7684IPv6-PD\u503c\uff0c\u82e5\u6709\u53d8\u5316\uff0c\u8c03\u7528\u57df\u540d\u670d\u52a1\u5546\u7684API\u63a5\u53e3\uff0c\u66f4\u65b0IPv6\u503c<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/zhengleic\/ddns-aliyun\">https:\/\/github.com\/zhengleic\/ddns-aliyun<\/a><\/p>\n\n\n\n<p>  <\/p>\n\n\n\n<p><strong>\u5b58\u5728\u95ee\u9898<\/strong>\uff1a<\/p>\n\n\n\n<p>   \u53d1\u73b0\u91cd\u65b0\u62e8\u53f7\uff0cIPv6-PD\u53d8\u5316\u540e\uff0c\u5e94\u7528\u670d\u52a1\u5668\u53ef\u4ee5\u81ea\u52a8\u83b7\u5f97\u65b0\u7684IPv6\uff0c\u5e76\u8bbf\u95ee\u5916\u90e8\u7f51\u7edc\uff0c\u4f46\u65e0\u6cd5\u4ece\u5916\u90e8\u7f51\u7edc\u8bbf\u95ee\u5e94\u7528\u670d\u52a1\u5668<\/p>\n\n\n\n<p>   \u539f\u56e0\u4e0d\u8be6\uff0c \u5e94\u7528\u670d\u52a1\u5668\u4e3aDebian 10<\/p>\n\n\n\n<p>   \u89e3\u51b3\u529e\u6cd5\uff1a<\/p>\n\n\n\n<p>          \u66f4\u65b0\u57df\u540d\u540e\uff0c\u540c\u65f6\u5c06\u5e94\u7528\u670d\u52a1\u5668\u7684\u7f51\u5361down\/up\u4e00\u6b21:  ifdown dev \/ ifup dev<\/p>\n\n\n\n<p><p>      <\/p><\/p>\n\n\n\n<p><p>  <\/p><\/p>\n\n\n\n<p>        <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6761\u4ef6: \u4e2d\u56fd\u7535\u4fe1\u5149\u732b, Openwrt \u8def\u7531\u5668, \u963f\u91cc\u4e91\u57df\u540d Step 1: \u8def &hellip; <a href=\"https:\/\/blog.zhenglei.net\/?p=256230\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,2,233],"tags":[413,73,204],"class_list":["post-256230","post","type-post","status-publish","format-standard","hentry","category-internet","category-linux","category-openwrt","tag-ipv6","tag-linux-2","tag-openwrt"],"_links":{"self":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/256230","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=256230"}],"version-history":[{"count":2,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/256230\/revisions"}],"predecessor-version":[{"id":256232,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/256230\/revisions\/256232"}],"wp:attachment":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=256230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=256230"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=256230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}