{"id":134443,"date":"2019-01-23T08:38:01","date_gmt":"2019-01-23T00:38:01","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=134443"},"modified":"2019-01-21T16:39:26","modified_gmt":"2019-01-21T08:39:26","slug":"ip-nat","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/ip-nat.html","title":{"rendered":"\u4ec0\u4e48\u662f\u516c\u7f51IP\u3001\u5185\u7f51IP\u548cNAT\u8f6c\u6362\uff1f"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u641e\u7f51\u7edc\u901a\u4fe1\u5e94\u7528\u5f00\u53d1\u7684\u7a0b\u5e8f\u5458\uff0c\u53ef\u80fd\u4f1a\u7ecf\u5e38\u542c\u5230\u5916\u7f51IP(\u5373\u4e92\u8054\u7f51IP\u5730\u5740)\u548c\u5185\u7f51IP(\u5373\u5c40\u57df\u7f51IP\u5730\u5740)\uff0c\u4f46\u4ed6\u4eec\u7684\u533a\u522b\u662f\u4ec0\u4e48?<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
1\u3001\u5f15\u8a00<\/strong><\/div>\n

\u641e\u7f51\u7edc\u901a\u4fe1\u5e94\u7528\u5f00\u53d1\u7684\u7a0b\u5e8f\u5458\uff0c\u53ef\u80fd\u4f1a\u7ecf\u5e38\u542c\u5230\u5916\u7f51IP(\u5373\u4e92\u8054\u7f51IP\u5730\u5740)\u548c\u5185\u7f51IP(\u5373\u5c40\u57df\u7f51IP\u5730\u5740)\uff0c\u4f46\u4ed6\u4eec\u7684\u533a\u522b\u662f\u4ec0\u4e48?\u53c8\u6709\u4ec0\u4e48\u5173\u7cfb\u5462?\u53e6\u5916\uff0c\u5185\u884c\u90fd\u77e5\u9053\uff0c\u63d0\u5230\u5916\u7f51IP\u548c\u5185\u7f51IP\u5c31\u4e0d\u5f97\u4e0d\u63d0NAT\u8def\u7531\u8f6c\u6362\u8fd9\u79cd\u4e1c\u897f\uff0c\u90a3\u8fd9\u53cc\u662f\u4ec0\u4e48\u9b3c?\u672c\u6587\u5c31\u6765\u7b80\u5355\u8bb2\u8bb2\u8fd9\u4e9b\u5230\u5e95\u90fd\u662f\u600e\u4e48\u56de\u4e8b\u3002
\n\"\"<\/p>\n

2\u3001\u6bcf\u53f0\u7535\u8111\u90fd\u5fc5\u987b\u8981\u4e00\u4e2a\u516c\u7f51IP\u5417?<\/strong><\/div>\n

\u7b54\u6848\uff1a\u4e0d\u662f\u3002<\/p>\n

\u6211\u4eec\u90fd\u77e5\u9053\uff0cIPv4\u4e2d\u7684IP\u5730\u5740\u7684\u6570\u91cf\u662f\u6709\u9650\u7684(\u6240\u4ee5\u73b0\u5728\u90fd\u5728\u641eIPv6\u561b)\uff0c\u6bcf\u6b21\u628a\u4e00\u90e8\u5206\u5730\u5740\u5206\u914d\u51fa\u53bb\uff0c\u90a3\u4e48\u5c31\u610f\u5473\u7740\u80fd\u591f\u7528\u6765\u5206\u914d\u7684IP\u5730\u5740\u5c31\u66f4\u5c11\u4e86\uff0c\u800c\u4e14\u968f\u7740\u73b0\u5728\u624b\u673a\uff0c\u7535\u8111\u7b49\u7684\u5feb\u901f\u53d1\u5c55\uff0c\u5982\u679c\u6bcf\u4e2a\u624b\u673a\u6216\u8005\u7535\u8111\u90fd\u8981\u6c42\u4e00\u4e2aIP\u5730\u5740\uff0c\u90a3\u4e48\u663e\u7136IP\u5730\u5740\u662f\u4e0d\u591f\u7528\u7684\u3002<\/p>\n

\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u6211\u4eec\u53ef\u4ee5\u91c7\u53d6\u8fd9\u6837\u7684\u7b56\u7565\uff1a\u4f8b\u5982\u5bf9\u4e8e\u4e00\u4e2a\u516c\u53f8\u6765\u8bf4\uff0c\u6bcf\u4e2a\u516c\u53f8\u90fd\u4f1a\u6709\u4e00\u4e2a\u5c5e\u4e8e\u81ea\u5df1\u516c\u53f8\u7684\u5185\u7f51(\u4e5f\u53ef\u4ee5\u79f0\u4e4b\u4e3a\u5c40\u57df\u7f51)\u3002<\/p>\n

\u5185\u7f51(\u5b66\u540d\u5e94\u53eb\u5c40\u57df\u7f51(Local Area Network\uff0cLAN))\u662f\u5728\u4e00\u4e2a\u5c40\u90e8\u7684\u5730\u7406\u8303\u56f4\u5185\uff0c\u4e00\u822c\u53ef\u4ee5\u662f\u662f\u51e0\u7c73\u5185(\u6bd4\u5982\u5bb6\u5ead\u5185\u7f51)\uff0c\u4e5f\u53ef\u4ee5\u662f\u65b9\u5706\u51e0\u5343\u7c73\u4ee5\u5185(\u6bd4\u5982\u4e00\u4e2a\u5927\u5b66\u5185\u7f51)\uff0c\u5c06\u5404\u79cd\u8ba1\u7b97\u673a\u3001\u5916\u90e8\u8bbe\u5907\u548c\u6570\u636e\u5e93\u7b49\u4e92\u76f8\u8054\u63a5\u8d77\u6765\u7ec4\u6210\u7684\u8ba1\u7b97\u673a\u901a\u4fe1\u7f51\u3002<\/p>\n

2\u3001\u5185\u7f51\u4e3b\u8981\u4f5c\u7528\u6709\uff1a<\/strong><\/div>\n

1)\u5171\u4eab\u4f20\u8f93\u4fe1\u9053\uff1a\u7b80\u5355\u5730\u7406\u89e3\u5c31\u662f\u4e0d\u9700\u8981\u6bcf\u53f0\u7535\u8111\u4e00\u4e2a\u5916\u7f51IP\u5730\u5740;
\n2)\u4f20\u8f93\u901f\u7387\u9ad8\uff1a\u5185\u7f51\u4e4b\u95f4\u7684\u7535\u8111\u56e0\u4e3a\u6ca1\u6709\u5916\u7f51\u7f51\u7edc\u62d3\u6251\u7684\u590d\u6742\u6027\uff0c\u6240\u4ee5\u4e92\u76f8\u901a\u4fe1\u7684\u7f51\u7edc\u53ef\u4ee5\u5f88\u5feb\uff0c\u6bd4\u5982\u4ece\u4e00\u4e2a\u53f0\u7535\u8111\u5411\u53e6\u4e00\u53f0\u7535\u8111\u590d\u5236\u4e00\u4e2a\u51e0G\u7684\u6587\u4ef6\u53ef\u80fd\u53ea\u9700\u8981\u6570\u5341\u79d2\u65f6\u95f4\u3002
\n3)\u8bef\u7801\u7387\u4f4e\uff1a\u56e0\u4e3a\u901a\u4fe1\u8ddd\u79bb\u5f88\u8fd1\uff0c\u6240\u4ee5\u8bef\u7801\u7387\u5f88\u4f4e\uff0c\u6362\u53e5\u8bdd\u8bf4\u5c31\u662f\u7f51\u7edc\u5f88\u7a33\u5b9a(\u8001\u4e00\u70b9\u7684\u7a0b\u5e8f\u5458\u90fd\u77e5\u9053\uff0c\u8bfb\u5927\u5b66\u7684\u65f6\u5019\u540c\u4e00\u4e2a\u5bbf\u820d\u5185\u7f51\u8054\u7f51\u73a9C\/S\u6e38\u620f\uff0c\u51e0\u4e4e\u4e0d\u4f1a\u9047\u5230\u65ad\u7f51\u6216\u5361\u987f\u7684\u4e8b\u60c5\uff0c\u9664\u975e\u6709\u4eba\u4e0b\u6bdb\u7247\u6216\u8005\u628a\u7f51\u7edc\u7ed9\u62d4\u4e86\uff0c\u54c8\u54c8)\u3002<\/p>\n

