I. Ping Introduction Ping is a command in windows, which is also available in UNIX and Linux. Ping also belongs to a communication protocol and is part of the TCP/IP protocol. The ping command can be used to check whether the network is connected,
Said the predecessors of PING Command. PING is used when the first Chinese hacker attacked Indonesia.
Ping Command details
I believe everyone is familiar with the ping command in Windows, but there are not many people who can make the most of the
The Ping command sends an Internet Control Message Protocol (ICMP) echo request message to verify the IP-level connection with another TCP/IP computer. it is an important command, today, I will explain how to use the ping command in linux.
• The
void Icmp_pack (struct icmp* icmphdr, int seq, int length) { int i = 0; Icmphdr->icmp_type = Icmp_echo; Type fill loopback request icmphdr->icmp_code = 0; icmphdr->icmp_cksum = 0; Note that it is important to fill in the 0 first!
By default, Linux allows Ping responses. whether or not the system allows Ping is determined by two factors: A, kernel parameters, B, and firewall. Ping is allowed only when two factors are allowed at the same time, one of the two factors cannot be
(I) How ping works
The source host (the host that inputs the ping command) sends an ECHO packet in the ICMP protocol to the target host.
If the recipient is alive, an ICMP echo-reply packet is returned to the source host.
(Ii) TTL
What does the
I believe everyone is familiar with the ping command in Windows, but there are not many people who can make the most of the ping function, of course, I am not saying that I can allow ping to play its biggest function. I just often use the ping tool
I believe everyone is familiar with the ping command in windows, but there are not many people who can make the most of the Ping function, of course, I am not saying that I can allow ping to play its biggest function. I just often use the ping tool
The content originates from the people's post and Telecommunications press "Linux command Application big dictionary"tell 729 commands, 1935 examplesLearn about the Linux system's reference books, desk book, encountered the command or command not
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.