{"id":114368,"date":"2018-08-08T08:43:05","date_gmt":"2018-08-08T00:43:05","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=114368"},"modified":"2018-08-01T12:48:49","modified_gmt":"2018-08-01T04:48:49","slug":"sysadmin-guide-networking-commands","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/sysadmin-guide-networking-commands.html","title":{"rendered":"\u7f51\u7edc\u7ba1\u7406\u5458\u5fc5\u5907\u547d\u4ee4"},"content":{"rendered":"
\u5982\u679c\u4f60\u662f\u4e00\u4f4d\u7cfb\u7edf\u7ba1\u7406\u5458\uff0c\u90a3\u4e48\u4f60\u7684\u65e5\u5e38\u5de5\u4f5c\u5e94\u8be5\u5305\u62ec\u7ba1\u7406\u670d\u52a1\u5668\u548c\u6570\u636e\u4e2d\u5fc3\u7684\u7f51\u7edc\u3002\u4ee5\u4e0b\u7684 Linux \u5b9e\u7528\u5de5\u5177\u548c\u547d\u4ee4 \u2014\u2014 \u4ece\u57fa\u7840\u7684\u5230\u9ad8\u7ea7\u7684 \u2014\u2014 \u5c06\u5e2e\u4f60\u66f4\u8f7b\u677e\u5730\u7ba1\u7406\u4f60\u7684\u7f51\u7edc\u3002<\/p>\n
\u5728\u51e0\u4e2a\u547d\u4ee4\u4e2d\uff0c\u4f60\u5c06\u4f1a\u770b\u5230 <fqdn><\/span>\uff0c\u5b83\u662f\u201c\u5b8c\u5168\u5408\u683c\u57df\u540d\u201d\u7684\u5168\u79f0\u3002\u5f53\u4f60\u770b\u5230\u5b83\u65f6\uff0c\u4f60\u5e94\u8be5\u7528\u4f60\u7684\u7f51\u7ad9 URL \u6216\u4f60\u7684\u670d\u52a1\u5668\u6765\u4ee3\u66ff\u5b83\uff08\u6bd4\u5982\uff0cserver-name.company.com<\/span>\uff09\uff0c\u5177\u4f53\u8981\u89c6\u60c5\u51b5\u800c\u5b9a\u3002<\/p>\n \u6b63\u5982\u5b83\u7684\u540d\u5b57\u6240\u8868\u793a\u7684\u90a3\u6837\uff0cping<\/span> \u662f\u7528\u4e8e\u53bb\u68c0\u67e5\u4ece\u4f60\u7684\u7cfb\u7edf\u5230\u4f60\u60f3\u53bb\u8fde\u63a5\u7684\u7cfb\u7edf\u4e4b\u95f4\u7aef\u5230\u7aef\u7684\u8fde\u901a\u6027\u3002\u5f53\u4e00\u4e2a ping<\/span> \u6210\u529f\u65f6\uff0c\u5b83\u4f7f\u7528\u7684 ICMP<\/a>[1]<\/span> \u7684 echo \u5305\u5c06\u4f1a\u8fd4\u56de\u5230\u4f60\u7684\u7cfb\u7edf\u4e2d\u3002\u5b83\u662f\u68c0\u67e5\u7cfb\u7edf\/\u7f51\u7edc\u8fde\u901a\u6027\u7684\u4e00\u4e2a\u826f\u597d\u5f00\u7aef\u3002\u4f60\u53ef\u4ee5\u5728 IPv4 \u548c IPv6 \u5730\u5740\u4e0a\u4f7f\u7528 ping<\/span> \u547d\u4ee4\u3002\uff08\u9605\u8bfb\u6211\u7684\u6587\u7ae0 \"\u5982\u4f55\u5728 Linux \u7cfb\u7edf\u4e0a\u627e\u5230\u4f60\u7684 IP \u5730\u5740<\/a>[2]<\/span>\" \u53bb\u5b66\u4e60\u66f4\u591a\u5173\u4e8e IP \u5730\u5740\u7684\u77e5\u8bc6\uff09<\/p>\n \u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528 ping<\/span> \u53bb\u89e3\u6790\u51fa\u7f51\u7ad9\u6240\u5bf9\u5e94\u7684 IP \u5730\u5740\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n <\/p>\n ping<\/span> \u662f\u7528\u4e8e\u68c0\u67e5\u7aef\u5230\u7aef\u7684\u8fde\u901a\u6027\uff0ctraceroute<\/span> \u5b9e\u7528\u5de5\u5177\u5c06\u544a\u8bc9\u4f60\u5230\u8fbe\u5bf9\u7aef\u7cfb\u7edf\u3001\u7f51\u7ad9\uff0c\u6216\u670d\u52a1\u5668\u6240\u7ecf\u8fc7\u7684\u8def\u5f84\u4e0a\u6240\u6709\u8def\u7531\u5668\u7684 IP \u5730\u5740\u3002traceroute<\/span> \u5728\u7f51\u7edc\u8fde\u63a5\u8c03\u8bd5\u4e2d\u7ecf\u5e38\u7528\u4e8e\u5728 ping<\/span> \u4e4b\u540e\u7684\u7b2c\u4e8c\u6b65\u3002<\/p>\n \u8fd9\u662f\u4e00\u4e2a\u8ddf\u8e2a\u4ece\u4f60\u7684\u7cfb\u7edf\u5230\u5176\u5b83\u5bf9\u7aef\u7684\u5168\u90e8\u7f51\u7edc\u8def\u5f84\u7684\u975e\u5e38\u597d\u7684\u5de5\u5177\u3002\u5728\u68c0\u67e5\u7aef\u5230\u7aef\u7684\u8fde\u901a\u6027\u65f6\uff0c\u8fd9\u4e2a\u5b9e\u7528\u5de5\u5177\u5c06\u544a\u8bc9\u4f60\u5230\u8fbe\u5bf9\u7aef\u7cfb\u7edf\u3001\u7f51\u7ad9\u3001\u6216\u670d\u52a1\u5668\u4e0a\u6240\u7ecf\u5386\u7684\u8def\u5f84\u4e0a\u7684\u5168\u90e8\u8def\u7531\u5668\u7684 IP \u5730\u5740\u3002\u901a\u5e38\u7528\u4e8e\u7f51\u7edc\u8fde\u901a\u6027\u8c03\u8bd5\u7684\u7b2c\u4e8c\u6b65\u3002<\/p>\n\n