3\u3001\u516c\u53f8\u7684\u5185\u7f51\u662f\u5982\u4f55\u5b9e\u73b0\u5185\u7f51IP\u5730\u5740\u5206\u914d\u548c\u7ba1\u7406\u7684?<\/strong><\/div>\n

\u5047\u5982\u6211\u4eec\u7ed9\u8fd9\u4e2a\u516c\u53f8A\u5206\u914d\u4e86\u4e00\u4e2aIP=192.168.1.1\u3002\u6211\u4eec\u628a\u8fd9\u4e2aIP\u4f5c\u4e3a\u8fd9\u4e2a\u516c\u53f8\u5185\u7f51\u7684\u7f51\u5173\u5427\u3002
\n\u5728\u516c\u53f8A\u7684\u5185\u7f51\u91cc\u9762\u67093\u53f0\u7535\u8111\uff0c\u5982\u679c\u8fd9\u4e09\u53f0\u7535\u8111\u8981\u4e0a\u7f51\u7684\u8bdd\uff0c\u6211\u4eec\u9700\u8981\u7ed9\u4ed6\u5206\u914d\u4e00\u4e2aIP\uff0c\u90a3\u4e48\u5c31\u50cf\u4e0a\u4e00\u8282\u63d0\u5230\u7684\uff1a\u6211\u4eec\u4e00\u5b9a\u9700\u8981\u53bb\u7533\u8bf73\u4e2aIP\u5730\u5740\u6765\u4f7f\u7528\u5417?<\/p>\n

