{"id":158593,"date":"2020-09-10T18:02:17","date_gmt":"2020-09-10T10:02:17","guid":{"rendered":"http:\/\/4563.org\/?p=158593"},"modified":"2020-09-10T18:02:17","modified_gmt":"2020-09-10T10:02:17","slug":"%e5%b1%80%e5%9f%9f%e7%bd%91%e5%86%85%e5%a4%9a%e4%b8%aa-dhcp-%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%88%86%e5%8f%91-dns-%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=158593","title":{"rendered":"\u5c40\u57df\u7f51\u5185\u591a\u4e2a dhcp \u670d\u52a1\u5668\u5206\u53d1 dns \u7684\u95ee\u9898"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5c40\u57df\u7f51\u5185\u591a\u4e2a dhcp \u670d\u52a1\u5668\u5206\u53d1 dns \u7684\u95ee\u9898               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : MLawliet <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u5c40\u57df\u7f51\u5185\u8dd1\u4e86\u4e00\u53f0 openwrt(192.168.20.241)\u505a\u65c1\u8def\u7531\uff0c\u5f00\u4e86 dhcp \u548c dnsmsaq, \u73b0\u5728\u60f3\u6839\u636e MAC \u7ed9\u9700\u8981 fq \u7684\u8bbe\u5907\u5206\u914d\u7f51\u5173 \/dns \u4e3a openwrt ip<\/p>\n<p>\u4e3b\u8def\u7531 192.168.20.1<\/p>\n<p>\u7f51\u7edc\u662f ipv4+ipv6 \u53cc\u6808<\/p>\n<p>\/etc\/config\/dhcp \u8bbe\u7f6e\u5982\u4e0b<\/p>\n<p>config host<br \/> option mac &#8216;AA:CC:88:B5:55:22&#8217;<br \/> option name &#8216;Nexus6P&#8217;<br \/> option dns &#8216;1&#8217;<br \/> option tag &#8216;custom_gw&#8217;<br \/> option ip &#8216;192.168.20.130&#8217;<\/p>\n<p>config tag &#8216;custom_gw&#8217;<br \/> list dhcp_option &#8216;3,192.168.20.241&#8217;<br \/> list dhcp_option &#8216;6,192.168.20.241&#8217;<br \/> option force &#8216;1&#8217;<\/p>\n<p>\u73b0\u5728\u73b0\u8c61\u662f\u4e0a\u9762\u8fd9\u4e2a\u8bbe\u5907\u83b7\u53d6\u5230\u4e86 192.168.20.241 \u7684\u7f51\u5173\uff0c\u548c 192.168.20.241 \u7684 ipv4 dns, \u8fd9\u6b63\u5e38\uff0c\u4f46\u4ed6\u8fd8\u83b7\u53d6\u5230\u4e00\u4e2a ipv6 \u7684 dns\uff0c\u8fd9\u4e2a\u5730\u5740\u662f\u4e3b\u8def\u7531\u7684 ipv6 \u5730\u5740\uff08 Android \u91cc\u80fd\u770b\u5230 dns \u6709\u4e24\u4e2a\uff09<\/p>\n<p>\u8bbe\u5907\u5728\u8bf7\u6c42 dns \u65f6\u5019\uff0c\u597d\u50cf\u9ed8\u8ba4\u662f\u5148\u8d70 ipv6\uff0c\u8fd9\u6837\u5bfc\u81f4 openwrt \u7684 dns \u6ca1\u8d77\u4f5c\u7528\u3002<\/p>\n<p>\u6211\u60f3\u95ee\u7684\u662f\uff0c\u5f53\u4e00\u4e2a\u5c40\u57df\u7f51\u4e2d\u6709\u591a\u4e2a dhcp \u65f6\uff0c\u4e0d\u662f\u54ea\u4e2a\u670d\u52a1\u5668\u5148\u54cd\u5e94\u5c31\u7528\u54ea\u4e2a\u4e48\uff0c\u53ef\u662f\u4e3a\u4ec0\u4e48\u4e0a\u9762\u7684\u60c5\u51b5\u597d\u50cf\u662f\u540c\u65f6\u63a5\u53d7\u4e86\u4e24\u4e2a dhcp \u7ed9\u7684 dns \uff1f \u5982\u4f55\u8ba9 openwrt \u7684 dns \u4f18\u5148\uff1f\u6216\u8005 openwrt \u5982\u4f55\u8bbe\u7f6e\u80fd\u5206\u914d ipv6 \u7684 dns \u6765\u66ff\u6362\u6389\u73b0\u5728\u83b7\u53d6\u7684\u4e3b\u8def\u7531 ip?<\/p>\n<p>\u6211\u662f\u60f3 openwrt \u5173\u6389\u540e\uff0c\u5c40\u57df\u7f51\u7684\u8bbe\u5907\u4ecd\u7136\u80fd\u4ece\u4e3b\u8def\u7531\u83b7\u53d6 ip\uff0c\u6240\u4ee5\u9700\u8981\u540c\u65f6\u5f00\u7740\u4e24\u4e2a dhcp      <\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>4<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3394595\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Tianao <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             DHCP \u662f DHCP\uff0cDHCPv6 \u662f DHCPv6\uff0cSLAAC \u662f SLAAC\uff0c\u4e3b\u9700\u8981\u5148\u641e\u6e05\u695a\u8fd9\u4e9b v6 \u7684\u53c2\u6570\u662f\u600e\u4e48\u83b7\u53d6\u5230\u7684\u3002\u53ef\u4ee5\u9996\u5148\u80af\u5b9a\u7684\u662f\uff0c\u4e0d\u662f\u901a\u8fc7 IPv4 \u7684 DHCP \u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3394596\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : SenLief <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u597d\u50cf\u65c1\u8def\u7531\u7684 ipv6 \u4e00\u76f4\u6709\u95ee\u9898\u7684\uff0c\u6211\u7684\u65c1\u8def\u7531\u6ca1\u6709\u5f00 dhcpv6                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3394597\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : baobao1270 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             1 \u3001DHCP \u548c DHCPv6 \u662f\u5206\u5f00\u7684\uff0c\u4e00\u5df2\u7ecf\u8bf4\u4e86<br \/>2 \u3001\u5341\u5206\u5efa\u8bae\u4e00\u4e2a\u7f51\u7edc\u53ea\u8bbe\u7f6e\u4e00\u4e2a DHCP \u670d\u52a1\u5668<br \/>3 \u3001\u5982\u679c\u4eba\u5728\u56fd\u5185\uff0c\u5f3a\u70c8\u5efa\u8bae\u5173\u6389 IPv6 \u4ee5\u63d0\u5347\u7f51\u901f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3394598\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : MLawliet <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Tianao \u611f\u8c22\u63d0\u9192\uff0c\u8fd9\u4e9b\u6211\u53c8\u4e86\u89e3\u4e86\u4e0b\uff0c\u4e0d\u8fc7\u73b0\u5728\u8fd8\u662f\u6ca1\u6709\u80fd\u89e3\u51b3\u6211\u95ee\u9898\u7684\u65b9\u6848<br \/>@baobao1270 \u6211\u662f\u60f3\u80fd\u5b9e\u73b0\u5f00\u7740\u65c1\u8def\u7531\u5c31\u8d70\u65c1\u8def\u7531\uff0c\u5173\u4e86\u5c31\u8d70\u4e3b\u8def\u7531\uff0c\u6240\u4ee5\u76ee\u524d\u770b\u5fc5\u987b\u5f97\u5f00\u4e24\u4e2a dhcp\uff0c\u5173\u6389 ipv6 \u53ef\u4ee5\u5b9e\u73b0\uff0c\u4f46\u53c8\u6709\u65b0\u95ee\u9898\uff1a\u6211\u8fd9\u513f\u6ca1\u6709\u516c\u7f51 ipv4\uff0c\u5c40\u57df\u7f51\u6709\u53f0\u8bbe\u5907\u9700\u8981\u5916\u7f51\u8bbf\u95ee\uff0c\u53c8\u4e0d\u60f3\u8d70\u4e2d\u8f6c\u3002\u3002<\/p>\n<p>\u770b\u6765\u53ea\u80fd\u628a\u53bb\u6389\u5f53\u524d\u4e3b\u8def\u7531\uff0c\u628a openwrt \u63d0\u5347\u4e3a\u4e3b\u8def\u7531\u4e86                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5c40\u57df\u7f51\u5185\u591a\u4e2a dhcp \u670d\u52a1\u5668\u5206\u53d1&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\/158593"}],"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=158593"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/158593\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=158593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=158593"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=158593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}