{"id":27947,"date":"2023-09-15T07:23:17","date_gmt":"2023-09-14T23:23:17","guid":{"rendered":"\/\/www.dealsbon.com\/?p=27947"},"modified":"2023-09-15T07:23:17","modified_gmt":"2023-09-14T23:23:17","slug":"zmpwlidzjdk","status":"publish","type":"post","link":"\/\/www.dealsbon.com\/blog\/27947.html","title":{"rendered":"\u600e\u4e48ping\u7f51\u7edcIP\u5730\u5740\u52a0\u7aef\u53e3"},"content":{"rendered":"

  Ping\u662f\u4e00\u79cd\u7f51\u7edc\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u6d4b\u8bd5\u4e92\u8054\u7f51\u4e0a\u7684\u4e3b\u673a\u662f\u5426\u53ef\u8fbe\uff0c\u4ee5\u53ca\u5b83\u4eec\u4e4b\u95f4\u7684\u7f51\u7edc\u901a\u4fe1\u5ef6\u8fdf\u3002Ping\u53ef\u4ee5\u7528\u6765\u6d4b\u8bd5\u672c\u5730\u7f51\u7edc\u6216\u4e92\u8054\u7f51\u4e0a\u7684\u4efb\u4f55\u5730\u5740\uff0c\u5305\u62ecIP\u5730\u5740\u548c\u57df\u540d\u3002\u5728Windows\u548cLinux\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528ping\u547d\u4ee4\u6765ping\u7f51\u7edcIP\u5730\u5740\u52a0\u7aef\u53e3\uff0c\u4ece\u800c\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5\u662f\u5426\u6b63\u5e38\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528ping\u547d\u4ee4\u6765ping\u7f51\u7edcIP\u5730\u5740\u52a0\u7aef\u53e3\u3002<\/p>\n

\u4ec0\u4e48\u662fping\u7f51\u7edcIP\u5730\u5740\u52a0\u7aef\u53e3\uff1f<\/h2>\n

  Ping\u7f51\u7edcIP\u5730\u5740\u52a0\u7aef\u53e3\u662f\u6307\u5411\u7279\u5b9aIP\u5730\u5740\u53d1\u9001ICMP\uff08Internet Control Message Protocol\uff09\u8bf7\u6c42\uff0c\u5e76\u4f7f\u7528\u6307\u5b9a\u7aef\u53e3\u53d1\u9001\u8bf7\u6c42\uff0c\u4ee5\u6d4b\u8bd5\u7f51\u7edc\u8fde\u63a5\u7684\u72b6\u6001\u3002Ping\u547d\u4ee4\u53ef\u4ee5\u7528\u6765\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5\u662f\u5426\u6b63\u5e38\uff0c\u6216\u8005\u68c0\u67e5\u7279\u5b9a\u670d\u52a1\u5668\u7684\u53ef\u7528\u6027\u3002<\/p>\n

\u5982\u4f55\u4f7f\u7528ping\u547d\u4ee4ping\u7f51\u7edcIP\u5730\u5740\u52a0\u7aef\u53e3\uff1f<\/h2>\n

Windows\u7cfb\u7edf<\/h3>\n

  \u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528ping\u547d\u4ee4\u6765ping\u7f51\u7edcIP\u5730\u5740\u52a0\u7aef\u53e3\u3002\u8981\u8fdb\u884cping\uff0c\u9996\u5148\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u7a97\u53e3\uff0c\u7136\u540e\u8f93\u5165ping\u547d\u4ee4\uff0c\u683c\u5f0f\u5982\u4e0b\uff1a<\/p>\n

  ping -n 1 -w 1 -l port IP\u5730\u5740<\/p>\n

  \u5176\u4e2d\uff0c-n 1\u8868\u793a\u53d1\u90011\u4e2aICMP\u8bf7\u6c42\uff0c-w 1\u8868\u793a\u7b49\u5f851\u79d2\uff0c-l port\u8868\u793a\u7aef\u53e3\u53f7\uff0cIP\u5730\u5740\u8868\u793a\u8981ping\u7684IP\u5730\u5740\u3002\u4f8b\u5982\uff0c\u8981ping 192.168.1.100\u7684\u7aef\u53e380\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

  ping -n 1 -w 1 -l 80 192.168.1.100<\/p>\n

Linux\u7cfb\u7edf<\/h3>\n

  \u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528ping\u547d\u4ee4\u6765ping\u7f51\u7edcIP\u5730\u5740\u52a0\u7aef\u53e3\u3002\u8981\u8fdb\u884cping\uff0c\u9996\u5148\u6253\u5f00\u7ec8\u7aef\uff0c\u7136\u540e\u8f93\u5165ping\u547d\u4ee4\uff0c\u683c\u5f0f\u5982\u4e0b\uff1a<\/p>\n

  ping -c 1 -W 1 -p port IP\u5730\u5740<\/p>\n

  \u5176\u4e2d\uff0c-c 1\u8868\u793a\u53d1\u90011\u4e2aICMP\u8bf7\u6c42\uff0c-W 1\u8868\u793a\u7b49\u5f851\u79d2\uff0c-p port\u8868\u793a\u7aef\u53e3\u53f7\uff0cIP\u5730\u5740\u8868\u793a\u8981ping\u7684IP\u5730\u5740\u3002\u4f8b\u5982\uff0c\u8981ping 192.168.1.100\u7684\u7aef\u53e380\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

  ping -c 1 -W 1 -p 80 192.168.1.100<\/p>\n

\u603b\u7ed3<\/h2>\n

  Ping\u7f51\u7edcIP\u5730\u5740\u52a0\u7aef\u53e3\u662f\u6307\u5411\u7279\u5b9aIP\u5730\u5740\u53d1\u9001ICMP\u8bf7\u6c42\uff0c\u5e76\u4f7f\u7528\u6307\u5b9a\u7aef\u53e3\u53d1\u9001\u8bf7\u6c42\uff0c\u4ee5\u6d4b\u8bd5\u7f51\u7edc\u8fde\u63a5\u7684\u72b6\u6001\u3002<\/strong>\u5728Windows\u548cLinux\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528ping\u547d\u4ee4\u6765ping\u7f51\u7edcIP\u5730\u5740\u52a0\u7aef\u53e3\uff0c\u4ece\u800c\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5\u662f\u5426\u6b63\u5e38\u3002\u4f7f\u7528ping\u547d\u4ee4ping\u7f51\u7edcIP\u5730\u5740\u52a0\u7aef\u53e3\uff0c\u53ef\u4ee5\u66f4\u597d\u5730\u4e86\u89e3\u7f51\u7edc\u72b6\u51b5\uff0c\u5e76\u53ca\u65f6\u53d1\u73b0\u7f51\u7edc\u95ee\u9898\uff0c\u4ece\u800c\u4fdd\u62a4\u7f51\u7edc\u5b89\u5168\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

Ping\u662f\u4e00\u79cd\u7f51\u7edc\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u6d4b\u8bd5\u4e92\u8054\u7f51\u4e0a\u7684\u4e3b\u673a\u662f\u5426\u53ef\u8fbe\uff0c\u4ee5\u53ca\u5b83\u4eec\u4e4b\u95f4\u7684\u7f51\u7edc\u901a\u4fe1\u5ef6\u8fdf\u3002Ping\u53ef\u4ee5\u7528\u6765\u6d4b\u8bd5\u672c\u5730\u7f51\u7edc\u6216\u4e92\u8054\u7f51\u4e0a\u7684\u4efb\u4f55\u5730\u5740\uff0c\u5305\u62ecIP\u5730\u5740\u548c\u57df\u540d\u3002\u5728Wind<\/p>\n","protected":false},"author":1,"featured_media":3671,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[52],"class_list":["post-27947","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-wxtx"],"_links":{"self":[{"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/posts\/27947"}],"collection":[{"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/comments?post=27947"}],"version-history":[{"count":0,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/posts\/27947\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/media\/3671"}],"wp:attachment":[{"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/media?parent=27947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/categories?post=27947"},{"taxonomy":"post_tag","embeddable":true,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/tags?post=27947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}