×ðÁú¿­Ê±¹ÙÍøµÇ¼

linuxÏÂping¶Ë¿ÚÏÂÁîÊÇʲô

ÔÚlinuxÖÐ £¬ping¶Ë¿ÚÏÂÁîÊÇ¡°telnet¡±ÏÂÁî £¬telnetÏÂÁîÊÇÒ»¸öÓÃÓÚÔÚÔ¶³ÌÖ÷»úÉϽ¨ÉèÓëÖ¸¶¨¶Ë¿ÚµÄÅþÁ¬µÄ¹¤¾ß £¬Ê¾ÀýΪ£º¡°telnet ¡± £¬ÆäÖÐ £¬ÊÇÄúÏëÒªpingµÄÖ÷»úµÄipµØµã»òÓòÃû £¬ÊÇÄúÏëÒªpingµÄ¶Ë¿ÚºÅ¡£

±¾½Ì³Ì²Ù×÷ϵͳ£ºLinux5.18.14ϵͳ¡¢Dell G3µçÄÔ¡£

ÔÚLinuxÖÐ £¬¿ÉÒÔʹÓÃtelnetÏÂÁîÀ´Ä£ÄâpingÒ»¸öÌض¨µÄ¶Ë¿Ú¡£telnetÏÂÁîÊÇÒ»¸öÓÃÓÚÔÚÔ¶³ÌÖ÷»úÉϽ¨ÉèÓëÖ¸¶¨¶Ë¿ÚµÄÅþÁ¬µÄ¹¤¾ß¡£È»ºó £¬Äú¿ÉÒÔͨ¹ýʵÑéÓëÄ¿µÄÖ÷»úµÄ¶Ë¿Ú½¨ÉèÅþÁ¬À´¼ì²é¶Ë¿ÚµÄ¿É´ïÐÔ¡£

ÒÔÏÂÊÇʹÓÃtelnetÏÂÁî¾ÙÐÐ¶Ë¿Ú ping µÄʾÀý£º

telnet <Ä¿µÄÖ÷»ú> <Ä¿µÄ¶Ë¿Ú>

µÇ¼ºó¸´ÖÆ

ÆäÖÐ £¬ ÊÇÄúÏëÒªpingµÄÖ÷»úµÄIPµØµã»òÓòÃû £¬ ÊÇÄúÏëÒªpingµÄ¶Ë¿ÚºÅ¡£

ÀýÈç £¬ÈôÊÇÄúÏëpingÄ¿µÄÖ÷»ú example.com µÄ¶Ë¿ÚºÅ 80£¨HTTP¶Ë¿Ú£© £¬Ôò¿ÉÒÔÔËÐÐÒÔÏÂÏÂÁ

telnet example.com 80

µÇ¼ºó¸´ÖÆ

ÈôÊÇ¶Ë¿Ú¿É´ï £¬Äú½«¿´µ½Ò»ÌõÀàËÆÓÚÒÔÏÂÐÂÎŵÄÊä³ö£º

Trying xxx.xxx.xxx.xxx...
Connected to example.com.
Escape character is '^]'.

µÇ¼ºó¸´ÖÆ

ÕâÅú×¢ÄúµÄÅÌËãÐÔÄܹ»ÀÖ³ÉÅþÁ¬µ½Ä¿µÄÖ÷»úµÄÖ¸¶¨¶Ë¿Ú¡£ÈôÊǶ˿ڲ»¿É´ï £¬Äú½«¿´µ½ÅþÁ¬Ê§°ÜµÄ¹ýʧÐÂÎÅ¡£

Çë×¢ÖØ £¬Ä³Ð©Linux¿¯Ðаæ¿ÉÄÜĬÈÏûÓÐ×°ÖÃtelnetÏÂÁî¡£Äú¿ÉÒÔʹÓðü¹ÜÀíÆ÷×°ÖÃtelnet £¬ÀýÈçÔÚUbuntuÉÏ £¬¿ÉÒÔÔËÐÐÒÔÏÂÏÂÁî¾ÙÐÐ×°Öãº

sudo apt-get install telnet

µÇ¼ºó¸´ÖÆ

ÓÐʱҲ¿ÉÒÔʹÓÃncÏÂÁnetcat£©À´¾ÙÐж˿Ú̽²â £¬ËüºÍtelnetÏÂÁîÀàËÆ¡£ÒÔÏÂÊÇʹÓÃncÏÂÁî¾ÙÐÐ¶Ë¿Ú ping µÄʾÀý£º

nc -zv <Ä¿µÄÖ÷»ú> <Ä¿µÄ¶Ë¿Ú>

µÇ¼ºó¸´ÖÆ

ÀýÈ磺

nc -zv example.com 80

µÇ¼ºó¸´ÖÆ

ÎÞÂÛÄúÊÇʹÓÃtelnetÕÕ¾Énc £¬¶¼¿ÉÒÔͨ¹ýÕâЩÏÂÁîÀ´²âÊÔÄ¿µÄÖ÷»úÉϵÄÌض¨¶Ë¿ÚÊÇ·ñ¿É´ï¡£

ÒÔÉϾÍÊÇlinuxÏÂping¶Ë¿ÚÏÂÁîÊÇʲôµÄÏêϸÄÚÈÝ £¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí £¬°æȨÕùÒéÓë±¾Õ¾ÎÞ¹Ø £¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿­Ê±¹ÙÍøµÇ¼ÂËÓÍ»úÍø¹Ù·½Ì¬¶È £¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ £¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢ £¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢ £¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼

13452372176

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎå £¬9:30-18:30 £¬½ÚãåÈÕÐÝÏ¢

QR code
ÍøÕ¾µØͼ