\u7b54\u5426\u3002\u6211\u4eec\u4e0d\u4e00\u5b9a\u9700\u8981\u53bb\u7533\u8bf73\u4e2aIP\u7684\uff0c\u5728\u6211\u4eec\u8fd9\u4e2a\u5185\u7f51\u91cc\uff0c\u6211\u4eec\u53ef\u4ee5\u6307\u5b9a\u81ea\u5df1\u7684\u89c4\u5219\uff0c\u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u7ed9\u8fd9\u4e09\u53f0\u7535\u8111\u968f\u4fbf\u5206\u914d\u4e09\u4e2aIP(\u8bf7\u6ce8\u610f\uff0c\u8fd9\u4e09\u4e2aIP\u4e0d\u662f\u53bb\u7533\u8bf7\u7684\uff0c\u800c\u4e14\u6211\u81ea\u5df1\u968f\u610f\u7ed9\u5b83\u5206\u914d\u7684)\u3002\u5206\u522b\u5206\u914d\u7535\u8111A = 192.168.1.2 \u7535\u8111B = 192.168.1.3 \u7535\u8111C = 192.168.1.4\u3002<\/p>\n

\u800c\u8fd9\u4e2a\u89c4\u5219\u53ef\u4ee5\u7531\u6211\u4eec\u7684\u5185\u7f51\u7f51\u5173\u6765\u7ba1\u7406\uff0c\u5c31\u50cf\u4e0b\u9762\u8fd9\u6837\uff1a
\n\"\"<\/p>\n

4\u3001NAT\u6280\u672f\uff1a\u5b9e\u73b0\u5185\u7f51\u7535\u8111\u8bbf\u95ee\u5916\u7f51\u7684\u80fd\u529b<\/strong><\/div>\n

\u5047\u5982\u7535\u8111A\u60f3\u8981\u8bbf\u95ee\u767e\u5ea6\uff0c\u767e\u5ea6\u7684IP\u6211\u4eec\u5047\u8bbe\u4e3a\uff1a172.168.30.3\uff1a
\n\u6211\u4eec\u90fd\u77e5\u9053\uff0c\u7535\u8111A\u7684IP\u662f\u6211\u4eec\u865a\u6784\u7684\uff0c\u5b9e\u9645\u4e0a\u53ef\u80fd\u5e76\u4e0d\u5b58\u5728\u8fd9\u6837\u4e00\u4e2aIP\uff0c\u5982\u679c\u7528\u7535\u8111A\u7684IP\u53bb\u8bbf\u95ee\u767e\u5ea6\uff0c\u90a3\u80af\u5b9a\u884c\u4e0d\u901a\u3002<\/p>\n

