Powerful Command--ping command summary

Source: Internet
Author: User

The ping command is mainly used to detect connectivity between two hosts in the network, and we usually say, ping a host, see if it is open, the webpage does not open, ping the default gateway. But sometimes we have some hosts for security, to prevent others to ping, usually set up a firewall, the host can accept the packet, but can not return the packet, so the ping does not indicate that the host is in the shutdown state.

The ping commands in Linux are different from those in Windows, and the ping in Linux does not automatically terminate, it needs to be terminated with CTRL + C, or you can specify the number of pings with the –c parameter.

Command format:

ping [-dfnqrrv][-c send][-i interval seconds][-i network interface][-l pre-load][-p template style]
[-S packet size] [-t survival value] [Host name or IP address]

Parameter description:

-D uses the So_debug function of the socket.

-F limit detection. Send a large and fast network packet to a machine to see its response.

-n outputs only numeric values. Www.2cto.com

-Q does not display information for any transmittal packets, only the final result is displayed.

-R ignores the normal routing Table and sends the packet directly to the remote host. This is usually a matter of looking at the network interface of this computer.

-R records the routing process.

-V shows the execution of the instruction in detail.

The-c number stops after the specified number of packets are sent.

-I seconds set interval a few seconds to send a network packet to a machine, the default value is one second to send once.

The-I network interface sends out packets using the specified network interface.

-L pre-load sets the packets that are emitted before the requested information is sent out.

The-P template style sets the template style that fills the packet.

-S bytes Specifies the number of bytes of data sent, the default value is 56, plus 8 bytes of ICMP header, which is a total of 64ICMP data bytes.

-T survival value sets the size of the Live value TTL.



Temporarily think of these, will be updated later, if there is wrong, also please point out, thank you.






This article is from the "focus on Java,linux Technology" blog, please be sure to keep this source http://wuqinglong.blog.51cto.com/9087037/1588373

Powerful Command--ping command summary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.