{"id":3993,"date":"2024-11-24T18:45:33","date_gmt":"2024-11-24T10:45:33","guid":{"rendered":"https:\/\/www.aiti123.com\/?p=3993"},"modified":"2024-11-24T18:45:33","modified_gmt":"2024-11-24T10:45:33","slug":"windows%e7%b3%bb%e7%bb%9f%e4%b8%ad%e9%80%9a%e8%bf%87route%e5%91%bd%e4%bb%a4%e6%b7%bb%e5%8a%a0%e8%87%aa%e5%ae%9a%e4%b9%89%e6%b0%b8%e4%b9%85%e8%b7%af%e7%94%b1%e7%9a%84%e6%96%b9%e6%b3%95-windows%e6%b7%bb","status":"publish","type":"post","link":"http:\/\/www.aiti123.com\/?p=3993","title":{"rendered":"Windows\u7cfb\u7edf\u4e2d\u901a\u8fc7route\u547d\u4ee4\u6dfb\u52a0\u81ea\u5b9a\u4e49\u6c38\u4e45\u8def\u7531\u7684\u65b9\u6cd5-windows\u6dfb\u52a0\u6c38\u4e45\u8def\u7531"},"content":{"rendered":"\n<p>\u5728 Windows \u4e2d\u6dfb\u52a0\u6c38\u4e45\u8def\u7531\u5177\u6709\u4ee5\u4e0b\u91cd\u8981\u4f5c\u7528\uff1a<\/p>\n\n\n\n<p>\u4e00\u3001\u4f5c\u7528<\/p>\n\n\n\n<p>\u7f51\u7edc\u6d41\u91cf\u63a7\u5236<\/p>\n\n\n\n<p>\u53ef\u4ee5\u6307\u5b9a\u7279\u5b9a\u7684\u7f51\u7edc\u6d41\u91cf\u901a\u8fc7\u7279\u5b9a\u7684\u8def\u5f84\u8fdb\u884c\u4f20\u8f93\u3002\u4f8b\u5982\uff0c\u5f53\u5b58\u5728\u591a\u4e2a\u7f51\u7edc\u8fde\u63a5\u65f6\uff0c\u53ef\u4ee5\u5c06\u7279\u5b9a\u7684 IP \u5730\u5740\u8303\u56f4\u6216\u5e94\u7528\u7a0b\u5e8f\u7684\u6d41\u91cf\u5bfc\u5411\u7279\u5b9a\u7684\u7f51\u7edc\u63a5\u53e3\uff0c\u4ee5\u5b9e\u73b0\u8d1f\u8f7d\u5747\u8861\u6216\u4f18\u5316\u7f51\u7edc\u6027\u80fd\u3002<br>\u5bf9\u4e8e\u4f01\u4e1a\u7f51\u7edc\u73af\u5883\u4e2d\uff0c\u4e0d\u540c\u90e8\u95e8\u6216\u5e94\u7528\u53ef\u80fd\u6709\u4e0d\u540c\u7684\u7f51\u7edc\u9700\u6c42\uff0c\u901a\u8fc7\u6dfb\u52a0\u6c38\u4e45\u8def\u7531\u53ef\u4ee5\u66f4\u597d\u5730\u7ba1\u7406\u548c\u63a7\u5236\u7f51\u7edc\u6d41\u91cf\uff0c\u786e\u4fdd\u5173\u952e\u4e1a\u52a1\u7684\u7f51\u7edc\u8d28\u91cf\u3002<br>\u7f51\u7edc\u9694\u79bb\u4e0e\u5b89\u5168<\/p>\n\n\n\n<p>\u53ef\u4ee5\u5c06\u67d0\u4e9b\u7279\u5b9a\u7684\u7f51\u7edc\u6bb5\u4e0e\u5176\u4ed6\u7f51\u7edc\u6bb5\u9694\u79bb\u5f00\u6765\uff0c\u589e\u5f3a\u7f51\u7edc\u7684\u5b89\u5168\u6027\u3002\u901a\u8fc7\u8bbe\u7f6e\u8def\u7531\u89c4\u5219\uff0c\u9650\u5236\u7279\u5b9a IP \u5730\u5740\u6216\u5b50\u7f51\u7684\u8bbf\u95ee\u8def\u5f84\uff0c\u9632\u6b62\u672a\u7ecf\u6388\u6743\u7684\u8bbf\u95ee\u548c\u6f5c\u5728\u7684\u5b89\u5168\u5a01\u80c1\u3002<br>\u4f8b\u5982\uff0c\u5728\u4e00\u4e2a\u5305\u542b\u5185\u90e8\u7f51\u7edc\u548c\u5916\u90e8\u7f51\u7edc\u7684\u73af\u5883\u4e2d\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u8def\u7531\u89c4\u5219\uff0c\u4f7f\u5f97\u5185\u90e8\u67d0\u4e9b\u654f\u611f\u670d\u52a1\u5668\u7684\u6d41\u91cf\u53ea\u80fd\u901a\u8fc7\u7279\u5b9a\u7684\u5b89\u5168\u8bbe\u5907\u8fdb\u884c\u4f20\u8f93\uff0c\u63d0\u9ad8\u7f51\u7edc\u7684\u5b89\u5168\u6027\u3002<br>\u6545\u969c\u8f6c\u79fb\u548c\u5197\u4f59<\/p>\n\n\n\n<p>\u5f53\u4e00\u4e2a\u7f51\u7edc\u8fde\u63a5\u51fa\u73b0\u6545\u969c\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u6c38\u4e45\u8def\u7531\u5c06\u6d41\u91cf\u81ea\u52a8\u5207\u6362\u5230\u5907\u7528\u7684\u7f51\u7edc\u8def\u5f84\u4e0a\uff0c\u5b9e\u73b0\u6545\u969c\u8f6c\u79fb\u548c\u5197\u4f59\u3002\u8fd9\u5bf9\u4e8e\u5173\u952e\u4e1a\u52a1\u7cfb\u7edf\u7684\u9ad8\u53ef\u7528\u6027\u81f3\u5173\u91cd\u8981\u3002<br>\u4f8b\u5982\uff0c\u5728\u4e00\u4e2a\u5177\u6709\u591a\u6761\u7f51\u7edc\u94fe\u8def\u7684\u73af\u5883\u4e2d\uff0c\u5982\u679c\u4e3b\u94fe\u8def\u51fa\u73b0\u6545\u969c\uff0c\u901a\u8fc7\u9884\u5148\u8bbe\u7f6e\u7684\u6c38\u4e45\u8def\u7531\uff0c\u53ef\u4ee5\u81ea\u52a8\u5c06\u6d41\u91cf\u5207\u6362\u5230\u5907\u7528\u94fe\u8def\uff0c\u786e\u4fdd\u4e1a\u52a1\u7684\u8fde\u7eed\u6027\u3002<br>\u4e8c\u3001\u62d3\u6251\u793a\u4f8b<\/p>\n\n\n\n<p>\u5047\u8bbe\u6709\u4e00\u4e2a\u4f01\u4e1a\u7f51\u7edc\u62d3\u6251\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p>\u4f01\u4e1a\u7f51\u7edc\u4e2d\u6709\u4e24\u4e2a\u5206\u652f\u673a\u6784 A \u548c B\uff0c\u5206\u522b\u901a\u8fc7\u4e0d\u540c\u7684\u7f51\u7edc\u8fde\u63a5\u8fde\u63a5\u5230\u603b\u90e8\u7f51\u7edc\u3002\u603b\u90e8\u7f51\u7edc\u4e2d\u6709\u4e00\u53f0\u670d\u52a1\u5668\uff0cIP \u5730\u5740\u4e3a 192.168.1.100\u3002\u5206\u652f\u673a\u6784 A \u7684\u7f51\u7edc\u5730\u5740\u8303\u56f4\u4e3a 10.10.10.0\/24\uff0c\u5206\u652f\u673a\u6784 B \u7684\u7f51\u7edc\u5730\u5740\u8303\u56f4\u4e3a 10.10.20.0\/24\u3002<\/p>\n\n\n\n<p>\u4e3a\u4e86\u786e\u4fdd\u5206\u652f\u673a\u6784 A \u7684\u7528\u6237\u80fd\u591f\u66f4\u5feb\u901f\u5730\u8bbf\u95ee\u603b\u90e8\u670d\u52a1\u5668\uff0c\u53ef\u4ee5\u5728\u5206\u652f\u673a\u6784 A \u7684\u8def\u7531\u5668\u4e0a\u6dfb\u52a0\u4e00\u6761\u6c38\u4e45\u8def\u7531\uff0c\u5c06\u76ee\u6807\u5730\u5740\u4e3a 192.168.1.100 \u7684\u6d41\u91cf\u901a\u8fc7\u7279\u5b9a\u7684\u9ad8\u901f\u7f51\u7edc\u94fe\u8def\u8f6c\u53d1\u5230\u603b\u90e8\u3002\u8fd9\u6837\uff0c\u5f53\u5206\u652f\u673a\u6784 A \u7684\u7528\u6237\u8bbf\u95ee\u603b\u90e8\u670d\u52a1\u5668\u65f6\uff0c\u7f51\u7edc\u6d41\u91cf\u5c06\u6309\u7167\u6307\u5b9a\u7684\u8def\u7531\u8fdb\u884c\u4f20\u8f93\uff0c\u63d0\u9ad8\u8bbf\u95ee\u901f\u5ea6\u548c\u6027\u80fd\u3002<\/p>\n\n\n\n<p>\u540c\u6837\uff0c\u5728\u603b\u90e8\u7f51\u7edc\u4e2d\uff0c\u4e5f\u53ef\u4ee5\u8bbe\u7f6e\u6c38\u4e45\u8def\u7531\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u7ba1\u7406\u6765\u81ea\u4e0d\u540c\u5206\u652f\u673a\u6784\u7684\u6d41\u91cf\uff0c\u5b9e\u73b0\u7f51\u7edc\u7684\u4f18\u5316\u548c\u5b89\u5168\u63a7\u5236\u3002<\/p>\n\n\n\n<p>\u603b\u4e4b\uff0c\u5728 Windows \u4e2d\u6dfb\u52a0\u6c38\u4e45\u8def\u7531\u53ef\u4ee5\u5e2e\u52a9\u7ba1\u7406\u5458\u66f4\u597d\u5730\u63a7\u5236\u7f51\u7edc\u6d41\u91cf\u3001\u63d0\u9ad8\u7f51\u7edc\u5b89\u5168\u6027\u548c\u5b9e\u73b0\u6545\u969c\u8f6c\u79fb\uff0c\u5bf9\u4e8e\u590d\u6742\u7684\u7f51\u7edc\u73af\u5883\u5c24\u5176\u91cd\u8981\u3002<br>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>                        \u7248\u6743\u58f0\u660e\uff1a\u672c\u6587\u4e3a\u535a\u4e3b\u539f\u521b\u6587\u7ae0\uff0c\u9075\u5faa CC 4.0 BY-SA \u7248\u6743\u534f\u8bae<\/code><\/pre>\n\n\n\n<p>\u901a\u8fc7route\u547d\u4ee4\u6765\u4e3aWindows\u6dfb\u52a0\u81ea\u5b9a\u4e49\u7684\u8def\u7531<\/p>\n\n\n\n<p>\u9996\u5148\uff0c\u5728cmd\u4e2d\uff0c\u8f93\u5165<strong>route print<\/strong>\uff0c\u53ef\u4ee5\u67e5\u770b\u5230\u672c\u673a\u5f53\u524d\u7684<strong>\u7f51\u5361\u63a5\u53e3\u53f7<\/strong>\u3001mac\u5730\u5740\u548c\u7f51\u5361\u540d\u79f0\uff1a<\/p>\n\n\n\n<p>\uff08\u4e0b\u9762\u4f1a\u7528\u5230\u7b2c\u4e00\u5217\u7684\u7f51\u5361\u63a5\u53e3\u53f7\u6570\u5b57\uff09<\/p>\n\n\n\n<p>\u4f8b\u5982\uff0c\u6211\u4eec\u60f3\u6dfb\u52a0\u4e00\u6761\u8def\u7531\uff0c\u76ee\u6807\u7f51\u6bb5\u662f192.168.5.0\/24\uff08\u63a9\u7801\u662f255.255.255.0\uff09\uff0c\u4e0b\u4e00\u8df3\u662f192.168.2.254\uff0c\u5e76\u4e14\u8fd9\u6761\u8def\u7531\u5e94\u7528\u5728\u201c24\u201d\u7f51\u5361\u63a5\u53e3\u4e0a\uff0c\u90a3\u4e48\u6211\u4eec\u5c31\u53ef\u4ee5\u8f93\u5165\u8fd9\u6837\u4e00\u6761\u547d\u4ee4\uff1a<\/p>\n\n\n\n<p><strong>route add 192.168.5.0 mask 255.255.255.0 192.168.2.254 if 24 -p<\/strong><\/p>\n\n\n\n<p><strong>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff1a<\/strong><\/p>\n\n\n\n<p><strong>192.168.5.0<\/strong>\u8868\u793a\u76ee\u6807\u7f51\u6bb5\uff1b<\/p>\n\n\n\n<p><strong>mask<\/strong>\u540e\u9762\u63a5<strong>\u63a9\u7801<\/strong>\uff0c<strong>255.255.255.0<\/strong>\u8868\u793a\u76ee\u6807\u7f51\u6bb5\u7684\u63a9\u7801\uff1b<\/p>\n\n\n\n<p><strong>192.168.2.254<\/strong>\u8868\u793a\u8def\u7531\u7684<strong>\u4e0b\u4e00\u8df3\u5730\u5740<\/strong>\uff0c\u4e5f\u5c31\u662f\uff0c\u60f3\u8981\u5230\u8fbe192.168.5.0\u7684\u6570\u636e\uff0c\u672c\u673a\u90fd\u4f1a\u53d1\u7ed9192.168.2.254\u53bb\u8f6c\u53d1\uff1b<\/p>\n\n\n\n<p><strong>if<\/strong>\u540e\u9762\u63a5\u672c\u673a\u7684\u7f51\u5361\u63a5\u53e3\u53f7\uff0c\u5982\u679c\u672c\u673a\u6709\u591a\u4e2a\u7f51\u5361\uff0c\u90a3\u4e48\u5c31\u9700\u8981\u533a\u5206\u4f60\u60f3\u8981\u7528\u54ea\u4e2a\u7f51\u5361\u53bb\u8bbf\u95ee\u76ee\u6807\u7f51\u6bb5\uff0c\u8fd9\u91cc\u7684\u63a5\u53e3\u53f7\u5c31\u662f\u5f00\u5934\u8bf4\u7684\u901a\u8fc7<strong>route print<\/strong>\u547d\u4ee4\u67e5\u770b\u5230\u7684\u3002<\/p>\n\n\n\n<p>\u4f8b\u5982\u6211\u768424\u53f7\u63a5\u53e3\u80fd\u591f\u901a\u5230\u76ee\u6807\u7f51\u6bb5\uff0c\u90a3\u4e48\u8fd9\u91cc\u5c31\u8f93\u516524\uff1b<\/p>\n\n\n\n<p><strong>\u201c-p\u201d<\/strong>\u8fd9\u4e2a\u53c2\u6570\u8868\u793a\u8be5\u6761\u8def\u7531<strong>\u6c38\u4e45\u751f\u6548<\/strong>\u3002<strong>\u5982\u679c\u4e0d\u52a0\u8fd9\u4e2a\u53c2\u6570\uff0c\u90a3\u4e48\u9700\u8981\u6ce8\u610f\uff0c\u4f60\u7684\u8fd9\u6761\u8def\u7531\u5728\u672c\u673a\u91cd\u542f\u540e\u5c06\u4f1a\u5931\u6548\u3002<\/strong><\/p>\n\n\n\n<p>\u8f93\u5165\u5b8c\u6210\u4e4b\u540e\uff0c\u6211\u4eec\u518d\u6b21\u8f93\u5165\u201c<strong>route print<\/strong>\u201d\u547d\u4ee4\u6765\u67e5\u770b\u4e00\u4e0b\u672c\u673a\u5f53\u524d\u8def\u7531\uff0c\u53ef\u4ee5\u53d1\u73b0\u591a\u4e86\u4e00\u6761\u521a\u521a\u914d\u7f6e\u7684\u8def\u7531\u6761\u76ee\uff1a<\/p>\n\n\n\n<p><strong>&nbsp;\u9644\uff1aWindows\u4e2d\uff0croute\u547d\u4ee4\u7684\u8be6\u89e3\uff1a<\/strong><\/p>\n\n\n\n<p>\u5230\u6b64\u8fd9\u7bc7\u5173\u4e8eWindows\u7cfb\u7edf\u4e2d\u901a\u8fc7route\u547d\u4ee4\u6dfb\u52a0\u81ea\u5b9a\u4e49\u6c38\u4e45\u8def\u7531\u7684\u65b9\u6cd5\u7684\u6587\u7ae0\u5c31\u4ecb\u7ecd\u5230\u8fd9\u4e86,\u66f4\u591a\u76f8\u5173Windows route\u547d\u4ee4\u81ea\u5b9a\u4e49\u6c38\u4e45\u8def\u7531\u5185\u5bb9\u8bf7\u641c\u7d22\u811a\u672c\u4e4b\u5bb6\u4ee5\u524d\u7684\u6587\u7ae0\u6216\u7ee7\u7eed\u6d4f\u89c8\u4e0b\u9762\u7684\u76f8\u5173\u6587\u7ae0\uff0c\u5e0c\u671b\u5927\u5bb6\u4ee5\u540e\u591a\u591a\u652f\u6301\u811a\u672c\u4e4b\u5bb6<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 Windows \u4e2d\u6dfb\u52a0\u6c38\u4e45\u8def\u7531\u5177\u6709\u4ee5\u4e0b\u91cd\u8981\u4f5c\u7528\uff1a \u4e00\u3001\u4f5c\u7528 \u7f51\u7edc\u6d41\u91cf\u63a7\u5236 \u53ef\u4ee5\u6307\u5b9a\u7279\u5b9a\u7684\u7f51\u7edc\u6d41\u91cf\u901a\u8fc7\u7279\u5b9a\u7684 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[3074,3071,3075,3070,3076,3073,3072],"_links":{"self":[{"href":"http:\/\/www.aiti123.com\/index.php?rest_route=\/wp\/v2\/posts\/3993"}],"collection":[{"href":"http:\/\/www.aiti123.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.aiti123.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.aiti123.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.aiti123.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3993"}],"version-history":[{"count":1,"href":"http:\/\/www.aiti123.com\/index.php?rest_route=\/wp\/v2\/posts\/3993\/revisions"}],"predecessor-version":[{"id":3994,"href":"http:\/\/www.aiti123.com\/index.php?rest_route=\/wp\/v2\/posts\/3993\/revisions\/3994"}],"wp:attachment":[{"href":"http:\/\/www.aiti123.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3993"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.aiti123.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3993"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.aiti123.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3993"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}