{"id":279,"date":"2017-01-03T19:15:32","date_gmt":"2017-01-03T11:15:32","guid":{"rendered":"https:\/\/www.jarvisw.com\/?p=279"},"modified":"2017-01-03T19:19:45","modified_gmt":"2017-01-03T11:19:45","slug":"%e5%85%b3%e4%ba%8e%e6%9c%80%e6%96%b0%e7%9a%84openwrt-dd-ipv6%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/www.jarvisw.com\/?p=279","title":{"rendered":"\u5173\u4e8e\u6700\u65b0\u7684Openwrt DD ipv6\u914d\u7f6e"},"content":{"rendered":"<p>\u5b66\u6821\u7684\u7f51\u552f\u4e00\u8fd8\u53ef\u4ee5\u7684\u4e00\u4e2a\u70b9\u5c31\u662f\u63d0\u4f9bipv6\u4e86\uff0c\u867d\u7136\u8bf4\u7ecf\u5e38\u6302\uff0c\u4f46\u597d\u6b79\u80fd\u7528\u7684\u65f6\u5019\u4e0agithub\u901f\u5ea6\u8fd8\u662f\u5f88\u723d\u7684\uff0c\u81ea\u4ece\u66f4\u65b0\u5230\u6700\u65b0\u7684openwrt dd\u4ee5\u540e\uff0c\u53d1\u73b0\u5df2\u7ecf\u548cattitude adjustment\u4e0d\u4e00\u6837\u4e86\uff0cipv6\u5df2\u7ecf\u4e0d\u9700\u8981radvd+kmod-ipv6\u6765\u5b9e\u73b0\u4e2d\u7ee7\u4e86\uff0c\u5728\u65b0\u7248\u672c\u7684openwrt\u4e2d\u4f7f\u7528\u4e86odhcp\u6765\u5b9e\u73b0ipv6\u7684\u8def\u7531\u63a7\u5236\uff0c\u8fd8\u662f\u6298\u817e\u4e86\u4e00\u4f1a\u7684\uff0c\u6700\u540e\u603b\u7b97\u662f\u8ba9ipv6\u50cf\u4ee5\u524d\u4e00\u6837\u6b63\u5e38\u4f7f\u7528\u4e86\uff0c\u8fd9\u91cc\u8bb0\u5f55\u4e00\u4e0b\u914d\u7f6e\uff1a<\/p>\n<p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u89812\u4e2aWAN\u53e3\uff0c\u4e00\u4e2a\u666e\u901awan\uff0c\u4e00\u4e2a\u662f\u8bbe\u7f6e\u4e3adhcpv6-client\u7684wan6\uff0c\u914d\u7f6e\u5982\u4e0b\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-281\" src=\"https:\/\/www.jarvisw.com\/wp-content\/uploads\/2017\/01\/ipv6.png\" alt=\"\" width=\"927\" height=\"472\" srcset=\"https:\/\/www.jarvisw.com\/wp-content\/uploads\/2017\/01\/ipv6.png 927w, https:\/\/www.jarvisw.com\/wp-content\/uploads\/2017\/01\/ipv6-300x153.png 300w, https:\/\/www.jarvisw.com\/wp-content\/uploads\/2017\/01\/ipv6-768x391.png 768w\" sizes=\"auto, (max-width: 927px) 100vw, 927px\" \/><\/p>\n<p>\u5176\u4e2d\uff0cWAN6\u8bbe\u7f6e\u6210DHCPv6-Client\u3002<\/p>\n<p>LAN\u7684\u914d\u7f6e\u5982\u4e0b\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-282\" src=\"https:\/\/www.jarvisw.com\/wp-content\/uploads\/2017\/01\/QQ\u56fe\u724720170103185539.png\" alt=\"\" width=\"918\" height=\"634\" srcset=\"https:\/\/www.jarvisw.com\/wp-content\/uploads\/2017\/01\/QQ\u56fe\u724720170103185539.png 918w, https:\/\/www.jarvisw.com\/wp-content\/uploads\/2017\/01\/QQ\u56fe\u724720170103185539-300x207.png 300w, https:\/\/www.jarvisw.com\/wp-content\/uploads\/2017\/01\/QQ\u56fe\u724720170103185539-768x530.png 768w\" sizes=\"auto, (max-width: 918px) 100vw, 918px\" \/><\/p>\n<p>\u5c06IPv6\u5206\u914d\u957f\u5ea6\u8bbe\u4e3a\u7981\u7528\uff0c\u5e76\u4e14\u5728DHCP\u670d\u52a1\u5668\u7684ipv6\u914d\u7f6e\u4e2d\uff0c\u5c06RA,DHCPv6\u548cNDP\u90fd\u8bbe\u4e3a\u4e2d\u7ee7\u6a21\u5f0f\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-283\" src=\"https:\/\/www.jarvisw.com\/wp-content\/uploads\/2017\/01\/QQ\u56fe\u724720170103185552.png\" alt=\"\" width=\"941\" height=\"316\" srcset=\"https:\/\/www.jarvisw.com\/wp-content\/uploads\/2017\/01\/QQ\u56fe\u724720170103185552.png 941w, https:\/\/www.jarvisw.com\/wp-content\/uploads\/2017\/01\/QQ\u56fe\u724720170103185552-300x101.png 300w, https:\/\/www.jarvisw.com\/wp-content\/uploads\/2017\/01\/QQ\u56fe\u724720170103185552-768x258.png 768w\" sizes=\"auto, (max-width: 941px) 100vw, 941px\" \/><\/p>\n<p>WAN\u6309\u7167\u6b63\u5e38WAN\u7684\u914d\u7f6e\uff0c\u91cd\u70b9\u5728\u8fd9\u91cc\uff0cwan\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u5173\u95edWAN\u4e0a\u7684dhcp\u670d\u52a1\u5668\uff0c\u5e76\u4e14\u5728ipv6\u914d\u7f6e\u4e2d\uff0c\u5c06IPv6\u8bbe\u7f6e\u6210\u548cLAN\u4e00\u6837\u5373RA,DHCPv6\u548cNDP\u90fd\u8bbe\u4e3a\u4e2d\u7ee7\u6a21\u5f0f\uff0c\u5982\u4e0a\u56fe\u3002<\/p>\n<p>\u6700\u540e\uff0c\u5728\u63a5\u53e3\u754c\u9762\u5c06IPv6 ULA\u524d\u7f00\u8bbe\u6210\u7a7a\u767d(\u5982\u679c\u4e0d\u662f\u7a7a\uff0c\u5c31\u5220\u6389)\uff0c\u5982\u4e0b\u56fe\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-284\" src=\"https:\/\/www.jarvisw.com\/wp-content\/uploads\/2017\/01\/QQ\u56fe\u724720170103185512.png\" alt=\"\" width=\"724\" height=\"129\" srcset=\"https:\/\/www.jarvisw.com\/wp-content\/uploads\/2017\/01\/QQ\u56fe\u724720170103185512.png 724w, https:\/\/www.jarvisw.com\/wp-content\/uploads\/2017\/01\/QQ\u56fe\u724720170103185512-300x53.png 300w\" sizes=\"auto, (max-width: 724px) 100vw, 724px\" \/><\/p>\n<p>\u8fd9\u4e9b\u5b8c\u6210\u4e4b\u540e\uff0c\u6211\u4eec\u8fd8\u5dee\u6700\u540e\u4e00\u6b65\uff0c\u8fd9\u4e00\u6b65\u5728\u56fe\u5f62\u754c\u9762\u4e0a\u6ca1\u6cd5\u64cd\u4f5c\uff0c\u53ea\u80fdssh\u8fde\u4e0a\u8def\u7531\u5668\u4e4b\u540e\uff0c\u7f16\u8f91\/etc\/config\/dhcp\uff0c\u627e\u5230\uff1a<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nconfig dhcp 'WAN'\r\n        option interface 'WAN'\r\n        option ignore '1'\r\n        option ra 'relay'\r\n        option dhcpv6 'relay'\r\n        option ndp 'relay'\r\n<\/pre>\n<p>\u5728\u6700\u4e0b\u9762\u589e\u52a0\u4e00\u884coption master &#8216;1&#8217;\uff0c\u4e5f\u5373\u4fee\u6539\u6210\u8fd9\u6837\uff1a<br \/>\nconfig dhcp &#8216;WAN&#8217;<br \/>\noption interface &#8216;WAN&#8217;<br \/>\noption ignore &#8216;1&#8217;<br \/>\noption ra &#8216;relay&#8217;<br \/>\noption dhcpv6 &#8216;relay&#8217;<br \/>\noption ndp &#8216;relay&#8217;<br \/>\n<span style=\"color: #ff0000;\"> option master &#8216;1&#8217;<\/span><\/p>\n<p>\u4fdd\u5b58\u540e\u91cd\u542f\u8def\u7531\u5668\u5373\u53ef\uff0c\u8fd9\u65f6\u5019\u5c40\u57df\u7f51\u5185\u7684\u5ba2\u6237\u673a\u5c31\u53ef\u4ee5\u6b63\u5e38\u83b7\u53d6ipv6\u5730\u5740\u4e86\u3002\u53ef\u4ee5\u53bb<a href=\"http:\/\/ipv6-test.com\">ipv6-test.com<\/a>\u6d4b\u8bd5IPv6\u7684\u8bbf\u95ee\u662f\u5426\u6b63\u5e38\u3002<\/p>\n<p>\u53e6\u5916\u8fd9\u6b21\u91cd\u65b0\u7f16\u8bd1openwrt\u5728\u914d\u7f6e\u7684\u65f6\u5019\u53c8\u88ab\u81ea\u5df1\u5751\u4e86\uff0c\u56e0\u4e3a\u7f16\u8bd1\u4e86mwan3\u8fd9\u4e2a\u63d2\u4ef6\uff0c\u7ed3\u679c\u8fd9\u4e2a\u63d2\u4ef6\u662f\u9ed8\u8ba4\u542f\u7528\u7684\uff0c\u800c\u4e14interface\u540d\u5b57\u548c\u6211\u7684wan\u4e00\u6837\uff0c\u5bfc\u81f4\u6ca1\u6cd5\u4e0a\u7f51\u4e86\uff0c\u7981\u7528\u6389\u8fd9\u4e2a\u63d2\u4ef6\u540e\u5c31\u6b63\u5e38\u4e86\u3002\u771f\u662f\u6bcf\u6b21\u6298\u817eopenwrt\u90fd\u65e0\u5904\u4e0d\u5751\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b66\u6821\u7684\u7f51\u552f\u4e00\u8fd8\u53ef\u4ee5\u7684\u4e00\u4e2a\u70b9\u5c31\u662f\u63d0\u4f9bipv6\u4e86\uff0c\u867d\u7136\u8bf4\u7ecf\u5e38\u6302\uff0c\u4f46\u597d\u6b79\u80fd\u7528\u7684\u65f6\u5019\u4e0agithub\u901f\u5ea6\u8fd8\u662f\u5f88\u723d\u7684\uff0c\u81ea\u4ece [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,5],"tags":[70,64],"class_list":["post-279","post","type-post","status-publish","format-standard","hentry","category-iot","category-5","tag-ipv6","tag-openwrt"],"_links":{"self":[{"href":"https:\/\/www.jarvisw.com\/index.php?rest_route=\/wp\/v2\/posts\/279","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jarvisw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jarvisw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jarvisw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jarvisw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=279"}],"version-history":[{"count":3,"href":"https:\/\/www.jarvisw.com\/index.php?rest_route=\/wp\/v2\/posts\/279\/revisions"}],"predecessor-version":[{"id":287,"href":"https:\/\/www.jarvisw.com\/index.php?rest_route=\/wp\/v2\/posts\/279\/revisions\/287"}],"wp:attachment":[{"href":"https:\/\/www.jarvisw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=279"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jarvisw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=279"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jarvisw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}