{"id":21997,"date":"2025-04-19T05:12:29","date_gmt":"2025-04-18T21:12:29","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/21997.html"},"modified":"2025-04-19T05:12:29","modified_gmt":"2025-04-18T21:12:29","slug":"ensp-%e5%9f%ba%e4%ba%8e%e9%9d%99%e6%80%81nat%e5%8f%91%e5%b8%83%e5%85%ac%e5%8f%b8%e7%bd%91%e7%ab%99%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%8c","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/21997.html","title":{"rendered":"ensp \u57fa\u4e8e\u9759\u6001NAT\u53d1\u5e03\u516c\u53f8\u7f51\u7ad9\u670d\u52a1\u5668\uff0c"},"content":{"rendered":"<p>\u5728\u7f51\u7edc\u7684\u4e0d\u540c\u7c7b\u578b\u4e2d&#xff0c;\u9664\u4e86\u79c1\u6709\u7f51\u7edc\u5916&#xff0c;\u8fd8\u6709\u516c\u5171\u7f51\u7edc&#xff0c;\u4ed6\u4eec\u4e4b\u95f4\u9700\u8981\u4e92\u76f8\u5173\u8054\u624d\u80fd\u5145\u5206\u53d1\u6325\u5404\u81ea\u7684\u529f\u80fd\u3002\u7f51\u7edc\u5730\u5740\u8f6c\u6362&#xff08;NAT&#xff09;\u4e0d\u4ec5\u53ef\u4ee5\u5b9e\u73b0\u79c1\u6709\u7f51\u7edc\u548c\u516c\u5171\u7f51\u7edc\u4e2d\u7684\u8d44\u6e90\u4e92\u8bbf&#xff0c;\u8fd8\u80fd\u63d0\u4f9b\u4e00\u5b9a\u7684\u5b89\u5168\u8bbf\u95ee\u529f\u80fd<\/p>\n<h2>NAT\u7684\u57fa\u672c\u6982\u5ff5<\/h2>\n<p>NAT\u662f\u4e00\u4e2aIETF&#xff08;Internet Engineering Task Force, Internet\u5de5\u7a0b\u4efb\u52a1\u7ec4&#xff09;\u6807\u51c6&#xff0c;NAT\u662f\u4e00\u79cd\u628a\u5185\u90e8\u79c1\u7f51IP\u5730\u5740\u8f6c\u6362\u6210\u5408\u6cd5\u7684\u5916\u90e8\u516c\u7f51IP\u5730\u5740\u7684\u6280\u672f\u3002<\/p>\n<\/p>\n<p>\u5f53\u4eca\u7684Internet\u4f7f\u7528TCP\/IP\u5b9e\u73b0\u4e86\u5168\u4e16\u754c\u7684\u8ba1\u7b97\u673a\u4e92\u8054\u4e92\u901a&#xff0c;\u6bcf\u4e00\u53f0\u8fde\u5165Internet\u7684\u8ba1\u7b97\u673a\u90fd\u8981\u548c\u522b\u7684\u8ba1\u7b97\u673a\u901a\u4fe1&#xff0c;\u90fd\u5fc5\u987b\u62e5\u6709\u4e00\u4e2a\u552f\u4e00\u7684\u3001\u5408\u6cd5\u7684IP\u5730\u5740&#xff0c;\u6b64IP\u5730\u5740\u7531Internet\u7ba1\u7406\u673a\u6784NIC\u7edf\u4e00\u8fdb\u884c\u7ba1\u7406\u548c\u5206\u914d\u3002\u800cNIC\u5206\u914d\u7684IP\u5730\u5740\u79f0\u4e3a\u516c\u6709\u7684\u3001\u5408\u6cd5\u7684IP\u5730\u5740&#xff0c;\u8fd9\u4e9bIP\u5730\u5740\u5177\u6709\u552f\u4e00\u6027&#xff0c;\u8fde\u5165Internet\u7684\u8ba1\u7b97\u673a\u53ea\u8981\u62e5\u6709NIC\u5206\u914d\u7684IP\u5730\u5740\u5c31\u53ef\u4ee5\u548c\u5176\u4ed6\u8ba1\u7b97\u673a\u901a\u4fe1\u3002<\/p>\n<\/p>\n<p>\u4f46\u662f&#xff0c;\u7531\u4e8e\u5f53\u524dTCP\/IP\u534f\u8bae\u7248\u672c\u662fIPv4&#xff0c;\u5b83\u5177\u6709\u5929\u751f\u7684\u7f3a\u9677&#xff0c;\u5c31\u662fIP\u5730\u5740\u6570\u91cf\u4e0d\u591f\u591a&#xff0c;\u56e0\u6b64\u96be\u4ee5\u6ee1\u8db3\u76ee\u524d\u7206\u70b8\u6027\u589e\u957f\u7684IP\u9700\u6c42\u3002\u6240\u4ee5&#xff0c;\u4e0d\u662f\u6bcf\u4e00\u53f0\u8ba1\u7b97\u673a\u90fd\u80fd\u7533\u8bf7\u5e76\u83b7\u5f97NIC\u5206\u914d\u7684IP\u5730\u5740\u3002\u4e00\u822c\u800c\u8a00&#xff0c;\u9700\u8981\u8fde\u4e0aInternet\u7684\u4e2a\u4eba\u6216\u5bb6\u5ead\u7528\u6237&#xff0c;\u901a\u8fc7Internet\u7684\u670d\u52a1\u63d0\u4f9b\u5546ISP\u95f4\u63a5\u83b7\u5f97\u5408\u6cd5\u7684\u516c\u7f51IP\u5730\u5740&#xff08;\u4f8b\u5982&#xff0c;\u7528\u6237\u901a\u8fc7ADSL\u7ebf\u8def\u62e8\u53f7&#xff0c;\u4ece\u7535\u4fe1\u83b7\u5f97\u4e34\u65f6\u79df\u7528\u7684\u516c\u7f51IP\u5730\u5740&#xff09;\u3002\u5bf9\u4e8e\u5927\u578b\u673a\u6784\u800c\u8a00&#xff0c;\u5b83\u4eec\u53ef\u80fd\u76f4\u63a5\u5411Internet\u7ba1\u7406\u673a\u6784\u7533\u8bf7\u5e76\u4f7f\u7528\u6c38\u4e45\u7684\u516c\u7f51IP\u5730\u5740&#xff0c;\u4e5f\u53ef\u80fd\u901a\u8fc7ISP\u95f4\u63a5\u83b7\u5f97\u6c38\u4e45\u6216\u4e34\u65f6\u7684\u516c\u7f51IP\u5730\u5740<\/p>\n<\/p>\n<p>\u7531\u4e8e\u65e0\u8bba\u901a\u8fc7\u54ea\u79cd\u65b9\u5f0f\u83b7\u5f97\u516c\u7f51IP\u5730\u5740&#xff0c;\u5b9e\u9645\u4e0a\u5f53\u524d\u7684\u53ef\u7528IP\u5730\u5740\u6570\u91cf\u4f9d\u7136\u4e0d\u8db3\u3002IP\u5730\u5740\u4f5c\u4e3a\u6709\u9650\u7684\u8d44\u6e90&#xff0c;NIC\u8981\u4e3a\u7f51\u7edc\u4e2d\u6570\u4ee5\u4ebf\u8ba1\u7684\u8ba1\u7b97\u673a\u90fd\u5206\u914d\u516c\u7f51IP\u5730\u5740\u662f\u4e0d\u53ef\u80fd\u7684\u3002\u540c\u65f6&#xff0c;\u4e3a\u4e86\u4f7f\u8ba1\u7b97\u673a\u80fd\u591f\u5177\u6709IP\u5730\u5740\u5e76\u5728\u4e13\u7528\u7f51\u7edc&#xff08;\u5185\u90e8\u7f51\u7edc&#xff09;\u4e2d\u901a\u4fe1&#xff0c;Internet\u7ba1\u7406\u673a\u6784NIC\u5b9a\u4e49\u4e86\u4f9b\u4e13\u7528\u7f51\u7edc\u5185\u7684\u8ba1\u7b97\u673a\u4f7f\u7528\u7684\u4e13\u7528IP\u5730\u5740\u3002\u8fd9\u4e9bIP\u5730\u5740\u5730\u5740\u662f\u5728\u5c40\u90e8\u4f7f\u7528\u7684&#xff08;\u975e\u5168\u5c40\u7684\u3001\u4e0d\u5177\u6709\u552f\u4e00\u6027&#xff09;\u3001\u975e\u516c\u6709\u7f51\u7edc&#xff08;\u79c1\u6709\u7f51\u7edc&#xff09;IP\u5730\u5740&#xff0c;\u8fd9\u4e9bIP\u5730\u5740\u7684\u5730\u5740\u8303\u56f4\u5177\u4f53\u5982\u4e0b\u3002<\/p>\n<\/p>\n<p>\u2460 A\u7c7b\u5730\u5740&#xff1a;10.0.0.0&#xff5e;10.255.255.255<\/p>\n<p>\u2461 B\u7c7b\u5730\u5740&#xff1a;172.16.0.0&#xff5e;172.31.255.255<\/p>\n<p>\u2462 C\u7c7b\u5730\u5740&#xff1a;192.168.0.0&#xff5e;192.168.255.255<\/p>\n<\/p>\n<p>\u7ec4\u7ec7\u673a\u6784\u53ef\u6839\u636e\u81ea\u8eab\u56ed\u533a\u7f51\u7684\u5927\u5c0f\u53ca\u8ba1\u7b97\u673a\u6570\u91cf\u7684\u591a\u5c11\u6765\u91c7\u7528\u4e0d\u540c\u7c7b\u578b\u7684\u4e13\u7528\u5730\u5740\u8303\u56f4\u6216\u8005\u5b83\u4eec\u7684\u7ec4\u5408\u3002\u4f46\u662f&#xff0c;\u8fd9\u4e9bIP\u5730\u5740\u4e0d\u53ef\u80fd\u51fa\u73b0\u5728Internet\u4e0a&#xff0c;\u4e5f\u5c31\u662f\u8bf4\u6e90\u5730\u5740\u6216\u76ee\u7684\u5730\u5740\u4e3a\u8fd9\u4e9b\u4e13\u6709IP\u5730\u5740\u7684\u6570\u636e\u5305&#xff0c;\u4e0d\u53ef\u80fd\u5728Internet\u4e0a\u88ab\u4f20\u8f93&#xff0c;\u8fd9\u6837\u7684\u6570\u636e\u5305\u53ea\u80fd\u5728\u5185\u90e8\u4e13\u7528\u7f51\u7edc\u4e2d\u88ab\u4f20\u8f93\u3002<\/p>\n<\/p>\n<p>\u5982\u679c\u4e13\u7528\u7f51\u7edc\u7684\u8ba1\u7b97\u673a\u8981\u8bbf\u95eeInternet&#xff0c;\u90a3\u4e48\u7ec4\u7ec7\u673a\u6784\u5728\u8fde\u63a5Internet\u7684\u8bbe\u5907\u4e0a\u81f3\u5c11\u9700\u8981\u4e00\u4e2a\u516c\u7f51IP\u5730\u5740&#xff0c;\u91c7\u7528NAT\u6280\u672f\u5c06\u5185\u90e8\u4e13\u7528\u7f51\u7edc\u7684\u8ba1\u7b97\u673a\u4e13\u7528IP\u5730\u5740\u8f6c\u6362\u4e3a\u516c\u7f51IP\u5730\u5740&#xff0c;\u4ece\u800c\u8ba9\u4f7f\u7528\u4e13\u7528IP\u5730\u5740\u7684\u8ba1\u7b97\u673a\u80fd\u591f\u548cInternet\u7684\u8ba1\u7b97\u673a\u8fdb\u884c\u901a\u4fe1\u3002\u5982\u56fe15-2\u6240\u793a&#xff0c;\u901a\u8fc7NAT\u8bbe\u5907\u80fd\u591f\u5c06\u4e13\u7528\u7f51\u7edc\u5185\u7684\u4e13\u7528IP\u5730\u5740\u548c\u516c\u7f51IP\u5730\u5740\u4e92\u76f8\u8f6c\u6362&#xff0c;\u4ece\u800c\u4f7f\u4e13\u7528\u7f51\u7edc\u5185\u4f7f\u7528\u4e13\u7528\u5730\u5740\u7684\u8ba1\u7b97\u673a\u80fd\u591f\u548cInternet\u7684\u8ba1\u7b97\u673a\u901a\u4fe1\u3002<\/p>\n<\/p>\n<p>\u4e5f\u53ef\u4ee5\u8bf4&#xff0c;NAT\u5c31\u662f\u5c06\u7f51\u7edc\u5730\u5740\u4ece\u4e00\u4e2a\u5730\u5740\u7a7a\u95f4\u8f6c\u6362\u5230\u53e6\u5916\u4e00\u4e2a\u5730\u5740\u7a7a\u95f4\u7684\u4e00\u79cd\u6280\u672f&#xff0c;\u4ece\u6280\u672f\u539f\u7406\u7684\u89d2\u5ea6\u4e0a\u6765\u8bb2&#xff0c;NAT\u5206\u62104\u79cd\u7c7b\u578b&#xff1a;\u9759\u6001NAT\u3001\u52a8\u6001NAT\u3001\u9759\u6001NAPT\u53ca\u52a8\u6001NAPT<\/p>\n<h2>\u9759\u6001NAT<\/h2>\n<p>\u9759\u6001NAT\u662f\u6307\u5728\u8def\u7531\u5668\u4e2d&#xff0c;\u5c06\u79c1\u7f51IP\u5730\u5740\u56fa\u5b9a\u5730\u8f6c\u6362\u4e3a\u516c\u7f51IP\u5730\u5740&#xff0c;\u901a\u5e38\u5e94\u7528\u5728\u5141\u8bb8\u5916\u7f51\u7528\u6237\u8bbf\u95ee\u5185\u7f51\u670d\u52a1\u5668\u7684\u573a\u666f\u3002 \u9759\u6001NAT\u7684\u5de5\u4f5c\u8fc7\u7a0b\u5982\u56fe\u6240\u793a\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"473\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418211226-6802c03ab174a.png\" width=\"1068\" \/><\/p>\n<p>\u4e13\u7528\u7f51\u7edc\u4e2d\u91c7\u7528192.168.1.0\/24\u7684C\u7c7b\u4e13\u7528\u5730\u5740&#xff0c;\u4e13\u7528\u7f51\u7edc\u91c7\u7528\u5e26\u6709NAT\u529f\u80fd\u7684\u8def\u7531\u5668\u548cInternet\u4e92\u8054&#xff0c;\u8def\u7531\u5668\u5de6\u7f51\u5361\u8fde\u63a5\u7740\u5185\u90e8\u4e13\u7528\u7f51\u7edc&#xff08;\u5de6IP\u5730\u5740\u662f192.168.1.254\/24&#xff09;&#xff0c;\u53f3\u7f51\u5361\u8fde\u63a5\u7740Internet&#xff08;\u53f3IP\u5730\u5740\u662f8.8.8.1\/24&#xff09;&#xff0c;\u800c\u4e14\u8def\u7531\u5668\u8fd8\u6709\u591a\u4e2a\u516c\u7f51IP\u5730\u5740\u53ef\u88ab\u8f6c\u6362\u4f7f\u7528&#xff08;8.8.8.2&#xff5e;8.8.8.5&#xff09;&#xff0c;Internet\u4e0a\u7684\u8ba1\u7b97\u673aC\u7684IP\u5730\u5740\u662f8.8.8.8\/24\u3002\u5047\u8bbe\u5916\u90e8\u7f51\u7edc\u7684\u8ba1\u7b97\u673aC\u9700\u8981\u548c\u5185\u90e8\u7f51\u7edc\u7684\u8ba1\u7b97\u673aA\u901a\u4fe1&#xff0c;\u5176\u901a\u4fe1\u8fc7\u7a0b\u5982\u4e0b<\/p>\n<p>\u2460 \u8ba1\u7b97\u673aC\u53d1\u9001\u6570\u636e\u5305\u7ed9\u8ba1\u7b97\u673aA&#xff0c;\u6570\u636e\u5305\u7684\u6e90IP\u5730\u5740(Source Address&#xff0c;SA)\u4e3a8.8.8.8&#xff0c;\u76ee\u7684IP\u5730\u5740&#xff08;Destination Address&#xff0c;DA&#xff09;\u4e3a8.8.8.3&#xff08;\u5728\u5916\u7f51&#xff0c;\u8ba1\u7b97\u673aA\u7684IP\u5730\u5740\u4e3a8.8.8.3&#xff09;\u3002<\/p>\n<p>\u2461 \u6570\u636e\u5305\u5230\u8fbe\u8def\u7531\u5668\u65f6&#xff0c;\u8def\u7531\u5668\u5c06\u67e5\u8be2\u672c\u5730\u7684NAT\u6620\u5c04\u8868&#xff0c;\u627e\u5230\u6620\u5c04\u6761\u76ee\u540e\u5c06\u6570\u636e\u5305\u7684\u76ee\u7684IP\u5730\u5740&#xff08;8.8.8.3&#xff09;\u8f6c\u6362\u4e3a\u79c1\u7f51IP\u5730\u5740&#xff08;192.168.1.1&#xff09;&#xff0c;\u6e90IP\u5730\u5740\u4fdd\u6301\u4e0d\u53d8\u3002NAT\u8def\u7531\u5668\u4e0a\u6709\u4e00\u4e2a\u516c\u7f51IP\u5730\u5740\u6c60&#xff0c;\u5728\u672c\u6b21\u901a\u4fe1\u524d&#xff0c;\u7f51\u7edc\u7ba1\u7406\u5458\u5df2\u7ecf\u5728NAT\u8def\u7531\u5668\u4e0a\u505a\u9759\u6001NAT\u5730\u5740\u6620\u5c04&#xff0c;\u6307\u5b9a192.168.1.1\u4e0e8.8.8.3\u6620\u5c04\u3002<\/p>\n<p>\u2462 \u8f6c\u6362\u540e\u7684\u6570\u636e\u5305\u5728\u5185\u7f51\u4e2d\u4f20\u8f93&#xff0c;\u6700\u7ec8\u5c06\u88ab\u8ba1\u7b97\u673aA\u63a5\u6536\u3002<\/p>\n<p>\u2463 \u8ba1\u7b97\u673aA\u6536\u5230\u6570\u636e\u5305\u540e&#xff0c;\u5148\u5c06\u54cd\u5e94\u5185\u5bb9\u5c01\u88c5\u5728\u76ee\u7684IP\u5730\u5740\u4e3a8.8.8.8\u7684\u6570\u636e\u5305\u4e2d&#xff0c;\u7136\u540e\u5c06\u8be5\u6570\u636e\u5305\u53d1\u9001\u51fa\u53bb<\/p>\n<p>\u2464 \u76ee\u7684IP\u5730\u5740\u4e3a8.8.8.8\u6570\u636e\u5305\u5230\u8fbe\u8def\u7531\u5668\u540e&#xff0c;\u8def\u7531\u5668\u5c06\u5bf9\u7167\u81ea\u8eab\u7684NAT\u6620\u5c04\u8868\u627e\u51fa\u5bf9\u5e94\u5173\u7cfb&#xff0c;\u5c06\u6e90IP\u5730\u5740192.168.1.1\u8f6c\u6362\u4e3a8.8.8.3&#xff0c;\u5e76\u5c06\u8be5\u6570\u636e\u5305\u53d1\u9001\u5230\u5916\u90e8\u7f51\u7edc\u4e2d\u3002<\/p>\n<p>\u2465 \u76ee\u7684IP\u5730\u5740\u4e3a8.8.8.8\u7684\u6570\u636e\u5305\u5728\u5916\u90e8\u7f51\u7edc\u4e2d\u4f20\u9001&#xff0c;\u6700\u7ec8\u5230\u8fbe\u8ba1\u7b97\u673aC\u3002\u8ba1\u7b97\u673aC\u901a\u8fc7\u6570\u636e\u5305\u7684\u6e90IP\u5730\u5740&#xff08;8.8.8.3&#xff09;\u5f97\u77e5\u6b64\u6570\u636e\u5305\u662f\u7531\u8def\u7531\u5668\u53d1\u9001\u8fc7\u6765\u7684&#xff0c;\u5b9e\u9645\u4e0a&#xff0c;\u8be5\u6570\u636e\u5305\u662f\u8ba1\u7b97\u673aA\u53d1\u9001\u7684\u3002<\/p>\n<p>\u9759\u6001NAT\u4e3b\u8981\u7528\u4e8e\u4e13\u7528\u7f51\u7edc\u5185\u7684\u670d\u52a1\u5668\u9700\u8981\u5bf9\u5916\u63d0\u4f9b\u670d\u52a1\u7684\u573a\u666f&#xff0c;\u7531\u4e8e\u5b83\u91c7\u7528\u56fa\u5b9a\u7684\u4e00\u5bf9\u4e00\u7684\u5185\u5916\u7f51IP\u6620\u5c04\u5173\u7cfb&#xff0c;\u56e0\u6b64&#xff0c;\u5916\u7f51\u7684\u8ba1\u7b97\u673a\u53ef\u4ee5\u901a\u8fc7\u8bbf\u95ee\u8fd9\u4e2a\u516c\u7f51IP\u5730\u5740\u5c31\u53ef\u4ee5\u8bbf\u95ee\u5230\u5185\u7f51\u7684\u670d\u52a1\u5668<\/p>\n<p>\u901a\u8fc7NAT\u6620\u5c04\u5185\u90e8\u670d\u52a1\u5668\u9700\u8981\u4f7f\u7528\u4e13\u7528\u7684\u516c\u7f51IP\u5730\u5740&#xff0c;\u6545\u9700\u8981\u7533\u8bf72\u4e2a\u4ee5\u4e0a\u7684\u516c\u7f51IP\u5730\u5740&#xff0c;\u4e00\u4e2a\u7528\u4e8e\u670d\u52a1\u5668\u6620\u5c04&#xff0c;\u4e00\u4e2a\u7528\u4e8e\u5185\u7f51\u7684\u901a\u4fe1&#xff0c;\u8fd9\u91cc\u4f7f\u752816.16.16.1\u548c16.16.16.16\u4f5c\u4e3a\u516c\u7f51IP\u5730\u5740\u3002\u7f51\u7ad9\u670d\u52a1\u5668\u5904\u4e8e\u5185\u90e8\u7f51\u7edc&#xff0c;IP\u5730\u5740\u4e3a192.168.1.1&#xff0c;\u9700\u8981\u5728\u51fa\u53e3\u8def\u7531\u5668\u914d\u7f6e\u9759\u6001NAT&#xff0c;\u5c06\u516c\u7f51IP\u5730\u574016.16.16.1\u5b9e\u73b0\u4e00\u5bf9\u4e00\u6620\u5c04&#xff0c;\u8fd9\u6837\u5373\u53ef\u901a\u8fc7\u516c\u7f51IP\u5730\u5740\u76f4\u63a5\u8bbf\u95ee\u5185\u7f51\u7684\u670d\u52a1\u5668\u3002\u5728\u4e92\u8054\u7f51\u8fde\u63a5\u65b9\u9762&#xff0c;\u51fa\u53e3\u8def\u7531\u5668\u53ef\u6839\u636eISP\u670d\u52a1\u5546\u7684\u7f51\u7edc\u73af\u5883\u914d\u7f6e\u76f8\u5e94\u7684\u8def\u7531\u534f\u8bae<\/p>\n<h2>ensp\u6a21\u62df<\/h2>\n<p>A\u516c\u53f8\u642d\u5efa\u4e86\u7f51\u7ad9\u670d\u52a1\u5668&#xff0c;\u7528\u4e8e\u5bf9\u5916\u53d1\u5e03\u516c\u53f8\u5b98\u7f51\u3002\u4e3a\u4e86\u4fdd\u969c\u5185\u90e8\u7f51\u7edc\u7684\u5b89\u5168\u548c\u89e3\u51b3\u79c1\u7f51IP\u5730\u5740\u5728\u516c\u7f51\u7684\u4fe1\u606f\u4f20\u8f93\u95ee\u9898&#xff0c;\u9700\u8981\u5728\u51fa\u53e3\u8def\u7531\u4e2d\u914d\u7f6eNAT&#xff0c;\u4f7f\u5185\u90e8\u670d\u52a1\u5668\u6620\u5c04\u5230\u516c\u7f51IP\u5730\u5740\u4e0a&#xff0c;\u4e14\u5185\u7f51PC1\u80fd\u76f4\u63a5\u8bbf\u95ee\u5916\u90e8\u7f51\u7edc&#xff0c;\u56e0\u6b64\u516c\u53f8\u7533\u8bf7\u4e24\u4e2a\u516c\u7f51IP\u5730\u5740\u505a\u6620\u5c04&#xff0c;\u5b9e\u8bad\u62d3\u6251\u56fe\u5982\u56fe\u6240\u793a\u00a0<\/p>\n<p>\u00a0<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"295\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418211227-6802c03b03c5e.png\" width=\"762\" \/><\/p>\n<p>\u7ed8\u5236\u62d3\u6251\u56fe<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"443\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418211227-6802c03b226f0.png\" width=\"806\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u5404\u673a\u5668\u914d\u7f6eip\u5730\u5740\u4ee5\u53ca\u7f51\u5173<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"427\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418211227-6802c03b52d52.png\" width=\"579\" \/><\/p>\n<p>\u00a0<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"405\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418211227-6802c03b73b24.png\" width=\"593\" \/><\/p>\n<p>\u00a0<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"418\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418211227-6802c03b94b62.png\" width=\"483\" \/><\/p>\n<h3>\u914d\u7f6e\u8def\u7531\u5668\u63a5\u53e3<\/h3>\n<p>\u5728\u8def\u7531\u5668\u63a5\u53e3\u4e0a\u914d\u7f6e\u5bf9\u5e94\u7684IP\u5730\u5740\u00a0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"219\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418211227-6802c03bb610c.png\" width=\"529\" \/><\/p>\n<p>\u4f7f\u7528\u3010display ip interface brief\u3011\u547d\u4ee4\u67e5\u770b\u63a5\u53e3IP\u4fe1\u606f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"310\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418211227-6802c03bd3b6b.png\" width=\"779\" \/><\/p>\n<h3>\u914d\u7f6e\u9759\u6001NAT<\/h3>\n<p>\u00a0\u5728\u63a5\u53e3\u89c6\u56fe\u4e0b&#xff0c;\u3010nat static global global-address inside host-address\u3011\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u5c06\u516c\u7f51IP\u5730\u5740 global-ades\u6620\u5c04\u5230\u79c1\u7f51IP\u5730\u5740 host-addres<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u5728\u8def\u7531\u5668\u8fde\u63a5\u5916\u7f51\u7684g0\/0\/0\u63a5\u53e3\u8fdb\u884c\u9759\u6001NAT\u914d\u7f6e&#xff0c;\u5c06\u516c\u7f51IP\u5730\u5740202.101.2.101&#xff0c;202.101.2.100\u8f6c\u6362\u4e3a\u79c1\u7f51IP\u5730\u5740192.168.10.1&#xff0c;192.168.10.100<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"128\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418211228-6802c03c0ac55.png\" width=\"805\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u4f7f\u7528\u3010display nat static\u3011\u9a8c\u8bc1NAT\u9759\u6001\u914d\u7f6e\u4fe1\u606f<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"414\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418211228-6802c03c2ace6.png\" width=\"472\" \/><\/p>\n<p>\u5728R1\u4e0a\u4f7f\u7528\u3010display nat session\u3011\u547d\u4ee4\u67e5\u770bNAT\u8f6c\u6362\u4fe1\u606f &#xff08;\u4e0d\u4f1a\u7acb\u9a6c\u6709\u4fe1\u606f&#xff0c;\u4e0b\u4e00\u6b65ping\u540e\u624d\u4f1a\u6709\u4fe1\u606f&#xff09;<\/p>\n<p>\u00a0<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"865\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418211228-6802c03c4bfa5.png\" width=\"500\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u6a21\u62df\u5916\u7f51\u7528\u6237\u7684pc3 ping \u7f51\u7ad9\u670d\u52a1\u5668\u548c\u5185\u7f51\u7528\u6237&#xff08;\u8fd9\u6b65\u4e4b\u540e\u4e0a\u9762R1\u90a3\u91cc\u624d\u4f1a\u6709NAT\u8f6c\u6362\u4fe1\u606f&#xff09;<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"777\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418211228-6802c03c6e818.png\" width=\"717\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.3k\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf12\u6b21\u3002\u5728\u7f51\u7edc\u7684\u4e0d\u540c\u7c7b\u578b\u4e2d\uff0c\u9664\u4e86\u79c1\u6709\u7f51\u7edc\u5916\uff0c\u8fd8\u6709\u516c\u5171\u7f51\u7edc\uff0c\u4ed6\u4eec\u4e4b\u95f4\u9700\u8981\u4e92\u76f8\u5173\u8054\u624d\u80fd\u5145\u5206\u53d1\u6325\u5404\u81ea\u7684\u529f\u80fd\u3002\u7f51\u7edc\u5730\u5740\u8f6c\u6362\uff08NAT\uff09\u4e0d\u4ec5\u53ef\u4ee5\u5b9e\u73b0\u79c1\u6709\u7f51\u7edc\u548c\u516c\u5171\u7f51\u7edc\u4e2d\u7684\u8d44\u6e90\u4e92\u8bbf\uff0c\u8fd8\u80fd\u63d0\u4f9b\u4e00\u5b9a\u7684\u5b89\u5168\u8bbf\u95ee\u529f\u80fd\u3002_ensp\u4f7f\u7528\u9759\u6001napt\u5bf9\u5916\u53d1\u5e03\u516c\u53f8\u5b98\u7f51<\/p>\n","protected":false},"author":2,"featured_media":21985,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1687,43,44],"topic":[],"class_list":["post-21997","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-1687","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>ensp \u57fa\u4e8e\u9759\u6001NAT\u53d1\u5e03\u516c\u53f8\u7f51\u7ad9\u670d\u52a1\u5668\uff0c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/21997.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ensp \u57fa\u4e8e\u9759\u6001NAT\u53d1\u5e03\u516c\u53f8\u7f51\u7ad9\u670d\u52a1\u5668\uff0c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.3k\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf12\u6b21\u3002\u5728\u7f51\u7edc\u7684\u4e0d\u540c\u7c7b\u578b\u4e2d\uff0c\u9664\u4e86\u79c1\u6709\u7f51\u7edc\u5916\uff0c\u8fd8\u6709\u516c\u5171\u7f51\u7edc\uff0c\u4ed6\u4eec\u4e4b\u95f4\u9700\u8981\u4e92\u76f8\u5173\u8054\u624d\u80fd\u5145\u5206\u53d1\u6325\u5404\u81ea\u7684\u529f\u80fd\u3002\u7f51\u7edc\u5730\u5740\u8f6c\u6362\uff08NAT\uff09\u4e0d\u4ec5\u53ef\u4ee5\u5b9e\u73b0\u79c1\u6709\u7f51\u7edc\u548c\u516c\u5171\u7f51\u7edc\u4e2d\u7684\u8d44\u6e90\u4e92\u8bbf\uff0c\u8fd8\u80fd\u63d0\u4f9b\u4e00\u5b9a\u7684\u5b89\u5168\u8bbf\u95ee\u529f\u80fd\u3002_ensp\u4f7f\u7528\u9759\u6001napt\u5bf9\u5916\u53d1\u5e03\u516c\u53f8\u5b98\u7f51\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/21997.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T21:12:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418211226-6802c03ab174a.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/21997.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/21997.html\",\"name\":\"ensp \u57fa\u4e8e\u9759\u6001NAT\u53d1\u5e03\u516c\u53f8\u7f51\u7ad9\u670d\u52a1\u5668\uff0c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T21:12:29+00:00\",\"dateModified\":\"2025-04-18T21:12:29+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/21997.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/21997.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/21997.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ensp \u57fa\u4e8e\u9759\u6001NAT\u53d1\u5e03\u516c\u53f8\u7f51\u7ad9\u670d\u52a1\u5668\uff0c\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ensp \u57fa\u4e8e\u9759\u6001NAT\u53d1\u5e03\u516c\u53f8\u7f51\u7ad9\u670d\u52a1\u5668\uff0c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/21997.html","og_locale":"zh_CN","og_type":"article","og_title":"ensp \u57fa\u4e8e\u9759\u6001NAT\u53d1\u5e03\u516c\u53f8\u7f51\u7ad9\u670d\u52a1\u5668\uff0c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.3k\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf12\u6b21\u3002\u5728\u7f51\u7edc\u7684\u4e0d\u540c\u7c7b\u578b\u4e2d\uff0c\u9664\u4e86\u79c1\u6709\u7f51\u7edc\u5916\uff0c\u8fd8\u6709\u516c\u5171\u7f51\u7edc\uff0c\u4ed6\u4eec\u4e4b\u95f4\u9700\u8981\u4e92\u76f8\u5173\u8054\u624d\u80fd\u5145\u5206\u53d1\u6325\u5404\u81ea\u7684\u529f\u80fd\u3002\u7f51\u7edc\u5730\u5740\u8f6c\u6362\uff08NAT\uff09\u4e0d\u4ec5\u53ef\u4ee5\u5b9e\u73b0\u79c1\u6709\u7f51\u7edc\u548c\u516c\u5171\u7f51\u7edc\u4e2d\u7684\u8d44\u6e90\u4e92\u8bbf\uff0c\u8fd8\u80fd\u63d0\u4f9b\u4e00\u5b9a\u7684\u5b89\u5168\u8bbf\u95ee\u529f\u80fd\u3002_ensp\u4f7f\u7528\u9759\u6001napt\u5bf9\u5916\u53d1\u5e03\u516c\u53f8\u5b98\u7f51","og_url":"https:\/\/www.wsisp.com\/helps\/21997.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T21:12:29+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418211226-6802c03ab174a.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/21997.html","url":"https:\/\/www.wsisp.com\/helps\/21997.html","name":"ensp \u57fa\u4e8e\u9759\u6001NAT\u53d1\u5e03\u516c\u53f8\u7f51\u7ad9\u670d\u52a1\u5668\uff0c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T21:12:29+00:00","dateModified":"2025-04-18T21:12:29+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/21997.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/21997.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/21997.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"ensp \u57fa\u4e8e\u9759\u6001NAT\u53d1\u5e03\u516c\u53f8\u7f51\u7ad9\u670d\u52a1\u5668\uff0c"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/21997","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=21997"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/21997\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/21985"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=21997"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=21997"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=21997"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=21997"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}