\u6211\u4eec\u4e5f\u77e5\u9053\uff0c\u7531\u4e8e\u767e\u5ea6\u548c\u7535\u8111A\u4e0d\u5728\u4e00\u4e2a\u5c40\u57df\u7f51\u5185\uff0c\u6240\u4ee5A\u8981\u8bbf\u95ee\u767e\u5ea6\uff0c\u90a3\u4e48\u5fc5\u987b\u5f97\u7ecf\u8fc7\u7f51\u5173\u3002\u800c\u7f51\u5173\u7684\u8fd9\u4e2aIP\u5730\u5740\uff0c\u662f\u771f\u5b9e\u5b58\u5728\u7684\uff0c\u662f\u53ef\u4ee5\u8bbf\u95ee\u767e\u5ea6\u7684\u3002<\/p>\n

\u4e3a\u4e86\u8ba9 A \u53ef\u4ee5\u8bbf\u95ee\u767e\u5ea6\uff0c\u90a3\u4e48\u6211\u4eec\u53ef\u4ee5\u91c7\u53d6\u8fd9\u6837\u7684\u65b9\u6cd5\uff1a\u8ba9\u7f51\u5173\u53bb\u5e2e\u52a9 A \u8bbf\u95ee\uff0c\u7136\u540e\u767e\u5ea6\u628a\u7ed3\u679c\u4f20\u9012\u7ed9\u7f51\u5173\uff0c\u800c\u7f51\u5173\u518d\u628a\u7ed3\u679c\u4f20\u9012\u7ed9 A\uff0c\u8fd9\u6837\u4e0d\u5c31\u53ef\u4ee5\u89e3\u51b3\u4e86?<\/p>\n

\u4e0d\u8fc7\u7535\u8111A\u3001B\u3001C\u90fd\u53ef\u80fd\u62dc\u6258\u7f51\u5173\u53bb\u5e2e\u5fd9\u8bbf\u95ee\u767e\u5ea6\uff0c\u800c\u767e\u5ea6\u8fd4\u56de\u7684\u7ed3\u679c \u7684\u76ee\u7684IP\u90fd\u662f\u7f51\u5173\u7684IP=192.168.1.1\u3002\u90a3\u4e48\u7f51\u5173\u8be5\u5982\u4f55\u8fdb\u884c\u533a\u5206\u8fd9\u7ed3\u679c\u662fA\u7684\u3001B\u7684\u8fd8\u662fC\u7684\u5462?<\/p>\n

\u6211\u4eec\u53bb\u8bbf\u95ee\u767e\u5ea6\u7684\u65f6\u5019\uff0c\u4e0d\u662f\u9700\u8981\u6307\u5b9a\u4e00\u4e2a\u7aef\u53e3\u5417?\u53ea\u8981\u6211\u4eec\u628a A\u7684IP + \u7aef\u53e3 \u6620\u5c04\u6210 \u7f51\u5173\u7684IP+\u7aef\u53e3\uff0c\u4e0d\u5c31\u53ef\u4ee5\u552f\u4e00\u786e\u5b9a\u8eab\u4efd\u4e86?<\/p>\n

\u4f8b\u5982A\u7528\u7aef\u53e360\u53bb\u8bbf\u95ee\u767e\u5ea6\uff0c\u7f51\u5173\u628a A\u7684IP+\u7aef\u53e360 \u6620\u5c04\u6210 \u7f51\u5173\u7684IP+\u7aef\u53e380 \u4e0d\u5c31\u53ef\u4ee5\u4e86?<\/p>\n

\"\"<\/p>\n

