{"id":152377,"date":"2020-09-07T12:21:18","date_gmt":"2020-09-07T04:21:18","guid":{"rendered":"http:\/\/4563.org\/?p=152377"},"modified":"2020-09-07T12:21:18","modified_gmt":"2020-09-07T04:21:18","slug":"openwrt-%e6%88%90%e5%8a%9f%e8%8e%b7%e5%8f%96-ipv6-%e5%9c%b0%e5%9d%80%e5%8d%b4%e6%97%a0%e6%b3%95%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=152377","title":{"rendered":"OpenWRT \u6210\u529f\u83b7\u53d6 IPv6 \u5730\u5740\u5374\u65e0\u6cd5\u4f7f\u7528"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  OpenWRT \u6210\u529f\u83b7\u53d6 IPv6 \u5730\u5740\u5374\u65e0\u6cd5\u4f7f\u7528               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ZeroSimple <\/span>  <span><i><\/i> 26<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5982\u56fe\uff0c\u8def\u7531\u5668\u548c\u7535\u8111\u90fd\u5df2\u7ecf\u83b7\u53d6\u5230\u4e86 IPv6 \u5730\u5740\uff1a <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/20200907_5f56b4c6b1a3b.jpg\" alt=\"OpenWRT \u6210\u529f\u83b7\u53d6 IPv6 \u5730\u5740\u5374\u65e0\u6cd5\u4f7f\u7528\" \/> <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/20200907_5f56b4c6ce613.jpg\" alt=\"OpenWRT \u6210\u529f\u83b7\u53d6 IPv6 \u5730\u5740\u5374\u65e0\u6cd5\u4f7f\u7528\" \/> \u901a\u8fc7\u7535\u8111\u4f9d\u7136\u65e0\u6cd5\u8bbf\u95ee IPv6\uff1a <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/20200907_5f56b4c70b613.png\" alt=\"OpenWRT \u6210\u529f\u83b7\u53d6 IPv6 \u5730\u5740\u5374\u65e0\u6cd5\u4f7f\u7528\" \/> \u6211\u5c1d\u8bd5 ssh \u5230\u8def\u7531\u5668\uff0c\u76f4\u63a5\u901a\u8fc7\u8def\u7531\u5668\u6d4b\u8bd5 IPv6\uff0c\u53d1\u73b0\u8def\u7531\u5668\u672c\u8eab\u4e5f\u65e0\u6cd5\u4f7f\u7528 IPv6\uff1a <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/20200907_5f56b4c72be45.png\" alt=\"OpenWRT \u6210\u529f\u83b7\u53d6 IPv6 \u5730\u5740\u5374\u65e0\u6cd5\u4f7f\u7528\" \/> \u6c42\u5927\u4f6c\u8bca\u65ad\u4e00\u4e0b\u539f\u56e0\uff08\u6211\u7684\u8fd0\u8425\u5546\u662f\u652f\u6301 IPv6 \u7684\uff0c\u4ee5\u524d\u7528\u8001\u6bdb\u5b50\u7684\u65f6\u5019\u662f\u80fd\u7528\u7684\uff09<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>16<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3051510\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ashong <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u68c0\u67e5\u4e00\u4e0b\u9632\u706b\u5899\u89c4\u5219                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3051511\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wqy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u539f\u56e0\u4e00\uff1a\u7f51\u7edc\u2014\u2014DHCP\u2014\u2014\u9ad8\u7ea7\u8bbe\u7f6e\u4e2d\u52fe\u9009\u4e86\u201c\u7981\u6b62\u89e3\u6790 IPv6 DNS \u8bb0\u5f55\u201d<br \/>\u539f\u56e0\u4e8c\uff1a\u7f51\u7edc\u2014\u2014\u8d1f\u8f7d\u5747\u8861\u2014\u2014\u7b56\u7565\u4e2d\u5907\u7528\u6210\u5458\u662f\u201c\u4e0d\u53ef\u8fbe\uff08\u62d2\u7edd\uff09\u201d\u800c\u4e0d\u662f\u201c\u9ed8\u8ba4\uff08\u4f7f\u7528\u4e3b\u8def\u7531\u8868\uff09\u201d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3051512\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ifxo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6d4b\u8bd5\u7ad9\u6709\u95ee\u9898\uff0c\u6211\u90a3\u5929\u4e5f\u6d4b\u8bd5\u5931\u8d25\uff0c\u5b9e\u9645\u4e0a\u5df2\u7ecf\u6210\u529f\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3051513\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : ZeroSimple <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ashong [![dUtGWt.png]( https:\/\/s1.ax1x.com\/2020\/08\/22\/dUtGWt.png)]( https:\/\/imgchr.com\/i\/dUtGWt)\u9632\u706b\u5899\u89c4\u5219\u5e94\u8be5\u6ca1\u95ee\u9898<br \/>@wqy \u6ca1\u6709\u52fe\u9009\u7981\u6b62\u89e3\u6790 IPv6 DNS \u8bb0\u5f55\uff1b\u8bbe\u7f6e\u7684\u662f\u4e0d\u53ef\u8fbe\uff08\u62d2\u7edd\uff09<br \/>@ifxo \u6d4b\u8bd5\u7ad9\u6ca1\u95ee\u9898\uff0c\u624b\u673a\u7528\u8702\u7a9d\u80fd Ping \u901a\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3051514\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wqy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ZeroSimple \u610f\u601d\u5c31\u662f\u4e0d\u80fd\u8bbe\u7f6e\u4e3a\u201c\u4e0d\u53ef\u8fbe\uff08\u62d2\u7edd\uff09\u201d\uff0c\u8981\u6539\u6210\u201c\u9ed8\u8ba4\uff08\u4f7f\u7528\u4e3b\u8def\u7531\u8868\uff09\u201d\u624d\u884c                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3051515\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : droidmax61 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6240\u4ee5\u6211\u624d\u7ee7\u7eed\u7528\u8001\u6bdb\u5b50                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3051516\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : ZeroSimple <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @wqy \u975e\u5e38\u611f\u8c22\uff0c\u6210\u529f\u4e86\uff0c\u6b64\u5e16\u7ec8\u7ed3                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3051517\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 0A0 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u8bbe\u7f6e\u91cc\u90fd\u786e\u5b9a\u6ca1\u95ee\u9898\u4f46\u8fd8\u662f\u65e0\u6cd5\u89e3\u6790 ipv6 \u7684\u8bdd\uff0c\u53ef\u80fd\u4f60\u7684 openwrt \u9700\u8981\u7528 slaac \u65b9\u5f0f\u624d\u884c\u3002<\/p>\n<p>\u7f51\u9875\u7ba1\u7406\u7aef\uff0c\u8def\u5f84\uff1aNetwork-&gt;Interfaces, \u5220\u9664\u79c1\u6709 IPv6 \u524d\u7f00\u5e76\u4fdd\u5b58<\/p>\n<p>SSH \u767b\u5f55 OpenWRT\uff0c\u4fee\u6539 \/etc\/config\/dhcp \u6587\u4ef6\uff0c\u6dfb\u52a0\u5982\u4e0b\u90e8\u5206\uff0c\u4e0d\u4f7f\u7528 dhcpv6 \u65b9\u5f0f\u914d\u7f6e IPv6\uff0c\u800c\u662f\u4f7f\u7528 SLAAC \u65b9\u5f0f\u914d\u7f6e IPv6 \u3002<\/p>\n<p>config dhcp &#8216;lan&#8217;<br \/> option dhcpv6 &#8216;disabled&#8217;<br \/> option ra &#8216;relay&#8217;<br \/> option ndp &#8216;relay&#8217;<\/p>\n<p>config dhcp &#8216;wan6&#8217;<br \/> option interfere &#8216;wan&#8217;<br \/> option dhcpv6 &#8216;disabled&#8217;<br \/> option ra &#8216;relay&#8217;<br \/> option ndp &#8216;relay&#8217;<br \/> option master &#8216;1&#8217;<br \/>\u4fee\u6539\u4e4b\u540e\u4fdd\u5b58\uff0c\u91cd\u542f odhcpd \u670d\u52a1\uff0c\u5426\u5219\u63a5\u5165\u7ec8\u7aef\u65e0\u6cd5\u83b7\u53d6 IPv6 \u5730\u5740\u3002<\/p>\n<p>\/etc\/init.d\/odhcpd restart<br \/>\u8fd9\u79cd\u65b9\u5f0f\u53ef\u4ee5\u8ba9\u63a5\u5165\u8def\u7531\u5668\u7684\u7ec8\u7aef\uff0c\u83b7\u53d6\u539f\u751f\u7684 IPv6 \u5730\u5740\u3002\u4f46\u6bcf\u6b21\u8def\u7531\u5668\u91cd\u542f\u4e0a\u8ff0\u914d\u7f6e\u5e76\u4e0d\u4f1a\u751f\u6548\uff0c\u9700\u8981\u91cd\u542f\u4e0b odhcpd \u670d\u52a1\uff0c\u63a5\u5165\u8def\u7531\u5668\u7684\u7ec8\u7aef\u65b9\u53ef\u83b7\u53d6 IPv6 \u5730\u5740\u3002<\/p>\n<p>\u53ef\u4ee5\u5728\u5f00\u673a\u542f\u52a8\u811a\u672c \/etc\/rc.local \u4e2d\u6dfb\u52a0\u5982\u4e0b\u811a\u672c\uff0c\u6bcf\u6b21\u5f00\u673a\u7cfb\u7edf\u542f\u52a8 30 \u79d2\u540e\u91cd\u542f odhcpd \u670d\u52a1\u3002<br \/>sleep 30<br \/>\/etc\/init.d\/odhcpd restart                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3051518\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : flyfishcn <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8def\u7531\u5668\u4e0a\u90fd ping \u4e0d\u901a\uff0c\u5927\u6982\u7387\u662f\u6ca1\u6709\u8def\u7531\uff0c\u6216\u8005\u8def\u7531\u4e0d\u5bf9\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3051519\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Chauncey09 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8bf7\u95ee\u8fd9\u4e2a\u662f\u54ea\u4e2a\u56fa\u4ef6\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3051520\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Maskeney <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u663e\u7136 \u4f60\u8fd9\u4e0d\u662f\u5b98\u65b9 OpenWrt \u54ea\u6765\u7684\u56de\u54ea\u95ee\u53bb                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3051521\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sasalemma <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5c31\u662f\u67d0\u4f4d\u201c\u5927\u795e\u201d\u7684\u56fa\u4ef6\u91cc\u52a0\u4e86\u201c\u7981\u6b62\u89e3\u6790 IPv6 DNS \u8bb0\u5f55\u201d\uff0c\u8fd8\u9ed8\u8ba4\u52fe\u9009\u7684\u7ed3\u679c\u6bd4\u8f83\u591a\u3002<\/p>\n<p>op \u539f\u7248\u8fd9\u4e2a\u662f\u6ca1\u6709\u7684\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3051522\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : shikkoku <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Openwrt \u539f\u7248 19.07 \u6ca1\u6709\u201c\u7981\u6b62\u89e3\u6790 IPv6 DNS \u8bb0\u5f55\u201d\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3051523\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cnrting <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u81ea\u4ece\u88ab\u7f51\u4e0a\u6d41\u4f20\u7684\u5404\u79cd\u5927\u795e\u7248\u672c\u5751\u4e86\u4e4b\u540e\u6211\u5c31\u81ea\u5df1\u7f16\u8bd1\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3051524\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : KENNHI <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             nat6 \u53ef\u89e3                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3051525\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ericFork <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fdb\u6765\u4e4b\u524d\u770b\u6807\u9898\u8fd8\u4ee5\u4e3a\u662f\u8fd0\u8425\u5546\u53ea\u7ed9\u4e86 \/64                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>OpenWRT \u6210\u529f\u83b7\u53d6 IPv6&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/152377"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=152377"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/152377\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=152377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=152377"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=152377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}