{"id":2816,"date":"2023-04-12T15:39:07","date_gmt":"2023-04-12T07:39:07","guid":{"rendered":"http:\/\/www.iooe.cn\/?p=2816"},"modified":"2023-08-21T23:16:04","modified_gmt":"2023-08-21T15:16:04","slug":"zerotier-%e4%bf%ae%e6%94%b9%e8%ba%ab%e4%bb%bdid%ef%bc%8c-%e5%8d%b3my-address","status":"publish","type":"post","link":"https:\/\/www.iooe.cn\/index.php\/2023\/04\/12\/zerotier-%e4%bf%ae%e6%94%b9%e8%ba%ab%e4%bb%bdid%ef%bc%8c-%e5%8d%b3my-address\/","title":{"rendered":"zerotier \u4fee\u6539\u8eab\u4efdID\uff0c \u5373my address"},"content":{"rendered":"\n<p>If you would like to clear or reset ZeroTier&#8217;s address on a device (the 10-digit address node ID) or you have cloned a device and you want to prevent it from using the same address, follow these instructions:<\/p>\n\n\n\n<p>\u5982\u679c\u4f60\u8981\u91cd\u7f6e\uff0c\u4f60\u7684id\uff0c \u537310\u4f4d\u7684my address ID, <\/p>\n\n\n\n<ol><li>Stop the service.\u505c\u6b62\u670d\u52a1<ol><li>On&nbsp;<strong>Windows<\/strong>&nbsp;this is done with the service manager. (Open the Start Menu and start typing &#8220;service&#8221;) windows\u5e73\u53f0\u4e0a\uff0c\u5728\u670d\u52a1\u7ba1\u7406\u4e2d\u628a\u670d\u52a1\u505c\u6b62\u3002<\/li><li>On&nbsp;<strong>Mac<\/strong>&nbsp;you can open a terminal and use&nbsp;<strong>Stop Mac Service<\/strong>       <code>sudo<\/code>&nbsp;<code>launchctl unload&nbsp; \/Library\/LaunchDaemons\/com.zerotier.one.plist<\/code>.\u82f9\u679c\u4e0a\u8fd0\u884c\u4e0a\u9762\u547d\u4ee4\u5728\u7ec8\u7aef\u4e2d\u3002 \u505c\u6b62\u670d\u52a1<\/li><li>On&nbsp;<strong>Linux<\/strong>&nbsp;this is usually                                                                         <code>sudo<\/code>&nbsp;<code>systemctl stop zerotier-one<\/code>or<code>sudo<\/code>&nbsp;<code>service zerotier-one stop<\/code>   #linux\u670d\u4e0a\u8fd0\u884c\u5982\u4e0b\u547d\u4ee4\u505c\u6b62\u670d\u52a1<\/li><\/ol><\/li><li>Delete the files&nbsp;<code>identity.public<\/code>&nbsp;and&nbsp;<code>identity.secret<\/code>&nbsp;from ZeroTier&#8217;s working directory.  \u5220\u9664\u5b89\u88c5\u6b62\u5f55\u6216\u670d\u52a1\u76ee\u5f55\u4e2d\u7684\u4e24\u4e2a\u52a0\u5bc6\u5bf9\u3002<ol><li>On&nbsp;<strong>Windows<\/strong>&nbsp;this is usually&nbsp;<code>\"\\ProgramData\\ZeroTier\\One\"<\/code>.<\/li><li>On&nbsp;<strong>Mac<\/strong>&nbsp;this is&nbsp;<code>\"\/Library\/Application Support\/ZeroTier\/One\"<\/code>.<ol><li>in your terminal, type&nbsp;<code>open \/Library\/Application Support\/ZeroTier\/One<\/code>&nbsp;to open the folder in Finder.<\/li><\/ol><\/li><li>On&nbsp;<strong>Linux<\/strong>&nbsp;this is usually&nbsp;<code>\"\/var\/lib\/zerotier-one\"<\/code>.<\/li><\/ol><\/li><li>Restart the service&nbsp;\u91cd\u542f\u52a8\u670d\u52a1<ol><li>starting via the service manager on&nbsp;<strong>Windows<\/strong><\/li><li>On&nbsp;<strong>Mac<\/strong><code>sudo<\/code>&nbsp;<code>launchctl load&nbsp;\/Library\/LaunchDaemons\/com.zerotier.one.plist<\/code><\/li><li>On&nbsp;<strong>Linux<\/strong><code>sudo<\/code>&nbsp;<code>systemctl start zerotier-one<\/code>or<code>sudo<\/code>&nbsp;<code>service zerotier-one start<\/code><\/li><\/ol><\/li><\/ol>\n\n\n\n<p>When started without identities ZeroTier will generate new ones.&nbsp;<\/p>\n\n\n\n<p>You will need to authorize this new identity on any networks.<\/p>\n\n\n\n<p>zerotier-cli status \u67e5\u770bid<\/p>\n\n\n\n<p>openwrt \u4e2d\u5b89\u88c5\u914d\u5236\u76ee\u5f55 \/etc\/config\/zero\/<\/p>\n\n\n\n<p>windows\u4e0b\u5728\u670d\u52a1\u91cc\uff0c \u627e\u5230zerotier \u53f3\u51fb\u5c5e\u6027\u91cc\u67e5\u770b\u8def\u5f84\u3002 \u624d\u53ef\u4ee5\u627e\u5230\u91cd\u7f6e\u7684\u914d\u5236\u6587\u4ef6<\/p>\n\n\n\n<h1>\u5176\u4ed6\u4e00\u4e9b\u547d\u4ee4<\/h1>\n\n\n\n<p>curl -s https:\/\/install.zerotier.com | sudo bash<\/p>\n\n\n\n<p>killall -9 zerotier-one<\/p>\n\n\n\n<p>netstat -lp | grep 9993<\/p>\n\n\n\n<h1>\u542f\u52a8<\/h1>\n\n\n\n<p>$ zerotier-one -d<\/p>\n\n\n\n<h1>\u83b7\u53d6\u5730\u5740\u548c\u670d\u52a1\u72b6\u6001<\/h1>\n\n\n\n<p>$ zerotier-cli status<\/p>\n\n\n\n<h1>\u52a0\u5165\u3001\u79bb\u5f00\u3001\u5217\u51fa\u7f51\u7edc<\/h1>\n\n\n\n<p>$ zerotier-cli join # Network ID<br>$ zerotier-cli leave # Network ID<br>$ zerotier-cli listnetworks<\/p>\n\n\n\n<p>ubuntu\u5378\u8f7d\uff1a<\/p>\n\n\n\n<p>\u00a0sudo dpkg -P zerotier-one  <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo\u00a0rm\u00a0-rf\u00a0\/var\/lib\/zerotier-one\/\n\n\u6ce8\u518cID\uff1awww.zerotier.com\n\u76d2\u5b50\u7ec8\u7aef\u540e\u53f0\n<strong>curl -s\u00a0<a href=\"https:\/\/install.zerotier.com\/\">https:\/\/install.zerotier.com<\/a>\u00a0| sudo bash<\/strong>\n\u7c98\u8d34\u8fd9\u6761\u547d\u4ee4\nzerotier-cli join \u4f60\u7684zerotier\u7f51\u7edcID\n\u7c98\u8d34\u547d\u4ee4\n\u8fd4\u56de\u521a\u624d\u4fdd\u7559\u7684zerotier one\u7684\u7f51\u7edc\u7ba1\u7406\u754c\u9762\uff0c\u5e76\u5237\u65b0\u3002\n\u4f1a\u53d1\u73b0\u51fa\u73b0\u4e86\u4e00\u53f0\u65b0\u7684\u8bbe\u5907\u3002\u5728\u5de6\u4fa7\u65b9\u6846\u5904\u70b9\u4e00\u4e0b\uff0c\u6253\u4e0a\u52fe\uff0c\u5c31\u53ef\u4ee5\u5c06\u8fd9\u53f0\u7533\u8bf7\u5165\u7f51\u7684NAS\u52a0\u5165\u5230\u865a\u62df\u5185\u7f51\u4e2d\u4e86\u3002\u4e3a\u4e86\u65b9\u4fbf\u5bf9\u8bbe\u5907\u8fdb\u884c\u533a\u5206\u548c\u7ba1\u7406\uff0c\u53ef\u4ee5\u5728\u201cshort name\u201d\u5904\u81ea\u884c\u8f93\u5165\u8bbe\u5907\u540d\u8fdb\u884c\u5907\u6ce8\u3002\n\u81f3\u6b64\uff0czerotier one\u5728NAS\u7aef\u5df2\u7ecf\u5b89\u88c5\u5b8c\u6210\u3002\n\u7535\u8111\u7aef\uff0c\u624b\u673a\u7aef\u81ea\u884c\u4e0b\u8f7d\u5b89\u88c5\u52fe\u9009\u589e\u52a0\u5c31\u53ef\u4ee5\u4e86\n\u6069\u5c71\u6709\u4e00\u4e9b\u8def\u7531\u5668\u56fa\u4ef6\u53ef\u4ee5\u5237\u8fd9\u4e2a\u529f\u80fd\uff0c\u5c31\u53ef\u4ee5\u5b9e\u73b0\u8fdc\u7a0b\u5f00\u673a\u63a7\u5236\u3002\u5927\u5bb6\u81ea\u884c\u4f53\u9a8c<\/pre>\n\n\n\n<p>\u7a0b\u5e8f\u4e0b\u8f7d\u5730\u5740\uff1a<\/p>\n\n\n\n<p><a href=\"https:\/\/download.zerotier.com\/RELEASES\/1.6.1\/dist\/\">https:\/\/download.zerotier.com\/RELEASES\/1.6.1\/dist\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you would like to clear or reset ZeroTier&#8217;s address on a device (the 10&#8230; <\/p>\n<div class='button-mores'><a href='https:\/\/www.iooe.cn\/index.php\/2023\/04\/12\/zerotier-%e4%bf%ae%e6%94%b9%e8%ba%ab%e4%bb%bdid%ef%bc%8c-%e5%8d%b3my-address\/'> \u9605\u8bfb\u66f4\u591a&#8230; <\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":[],"categories":[15],"tags":[],"_links":{"self":[{"href":"https:\/\/www.iooe.cn\/index.php\/wp-json\/wp\/v2\/posts\/2816"}],"collection":[{"href":"https:\/\/www.iooe.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iooe.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iooe.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iooe.cn\/index.php\/wp-json\/wp\/v2\/comments?post=2816"}],"version-history":[{"count":7,"href":"https:\/\/www.iooe.cn\/index.php\/wp-json\/wp\/v2\/posts\/2816\/revisions"}],"predecessor-version":[{"id":2833,"href":"https:\/\/www.iooe.cn\/index.php\/wp-json\/wp\/v2\/posts\/2816\/revisions\/2833"}],"wp:attachment":[{"href":"https:\/\/www.iooe.cn\/index.php\/wp-json\/wp\/v2\/media?parent=2816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iooe.cn\/index.php\/wp-json\/wp\/v2\/categories?post=2816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iooe.cn\/index.php\/wp-json\/wp\/v2\/tags?post=2816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}