1、dos命令之ping命令大全详解DOS command ping command Daquan detaileddos命令之ping命令大全详解(DOS command ping command Daquan detailed)Ping usage DaquanLets start with what Ping is about!What is Ping?Ping is a typical network tool. Ping is an executable command that comes with the Windows family, from 98 to the latest 2
2、003 Server version of the computer, with this command line tool. Ping is able to identify certain states of network functionality. The state of these network functions is the basis for routine network fault diagnosis. In particular, Ping is able to identify the binary state of the connection (that i
3、s, whether it is connected). The Ping command checks the connection to the remote computer or local computer by sending the ICMP response message to the computer and listening for the return of the response message. For each sending message, the Ping waits at most one second and prints the number of
4、 messages sent and received. Compare each receive message and send a message to verify its validity. By default, four response messages are sent, each containing 64 bytes of data. Ping sends a loopback request packet to the target host (address) and requests the target host to receive a reply after
5、receiving the request, so as to determine the response time of the network and whether the machine is connected with the target host (address).Ping commandVerify the connection to the remote computer or local computer. This command is only available when the TCP/IP protocol is installed. (TCP/IP agr
6、eement should know to install it, install the system when there is, and if in case deleted, how to do? What else can I do? Reinstall it! How to install, later on. Ha ha )Ping IP -t -a -n count -l length -f -i ttl -v tos -r count -s count -j computer-list -k computer-list -w timeout destination-list
7、|parameter-t (check and specify the connection to the computer until the user interrupts. To interrupt, press the shortcut key: CTRL+C)-a (resolves the address to the computer name)-n count (sends a specified number of ECHO messages by count, default to 4)-l length sends the ECHO message containing
8、the data length specified by the length. The default value is 64 bytes and the maximum value is 8192 bytes-f (send non segmented flag) in the package. The packet will not be segmented by the gateway on the route-i TTL (sets the live time field to the value specified by ttl. Of which: TTL: represents
9、 the number from 1 to 255-v TOS (sets the service type field to the value specified by TOS)-r count routing of messages and return messages in the record routing field. The specified Count value is minimum, can be 1, and the maximum may be 9.)Cases:C:Documents and SettingsAdministratorping 169.254.1
10、90.92 -r 4Pinging 169.254.190.92 with 32 bytes of data:Reply, from, 169.254.190.92:, bytes=32, time1ms, TTL=128Route: 169.254.190.92Reply, from, 169.254.190.92:, bytes=32, time1ms, TTL=128Route: 169.254.190.92Reply, from, 169.254.190.92:, bytes=32, time1ms, TTL=128Route: 169.254.190.92Reply, from, 1
11、69.254.190.92:, bytes=32, time1ms, TTL=128Route: 169.254.190.92Ping statistics for 169.254.190.92:Packets:, Sent = 4, Received = 4, Lost = 0 (0%, loss),Approximate, round, trip, times, in, milli-seconds:Minimum = 0ms, Maximum = 0ms, Average = 0msDescription of the results (same below)The Ping comman
12、d has two return results:1, Request, timed, out. indicates that the response packet returned by the target host has not been received, that is, the network is blocked or the network is in bad condition2, Reply from X.X.X.X: bytes=32 time平169.254.190.92 S 3砰的169.254.190.92与32个字节的数据:回复:从169.254.190.92
13、字节= 32次 1ms TTL = 128时间戳:169.254.190.92:56724750回复:从169.254.190.92字节= 32次 1ms TTL = 128时间戳:169.254.190.92:56725750回复:从169.254.190.92字节= 32次 1ms TTL = 128时间戳:169.254.190.92:56726750回复:从169.254.190.92字节= 32次平169.254.190.92砰的169.254.190.92与32个字节的数据:回复:从169.254.190.92字节= 32次 1ms TTL = 128回复:从169.254.190
14、.92字节= 32次 1ms TTL = 128回复:从169.254.190.92字节= 32次 1ms TTL = 128回复:从169.254.190.92字节= 32次ping 59.52.177.115Pinging 59.52.177.115 with 32 bytes of data:Reply, from, 59.52.177.115:, bytes=32, time1ms, TTL=128Reply, from, 59.52.177.115:, bytes=32, time1ms, TTL=128Reply, from, 59.52.177.115:, bytes=32, t
15、ime1ms, TTL=128Reply, from, 59.52.177.115:, bytes=32, timeping 202.101.224.69Pinging 202.101.224.69 with 32 bytes of data:Reply, from, 202.101.224.69:, bytes=32, time=2ms, TTL=250Reply, from, 202.101.224.69:, bytes=32, time=2ms, TTL=250Reply, from, 202.101.224.69:, bytes=32, time=3ms, TTL=250Reply,
16、from, 202.101.224.69:, bytes=32, time=2ms, TTL=250Ping statistics for 202.101.224.69:Packets:, Sent = 4, Received = 4, Lost = 0 (0%, loss),Approximate, round, trip, times, in, milli-seconds:Minimum = 2ms, Maximum = 3MS, Average = 2msIt shows that the operation is normal and can access the Internet p
17、roperly. Otherwise, there is a problem with the host file (windows/host).4. check the line between your computer and the gatewayEnter the ipconfig command at the command prompt window, will return to your computer on the network address of the IP (IP Address), subnet mask (Subnet Mask) and gateway (
18、Default Gateway), and in IP if you use your computer is automatic access to IP, adcress behind the show is 169.XXX.XXX.XXX IP address you the computer is not retrieved from the DHCP server. The IP address is available for the computer. At this point, you can use the command ipconfig /renew to retrie
19、ve the IP (win98/me using ipconfig/renew_all), and generally get the correct IP address, of course, the premise is that the DHCP server is normal. If you cant get the correct IP address, check that the firewall software blocks the network card communication, such as the firewall of Windows XP.After
20、you get the correct IP address, subnet mask, and gateway address, you can use the Ping tool to probe whether or not the local computer and gateway are connected. After running the command Ping gateway address, if the returned result is normal, and IE still can not open the web page, this time should
21、 be fourth steps. If the returned result is not normal, the network of your computer and gateway host is not normal. At this point, if the Adsl user, you need to call the operators to rescue, so that they check their server is a fault. If you are a LAN user, you need to ask the network administrator
22、 to check whether the network switching device and gateway server are working properly.From the working process of Ping, we can know that the host A received an answer packet from the host B, indicating that the access and return paths between the two hosts are normal. That is to say, from the host
23、A to the host B, or from the host B to the host A, it is normal. So, what caused only one direction Ping connection?Install a personal firewallIn a shared Internet machine, most of the servers hosts have personal firewall software for security reasons, and other machines that are used as clients are
24、 generally not installed. Almost all personal firewall software, by default, does not allow other machines to Ping native. The general practice is to filter out the ICMP request message from the outside, but it does not restrict the ICMP request message that is out of the home and the ICMP reply message from the outside. This way,
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1