{"id":57055,"date":"2025-08-15T07:20:19","date_gmt":"2025-08-14T23:20:19","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/57055.html"},"modified":"2025-08-15T07:20:19","modified_gmt":"2025-08-14T23:20:19","slug":"%e3%80%90linux%e7%b3%bb%e5%88%97%e3%80%91%e6%9c%8d%e5%8a%a1%e5%99%a8-ip-%e5%9c%b0%e5%9d%80%e6%9f%a5%e8%af%a2","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/57055.html","title":{"rendered":"\u3010Linux\u7cfb\u5217\u3011\u670d\u52a1\u5668 IP \u5730\u5740\u67e5\u8be2"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814232018-689e6f32492b9.gif\" alt=\"csdn\" \/><\/p>\n<\/p>\n<h4>\u535a\u5ba2\u76ee\u5f55<\/h4>\n<ul>\n<li>\n<ul>\n<li>\u4e00\u3001hostname \u547d\u4ee4&#xff1a;\u7b80\u5355\u9ad8\u6548\u7684 IP \u67e5\u8be2\u5de5\u5177<\/li>\n<li>\n<ul>\n<li>\u547d\u4ee4\u8be6\u89e3<\/li>\n<li>\u5b9e\u9645\u5e94\u7528\u6280\u5de7<\/li>\n<li>\u6ce8\u610f\u4e8b\u9879<\/li>\n<\/ul>\n<\/li>\n<li>\u4e8c\u3001ip \u547d\u4ee4&#xff1a;\u65b0\u4e00\u4ee3\u7f51\u7edc\u914d\u7f6e\u5168\u80fd\u5de5\u5177<\/li>\n<li>\n<ul>\n<li>\u57fa\u672c\u7528\u6cd5<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u5728\u670d\u52a1\u5668\u7ba1\u7406\u548c\u7f51\u7edc\u8fd0\u7ef4\u4e2d&#xff0c;\u5feb\u901f\u51c6\u786e\u5730\u83b7\u53d6\u670d\u52a1\u5668\u7684 IP \u5730\u5740\u662f\u4e00\u9879\u57fa\u672c\u4f46\u81f3\u5173\u91cd\u8981\u7684\u6280\u80fd\u3002\u65e0\u8bba\u662f\u8fdb\u884c\u8fdc\u7a0b\u8fde\u63a5\u3001\u914d\u7f6e\u7f51\u7edc\u670d\u52a1\u8fd8\u662f\u6392\u67e5\u6545\u969c&#xff0c;\u4e86\u89e3\u5982\u4f55\u67e5\u8be2 IP \u5730\u5740\u90fd\u662f\u6bcf\u4f4d\u7cfb\u7edf\u7ba1\u7406\u5458\u5fc5\u5907\u7684\u80fd\u529b\u3002<\/p>\n<h3>\u4e00\u3001hostname \u547d\u4ee4&#xff1a;\u7b80\u5355\u9ad8\u6548\u7684 IP \u67e5\u8be2\u5de5\u5177<\/h3>\n<p>hostname -I\u547d\u4ee4\u65e0\u7591\u662f\u67e5\u8be2\u670d\u52a1\u5668 IP \u5730\u5740\u6700\u76f4\u63a5\u7684\u65b9\u5f0f\u4e4b\u4e00\u3002\u8fd9\u4e2a\u547d\u4ee4\u7684\u8bbe\u8ba1\u521d\u8877\u5c31\u662f\u4e3a\u4e86\u63d0\u4f9b\u4e00\u4e2a\u7b80\u5355\u5feb\u6377\u7684\u65b9\u6cd5\u6765\u83b7\u53d6\u670d\u52a1\u5668\u7684\u7f51\u7edc\u914d\u7f6e\u4fe1\u606f\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814232018-689e6f325c69f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>\u547d\u4ee4\u8be6\u89e3<\/h4>\n<p>\u5f53\u60a8\u5728\u7ec8\u7aef\u6267\u884chostname -I\u65f6&#xff0c;\u7cfb\u7edf\u4f1a\u8fd4\u56de\u670d\u52a1\u5668\u4e0a\u6240\u6709\u975e\u56de\u73af(loopback)\u7f51\u7edc\u63a5\u53e3\u914d\u7f6e\u7684 IP \u5730\u5740&#xff0c;\u8fd9\u4e9b\u5730\u5740\u4ee5\u7a7a\u683c\u5206\u9694\u663e\u793a\u5728\u4e00\u884c\u4e2d\u3002\u4f8b\u5982&#xff1a;<\/p>\n<p>203.0.xxx.42 2001:db8:abcd:1234::5678<\/p>\n<p>\u8fd9\u4e2a\u8f93\u51fa\u4e2d&#xff0c;\u7b2c\u4e00\u4e2a\u5730\u5740(203.0.113.42)\u901a\u5e38\u662f IPv4 \u5730\u5740&#xff0c;\u7b2c\u4e8c\u4e2a\u5730\u5740(2001:db8&#x1f521;1234::5678)\u5219\u662f IPv6 \u5730\u5740\u3002\u8fd9\u79cd\u663e\u793a\u65b9\u5f0f\u7279\u522b\u9002\u5408\u811a\u672c\u5904\u7406&#xff0c;\u56e0\u4e3a\u5b83\u7684\u8f93\u51fa\u683c\u5f0f\u975e\u5e38\u89c4\u8303\u3002<\/p>\n<h4>\u5b9e\u9645\u5e94\u7528\u6280\u5de7<\/h4>\n<li>\n<p>\u83b7\u53d6\u4e3b\u7f51\u5361 IP&#xff1a;\u5728\u5f88\u591a\u81ea\u52a8\u5316\u811a\u672c\u4e2d&#xff0c;\u6211\u4eec\u53ea\u9700\u8981\u670d\u52a1\u5668\u7684\u9996\u8981 IP \u5730\u5740\u3002\u8fd9\u65f6\u53ef\u4ee5\u4f7f\u7528\u7ba1\u9053\u7ed3\u5408 awk \u547d\u4ee4&#xff1a;<\/p>\n<p> <span class=\"token function\">hostname<\/span> <span class=\"token parameter variable\">-I<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">awk<\/span> <span class=\"token string\">&#039;{print $1}&#039;<\/span><\/p>\n<p>\u8fd9\u6761\u547d\u4ee4\u4f1a\u8fd4\u56de\u5217\u8868\u4e2d\u7684\u7b2c\u4e00\u4e2a IP \u5730\u5740&#xff0c;\u901a\u5e38\u662f\u4e3b\u7f51\u5361\u7684 IP\u3002<\/p>\n<\/li>\n<li>\n<p>IPv4 \u4e0e IPv6 \u5206\u79bb&#xff1a;\u5982\u679c\u9700\u8981\u5355\u72ec\u83b7\u53d6 IPv4 \u6216 IPv6 \u5730\u5740&#xff0c;\u53ef\u4ee5\u7ed3\u5408 grep \u547d\u4ee4\u8fdb\u884c\u7b5b\u9009&#xff1a;<\/p>\n<p> <span class=\"token function\">hostname<\/span> <span class=\"token parameter variable\">-I<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> <span class=\"token parameter variable\">-oE<\/span> <span class=\"token string\">&#039;\\\\b([0-9]{1,3}\\\\.){3}[0-9]{1,3}\\\\b&#039;<\/span>  <span class=\"token comment\"># IPv4<\/span><br \/>\n<span class=\"token function\">hostname<\/span> <span class=\"token parameter variable\">-I<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> <span class=\"token parameter variable\">-oE<\/span> <span class=\"token string\">&#039;([0-9a-fA-F]{0,4}:){1,7}[0-9a-fA-F]{0,4}&#039;<\/span>  <span class=\"token comment\"># IPv6<\/span>\n <\/li>\n<li>\n<p>\u7edf\u8ba1 IP \u6570\u91cf&#xff1a;\u8981\u4e86\u89e3\u670d\u52a1\u5668\u914d\u7f6e\u4e86\u591a\u5c11\u4e2a\u975e\u56de\u73af IP \u5730\u5740&#xff0c;\u53ef\u4ee5\u4f7f\u7528&#xff1a;<\/p>\n<p> <span class=\"token function\">hostname<\/span> <span class=\"token parameter variable\">-I<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">wc<\/span> <span class=\"token parameter variable\">-w<\/span>\n <\/li>\n<h4>\u6ce8\u610f\u4e8b\u9879<\/h4>\n<ul>\n<li>\u5728\u67d0\u4e9b\u6781\u7b80 Linux \u53d1\u884c\u7248\u4e2d&#xff0c;hostname\u547d\u4ee4\u53ef\u80fd\u4e0d\u652f\u6301-I\u53c2\u6570&#xff0c;\u8fd9\u65f6\u9700\u8981\u5b89\u88c5\u5b8c\u6574\u7684\u4e3b\u673a\u540d\u5de5\u5177\u5305\u3002<\/li>\n<li>\u5982\u679c\u670d\u52a1\u5668\u6ca1\u6709\u4efb\u4f55\u7f51\u7edc\u63a5\u53e3\u914d\u7f6e&#xff08;\u9664\u4e86\u56de\u73af\u63a5\u53e3&#xff09;&#xff0c;\u547d\u4ee4\u53ef\u80fd\u8fd4\u56de\u7a7a\u7ed3\u679c\u3002<\/li>\n<li>\u5728\u5bb9\u5668\u5316\u73af\u5883\u4e2d&#xff0c;\u8fd9\u4e2a\u547d\u4ee4\u8fd4\u56de\u7684\u662f\u5bb9\u5668\u5185\u90e8\u7684 IP \u5730\u5740&#xff0c;\u800c\u4e0d\u662f\u5bbf\u4e3b\u673a\u7684 IP\u3002<\/li>\n<\/ul>\n<h3>\u4e8c\u3001ip \u547d\u4ee4&#xff1a;\u65b0\u4e00\u4ee3\u7f51\u7edc\u914d\u7f6e\u5168\u80fd\u5de5\u5177<\/h3>\n<p>ip\u547d\u4ee4\u662f Linux \u7cfb\u7edf\u4e2d\u65b0\u4e00\u4ee3\u7684\u7f51\u7edc\u914d\u7f6e\u5de5\u5177&#xff0c;\u5c5e\u4e8e iproute2 \u8f6f\u4ef6\u5305\u7684\u4e00\u90e8\u5206&#xff0c;\u5b83\u6b63\u5728\u9010\u6b65\u53d6\u4ee3\u4f20\u7edf\u7684ifconfig\u547d\u4ee4\u3002<\/p>\n<h4>\u57fa\u672c\u7528\u6cd5<\/h4>\n<p>\u67e5\u770b\u6240\u6709\u7f51\u7edc\u63a5\u53e3\u7684\u8be6\u7ec6\u4fe1\u606f&#xff1a;<\/p>\n<p><span class=\"token function\">ip<\/span> addr show<\/p>\n<p>\u6216\u8005\u7b80\u5199\u4e3a&#xff1a;<\/p>\n<p><span class=\"token function\">ip<\/span> a<\/p>\n<p>\u89c9\u5f97\u6709\u7528\u7684\u8bdd\u70b9\u4e2a\u8d5e &#x1f44d;&#x1f3fb; \u5457\u3002 \u2764\ufe0f\u2764\ufe0f\u2764\ufe0f\u672c\u4eba\u6c34\u5e73\u6709\u9650&#xff0c;\u5982\u6709\u7eb0\u6f0f&#xff0c;\u6b22\u8fce\u5404\u4f4d\u5927\u4f6c\u8bc4\u8bba\u6279\u8bc4\u6307\u6b63&#xff01;&#x1f604;&#x1f604;&#x1f604;<\/p>\n<p>&#x1f498;&#x1f498;&#x1f498;\u5982\u679c\u89c9\u5f97\u8fd9\u7bc7\u6587\u5bf9\u4f60\u6709\u5e2e\u52a9\u7684\u8bdd&#xff0c;\u4e5f\u8bf7\u7ed9\u4e2a\u70b9\u8d5e\u3001\u6536\u85cf\u4e0b\u5427&#xff0c;\u975e\u5e38\u611f\u8c22!&#x1f44d; &#x1f44d; &#x1f44d;<\/p>\n<p>&#x1f525;&#x1f525;&#x1f525;Stay Hungry Stay Foolish \u9053\u963b\u4e14\u957f,\u884c\u5219\u5c06\u81f3,\u8ba9\u6211\u4eec\u4e00\u8d77\u52a0\u6cb9\u5427&#xff01;&#x1f319;&#x1f319;&#x1f319;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814232018-689e6f3273e14.gif\" alt=\"img\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb831\u6b21\uff0c\u70b9\u8d5e18\u6b21\uff0c\u6536\u85cf13\u6b21\u3002\u8fd9\u4e2a\u8f93\u51fa\u4e2d\uff0c\u7b2c\u4e00\u4e2a\u5730\u5740(203.0.113.42)\u901a\u5e38\u662f IPv4 \u5730\u5740\uff0c\u7b2c\u4e8c\u4e2a\u5730\u5740(2001:db8\ud83d\udd211234::5678)\u5219\u662f IPv6 \u5730\u5740\u3002\u5728\u670d\u52a1\u5668\u7ba1\u7406\u548c\u7f51\u7edc\u8fd0\u7ef4\u4e2d\uff0c\u5feb\u901f\u51c6\u786e\u5730\u83b7\u53d6\u670d\u52a1\u5668\u7684 IP \u5730\u5740\u662f\u4e00\u9879\u57fa\u672c\u4f46\u81f3\u5173\u91cd\u8981\u7684\u6280\u80fd\u3002\u65f6\uff0c\u7cfb\u7edf\u4f1a\u8fd4\u56de\u670d\u52a1\u5668\u4e0a\u6240\u6709\u975e\u56de\u73af(loopback)\u7f51\u7edc\u63a5\u53e3\u914d\u7f6e\u7684 IP \u5730\u5740\uff0c\u8fd9\u4e9b\u5730\u5740\u4ee5\u7a7a\u683c\u5206\u9694\u663e\u793a\u5728\u4e00\u884c\u4e2d\u3002\uff1a\u5728\u5f88\u591a\u81ea\u52a8\u5316\u811a\u672c\u4e2d\uff0c\u6211\u4eec\u53ea\u9700\u8981\u670d\u52a1\u5668\u7684\u9996\u8981 IP \u5730\u5740\u3002\u8fd9\u6761\u547d\u4ee4\u4f1a\u8fd4\u56de\u5217\u8868\u4e2d\u7684\u7b2c\u4e00\u4e2a IP \u5730\u5740\uff0c\u901a\u5e38\u662f\u4e3b\u7f51\u5361\u7684 IP\u3002<\/p>\n","protected":false},"author":2,"featured_media":57052,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,793,205,43],"topic":[],"class_list":["post-57055","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-linux","tag-s5-linux","tag-tcp-ip","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010Linux\u7cfb\u5217\u3011\u670d\u52a1\u5668 IP \u5730\u5740\u67e5\u8be2 - \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\/57055.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Linux\u7cfb\u5217\u3011\u670d\u52a1\u5668 IP \u5730\u5740\u67e5\u8be2 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb831\u6b21\uff0c\u70b9\u8d5e18\u6b21\uff0c\u6536\u85cf13\u6b21\u3002\u8fd9\u4e2a\u8f93\u51fa\u4e2d\uff0c\u7b2c\u4e00\u4e2a\u5730\u5740(203.0.113.42)\u901a\u5e38\u662f IPv4 \u5730\u5740\uff0c\u7b2c\u4e8c\u4e2a\u5730\u5740(2001:db8\ud83d\udd211234::5678)\u5219\u662f IPv6 \u5730\u5740\u3002\u5728\u670d\u52a1\u5668\u7ba1\u7406\u548c\u7f51\u7edc\u8fd0\u7ef4\u4e2d\uff0c\u5feb\u901f\u51c6\u786e\u5730\u83b7\u53d6\u670d\u52a1\u5668\u7684 IP \u5730\u5740\u662f\u4e00\u9879\u57fa\u672c\u4f46\u81f3\u5173\u91cd\u8981\u7684\u6280\u80fd\u3002\u65f6\uff0c\u7cfb\u7edf\u4f1a\u8fd4\u56de\u670d\u52a1\u5668\u4e0a\u6240\u6709\u975e\u56de\u73af(loopback)\u7f51\u7edc\u63a5\u53e3\u914d\u7f6e\u7684 IP \u5730\u5740\uff0c\u8fd9\u4e9b\u5730\u5740\u4ee5\u7a7a\u683c\u5206\u9694\u663e\u793a\u5728\u4e00\u884c\u4e2d\u3002\uff1a\u5728\u5f88\u591a\u81ea\u52a8\u5316\u811a\u672c\u4e2d\uff0c\u6211\u4eec\u53ea\u9700\u8981\u670d\u52a1\u5668\u7684\u9996\u8981 IP \u5730\u5740\u3002\u8fd9\u6761\u547d\u4ee4\u4f1a\u8fd4\u56de\u5217\u8868\u4e2d\u7684\u7b2c\u4e00\u4e2a IP \u5730\u5740\uff0c\u901a\u5e38\u662f\u4e3b\u7f51\u5361\u7684 IP\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/57055.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-14T23:20:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814232018-689e6f32492b9.gif\" \/>\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=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/57055.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/57055.html\",\"name\":\"\u3010Linux\u7cfb\u5217\u3011\u670d\u52a1\u5668 IP \u5730\u5740\u67e5\u8be2 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-14T23:20:19+00:00\",\"dateModified\":\"2025-08-14T23:20:19+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/57055.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/57055.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/57055.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Linux\u7cfb\u5217\u3011\u670d\u52a1\u5668 IP \u5730\u5740\u67e5\u8be2\"}]},{\"@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":"\u3010Linux\u7cfb\u5217\u3011\u670d\u52a1\u5668 IP \u5730\u5740\u67e5\u8be2 - \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\/57055.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010Linux\u7cfb\u5217\u3011\u670d\u52a1\u5668 IP \u5730\u5740\u67e5\u8be2 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb831\u6b21\uff0c\u70b9\u8d5e18\u6b21\uff0c\u6536\u85cf13\u6b21\u3002\u8fd9\u4e2a\u8f93\u51fa\u4e2d\uff0c\u7b2c\u4e00\u4e2a\u5730\u5740(203.0.113.42)\u901a\u5e38\u662f IPv4 \u5730\u5740\uff0c\u7b2c\u4e8c\u4e2a\u5730\u5740(2001:db8\ud83d\udd211234::5678)\u5219\u662f IPv6 \u5730\u5740\u3002\u5728\u670d\u52a1\u5668\u7ba1\u7406\u548c\u7f51\u7edc\u8fd0\u7ef4\u4e2d\uff0c\u5feb\u901f\u51c6\u786e\u5730\u83b7\u53d6\u670d\u52a1\u5668\u7684 IP \u5730\u5740\u662f\u4e00\u9879\u57fa\u672c\u4f46\u81f3\u5173\u91cd\u8981\u7684\u6280\u80fd\u3002\u65f6\uff0c\u7cfb\u7edf\u4f1a\u8fd4\u56de\u670d\u52a1\u5668\u4e0a\u6240\u6709\u975e\u56de\u73af(loopback)\u7f51\u7edc\u63a5\u53e3\u914d\u7f6e\u7684 IP \u5730\u5740\uff0c\u8fd9\u4e9b\u5730\u5740\u4ee5\u7a7a\u683c\u5206\u9694\u663e\u793a\u5728\u4e00\u884c\u4e2d\u3002\uff1a\u5728\u5f88\u591a\u81ea\u52a8\u5316\u811a\u672c\u4e2d\uff0c\u6211\u4eec\u53ea\u9700\u8981\u670d\u52a1\u5668\u7684\u9996\u8981 IP \u5730\u5740\u3002\u8fd9\u6761\u547d\u4ee4\u4f1a\u8fd4\u56de\u5217\u8868\u4e2d\u7684\u7b2c\u4e00\u4e2a IP \u5730\u5740\uff0c\u901a\u5e38\u662f\u4e3b\u7f51\u5361\u7684 IP\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/57055.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-14T23:20:19+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814232018-689e6f32492b9.gif"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/57055.html","url":"https:\/\/www.wsisp.com\/helps\/57055.html","name":"\u3010Linux\u7cfb\u5217\u3011\u670d\u52a1\u5668 IP \u5730\u5740\u67e5\u8be2 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-14T23:20:19+00:00","dateModified":"2025-08-14T23:20:19+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/57055.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/57055.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/57055.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010Linux\u7cfb\u5217\u3011\u670d\u52a1\u5668 IP \u5730\u5740\u67e5\u8be2"}]},{"@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\/57055","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=57055"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/57055\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/57052"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=57055"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=57055"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=57055"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=57055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}