id: 5709328514e84d25b6b67f7d8a3920bc
parent_id: 
item_type: 1
item_id: 0d246a9384664db8a4e7c429bdc8ba13
item_updated_time: 1764345470353
title_diff: "[{\"diffs\":[[1,\"设置 OpenWrt 指定主机DHCP 获取不同网关DNS\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":29}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>设置 OpenWrt 指定主机DHCP 获取不同网关DNS</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"4794\\\"></a>\\\r\\\n<h1>设置 OpenWrt 指定主机DHCP 获取不同网关DNS</h1>\\\r\\\n\\\r\\\n<div>\\\n<span><div><br/></div><div style=\\\"min-height: 1724px; font-size: 16px; min-width: 100%;\\\"><div style=\\\"background-color: transparent; font-size: inherit; vertical-align: baseline;\\\"><div style=\\\"background-color: transparent; vertical-align: baseline; font-size: 16px; text-align: left;\\\"><div style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><div style=\\\"margin: 0px auto; padding: 0px 2em; border: 0px; font-size: inherit; vertical-align: baseline; width: 36em; z-index: 200; position: relative;\\\"><div style=\\\"margin: 0px 25px 0px -25px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; position: relative;\\\"><div style=\\\"margin: 0px; padding: 0px 0px 9em; border: 0px; font-size: inherit; vertical-align: baseline; position: relative;\\\"><div style=\\\"margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><div style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; position: relative;\\\"><div style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><div style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><h1 style=\\\"text-align: left; border: 0px; vertical-align: baseline; font-size: 35px; padding: 0px; margin: 0px;\\\"><span style=\\\"font-size: 35px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">设置 OpenWrt 指定主机DHCP 获取不同网关DNS</span></h1><div style=\\\"padding: 1.5em 0px; border: 0px; font-size: inherit; vertical-align: baseline; position: relative; height: 1em; text-align: center; margin: 0px;\\\"><div style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;background:-webkit-linear-gradient(0deg, rgb(243, 242, 238) 1%, rgb(31, 9, 9) 50%, rgb(243, 242, 238) 99%);position:absolute;left:-4em;top:50%;z-index:10;width:100%;padding-left:4em;padding-right:4em;height:0.1em;opacity:0.5;margin:0px;margin-bottom:0px;\\\"></div></div></div><div><span style=\\\"font-size: inherit; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: italic; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\\\">本帖最后由 sires 于 2022-4-23 18:22 编辑</span></div><div><br/></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">为了旁路由指定 网关和DNS</span></div><div><br/></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">编辑 /etc/config/dhcp</span></div><div><br/></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">举例：</span></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">定义主机----</span></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">config host</span></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">        option ip      </span> <span style=\\\"font-size: inherit; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: italic; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\\\">'192.168.1.3'                                          -----指定IP地址（可不设）----------</span></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"> </span> <span style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; background-color: rgb(255, 250, 165); transition: background-color 0.4s ease 0s; color: black; font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: unset;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">      option mac      </span><i style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; background-color: rgb(255, 250, 165); transition: background-color 0.4s ease 0s; color: black; font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: unset;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">'11:22:33:44:55:66 aa:bb:cc:dd:ee:ff'    -------MAC地址（必须）---------</span></i></div><div><span style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; background-color: rgb(255, 250, 165); transition: background-color 0.4s ease 0s; color: black; font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: unset;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">        option tag      </span><i style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; background-color: rgb(255, 250, 165); transition: background-color 0.4s ease 0s; color: black; font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: unset;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">'need_outernet'                                    -------指定标签（必设 名字可自选）</span></i></div><div><br/></div><div><span style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; background-color: rgb(255, 250, 165); transition: background-color 0.4s ease 0s; color: black; font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: unset;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">config tag</span> <i style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; background-color: rgb(255, 250, 165); transition: background-color 0.4s ease 0s; color: black; font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: unset;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">'need_outernet'                                                 -------定义标签，名字可自选--------</span></i></div><div><span style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; background-color: rgb(255, 250, 165); transition: background-color 0.4s ease 0s; color: black; font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: unset;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">        list dhcp_option</span> <i style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; background-color: rgb(255, 250, 165); transition: background-color 0.4s ease 0s; color: black; font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: unset;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">'3, 192.168.1.2'                                 ------定义参数 ，3为指定网关 ，6为指定DNS</span></i></div><div><span style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; background-color: rgb(255, 250, 165); transition: background-color 0.4s ease 0s; color: black; font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: unset;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">list dhcp_option</span> <i style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; background-color: rgb(255, 250, 165); transition: background-color 0.4s ease 0s; color: black; font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: unset;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">'6, 192.168.1.2'</span></i></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">       </span><span style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; background-color: rgb(255, 250, 165); transition: background-color 0.4s ease 0s; color: black; font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: unset;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\"> option force</span> <i style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; background-color: rgb(255, 250, 165); transition: background-color 0.4s ease 0s; color: black; font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: unset;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">'1'                                                         -------强制优先？？？猜的</span></i></div><div><br/></div><div><br/></div><div><span style=\\\"font-size: inherit; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: italic; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\\\">-----</span><span style=\\\"font-size: inherit; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: italic; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\\\">-----------------------------</span></div><div><span style=\\\"font-size: inherit; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: italic; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\\\">今天做的实例：</span></div><div><span style=\\\"font-size: inherit; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: italic; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\\\">-------可以多主机定义一个标签。</span></div><div><br/></div><div><span style=\\\"font-size: inherit; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: italic; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\\\">config host</span></div><div><span style=\\\"font-size: inherit; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: italic; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\\\">        option mac      '00:AA:4C:C5:12:38'</span></div><div><span style=\\\"font-size: inherit; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: italic; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\\\">        option tag      'need_outernet'</span></div><div><br/></div><div><span style=\\\"font-size: inherit; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: italic; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\\\">config host</span></div><div><span style=\\\"font-size: inherit; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: italic; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\\\">        option mac      '5C:CC:E6:46<img src=\\\":/749daaf504074891bdfc1582a6042f44\\\" type=\\\"image/gif\\\" data-filename=\\\"biggrin.gif\\\" height=\\\"20\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;\\\" width=\\\"20\\\"/>8:AA'</span></div><div><span style=\\\"font-size: inherit; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: italic; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\\\">        option tag      'need_outernet'</span></div><div><br/></div><div><span style=\\\"font-size: inherit; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: italic; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\\\">config tag 'need_outernet'</span></div><div><span style=\\\"font-size: inherit; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: italic; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\\\">        list dhcp_option '3, 192.168.0.11'</span></div><div><span style=\\\"font-size: inherit; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: italic; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\\\">        option force '1'</span></div><div><br/></div><div><span style=\\\"font-size: inherit; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: italic; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\\\">config host</span></div><div><span style=\\\"font-size: inherit; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: italic; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\\\">        option ip   '192.168.0.64'</span></div><div><span style=\\\"font-size: inherit; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: italic; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\\\">        option mac    'DC<img src=\\\":/441b1163f7d641a0b0b0596c477f29af\\\" type=\\\"image/gif\\\" data-filename=\\\"biggrin.gif\\\" height=\\\"20\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;\\\" width=\\\"20\\\"/>8:7C:4A:FS:12'</span></div><div><span style=\\\"font-size: inherit; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: italic; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\\\">        option tag      'JDclube'</span></div><div><br/></div><div><span style=\\\"font-size: inherit; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: italic; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\\\">config host</span></div><div><span style=\\\"font-size: inherit; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: italic; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\\\">        option ip       '192.168.0.61'</span></div><div><span style=\\\"font-size: inherit; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: italic; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\\\">        option mac    'DC<img src=\\\":/c504205289234cb48aba67f068f4aa33\\\" type=\\\"image/gif\\\" data-filename=\\\"biggrin.gif\\\" height=\\\"20\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;\\\" width=\\\"20\\\"/>8:7C:WE:47:26'</span></div><div><span style=\\\"font-size: inherit; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: italic; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\\\">        option tag      'JDclube'</span></div><div><br/></div><div><span style=\\\"font-size: inherit; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: italic; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\\\">config tag  'JDclube'</span></div><div><span style=\\\"font-size: inherit; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: italic; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\\\">        list dhcp_option '3, 192.168.0.1'</span></div><div><span style=\\\"font-size: inherit; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: italic; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\\\">        option force '1'</span></div><div><br/></div><div><br/></div><div><br/></div></div></div></div></div></div></div></div></div></div></div></span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":15810}]"
metadata_diff: {"new":{"id":"0d246a9384664db8a4e7c429bdc8ba13","parent_id":"061de1401cfc4cfaadf6e74e015970e9","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764345890947,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":0},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T16:20:27.493Z
created_time: 2025-11-28T16:20:27.493Z
type_: 13