{"id":964,"date":"2019-04-23T22:05:15","date_gmt":"2019-04-23T14:05:15","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=964"},"modified":"2019-04-23T22:05:17","modified_gmt":"2019-04-23T14:05:17","slug":"ipcalc","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/ipcalc","title":{"rendered":"ipcalc\u547d\u4ee4 – \u7b80\u5355\u7684IP\u5730\u5740\u8ba1\u7b97\u5668"},"content":{"rendered":"\n
ipcalc\u547d\u4ee4\u7684\u5168\u79f0\u662f\uff1aCalculate IP information for a host\uff08\u8ba1\u7b97\u4e3b\u673a\u7684IP\u4fe1\u606f\uff09<\/p>\n\n\n\n
ipcalc\u547d\u4ee4\u662f\u4e00\u4e2a\u7b80\u5355\u7684ip\u5730\u5740\u8ba1\u7b97\u5668\uff0c\u53ef\u4ee5\u5b8c\u6210\u7b80\u5355\u7684IP\u5730\u5740\u8ba1\u7b97\u4efb\u52a1\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong> ipcalc [\u53c2\u6570] [IP\u5730\u5740]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u8ba1\u7b97\u7ed9\u5b9a\u63a9\u7801\u7684\u524d\u7f00 \uff1a<\/p>\n\n\n\n \u7ed9\u5b9aIP\u548c\u7f51\u7edc\u63a9\u7801\u8ba1\u7b97\u7f51\u7edc\u5730\u5740 \uff1a<\/p>\n\n\n\n \u7ed9\u5b9aIP\u663e\u793a\u5bf9\u5e94\u7684\u4e3b\u673a\u540d\uff1a<\/p>\n\n\n\n \u4f7f\u7528\u591a\u4e2a\u53c2\u6570\u8ba1\u7b97\u7ed9\u5b9aIP\u7684\u7f51\u7edc\u63a9\u7801\uff0c\u5e7f\u64ad\u5730\u5740\uff0c\u7f51\u7edc\u5730\u5740\uff1a<\/p>\n\n\n\n ipcalc\u547d\u4ee4\u7684\u5168\u79f0\u662f\uff1aCalculate IP information for a host\uff08\u8ba1\u7b97\u4e3b\u673a\u7684I […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/964"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=964"}],"version-history":[{"count":6,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/964\/revisions"}],"predecessor-version":[{"id":1112,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/964\/revisions\/1112"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=964"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=964"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}} -b<\/td> \u7531\u7ed9\u5b9a\u7684IP\u5730\u5740\u548c\u7f51\u7edc\u63a9\u7801\u8ba1\u7b97\u51fa\u5e7f\u64ad\u5730\u5740<\/td><\/tr> -h<\/td> \u663e\u793a\u7ed9\u5b9aIP\u5730\u5740\u6240\u5bf9\u5e94\u7684\u4e3b\u673a\u540d<\/td><\/tr> -m<\/td> \u7531\u7ed9\u5b9a\u7684IP\u5730\u5740\u8ba1\u7b97\u5668\u7f51\u7edc\u63a9\u7801<\/td><\/tr> -p<\/td> \u663e\u793a\u7ed9\u5b9a\u7684\u63a9\u7801\u6216IP\u5730\u5740\u7684\u524d\u7f00<\/td><\/tr> -n<\/td> \u7531\u7ed9\u5b9a\u7684IP\u5730\u5740\u548c\u7f51\u7edc\u63a9\u7801\u8ba1\u7b97\u7f51\u7edc\u5730\u5740<\/td><\/tr> -s<\/td> \u5b89\u9759\u6a21\u5f0f\uff0c\u4e0d\u663e\u793a\u4efb\u4f55\u9519\u8bef\u4fe1\u606f<\/td><\/tr> --help<\/td> \u663e\u793a\u5e2e\u52a9\u4fe1\u606f<\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# ipcalc -p 192.168.88.56 255.255.255.0
PREFIX=24<\/pre>\n\n\n\n[root@linuxcool ~]# ipcalc -n 192.168.88.56 255.255.255.0
NETWORK=192.168.88.0<\/pre>\n\n\n\n[root@linuxcool ~]# ipcalc -h 223.5.5.5
HOSTNAME=public1.alidns.com<\/pre>\n\n\n\n[root@linuxcool ~]# ipcalc -m -b -n 119.29.29.29\/28
NETMASK=255.255.255.240
BROADCAST=119.29.29.31
NETWORK=119.29.29.16<\/pre>\n","protected":false},"excerpt":{"rendered":"