\u767e\u5ea6\u628a\u7ed3\u679c\u8fd4\u56de\u7ed9\u7f51\u5173\u768480\u7aef\u53e3\u4e4b\u540e\uff0c\u7f51\u5173\u518d\u901a\u8fc7\u6620\u5c04\u8868\uff0c\u5c31\u53ef\u4ee5\u628a\u7ed3\u679c\u8fd4\u56de\u7ed9 A\u768460\u7aef\u53e3 \u4e86\u3002
\n\u5982\u679cB\u4e5f\u662f\u752860\u7aef\u53e3\u53bb\u8bbf\u95ee\u767e\u5ea6\u7684\u8bdd\uff0c\u4e5f\u662f\u4e00\u6837\uff0c\u53ef\u4ee5\u628a\u5b83\u6620\u5c04\u523090\u7aef\u53e3\u3002<\/p>\n

\u8fd9\u79cd\u65b9\u6cd5\u5730\u5740\u7684\u6620\u5c04\u8f6c\u6362\uff0c\u6211\u4eec\u4e5f\u79f0\u4e4b\u4e3a\u7f51\u7edc\u5730\u5740\u8f6c\u6362\uff0c\u82f1\u6587\u4e3a Network Address Translation\uff0c\u7b80\u79f0NAT\u3002<\/p>\n

\u800c\u50cfA\u3001B\u3001C\u8fd9\u6837\u7684IP\u5730\u5740\u6211\u4eec\u4e5f\u79f0\u4e4b\u4e3a\u5185\u7f51IP\uff0c\u5373\u5185\u7f51IP;\u800c\u50cf\u7f51\u5173\uff0c\u767e\u5ea6\u8fd9\u6837\u7684IP\u6211\u4eec\u79f0\u4e4b\u4e3a\u5916\u7f51IP(\u5373\u4e92\u8054\u7f51\u516c\u7f51IP)\u3002<\/p>\n

\u6240\u4ee5\uff0c\u4e00\u4e2a\u5178\u578b\u7684\u5185\u7f51\u8bbf\u95ee\u516c\u7f51\u7684\u539f\u7406\uff0c\u5c31\u50cf\u4e0b\u56fe\u8fd9\u6837\u5c31\u53ef\u4ee5\u5b9e\u73b0\u4e86\uff1a
\n\u73b0\u5728\u77e5\u9053\u5916\u7f51IP\u548c\u5185\u7f51IP\u4e86\u5427?<\/p>\n

5\u3001\u672c\u6587\u5c0f\u7ed3<\/strong><\/div>\n

\u4e3a\u4e86\u89e3\u51b3IP\u5730\u5740\u77ed\u7f3a\uff0c\u6280\u672f\u4e13\u5bb6\u4eec\u53d1\u660e\u4e86\u5185\u7f51\u6280\u672f\uff0c\u800c\u5185\u7f51\u6280\u672f\u7684\u7406\u8bba\u652f\u6491\u5c31\u662fNAT\u6280\u672f\uff0c\u6240\u4ee5\u641e\u7f51\u7edc\u901a\u4fe1\u7684\u7a0b\u5e8f\u5458\u975e\u5e38\u6709\u5fc5\u8981\u5bf9NAT\u6280\u672f\u6709\u4e00\u4e2a\u6df1\u5165\u7684\u7406\u89e3\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u641e\u7f51\u7edc\u901a\u4fe1\u5e94\u7528\u5f00\u53d1\u7684\u7a0b\u5e8f\u5458\uff0c\u53ef\u80fd\u4f1a\u7ecf\u5e38\u542c\u5230\u5916\u7f51IP(\u5373\u4e92\u8054\u7f51IP\u5730\u5740)\u548c\u5185\u7f51IP(\u5373\u5c40\u57df\u7f51IP\u5730\u5740)\uff0c\u4f46\u4ed6\u4eec\u7684\u533a\u522b\u662f\u4ec0\u4e48?<\/p>\n","protected":false},"author":370,"featured_media":107176,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-134443","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/134443","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/370"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=134443"}],"version-history":[{"count":3,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/134443\/revisions"}],"predecessor-version":[{"id":134481,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/134443\/revisions\/134481"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/107176"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=134443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=134443"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=134443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}