1、ping的高级用法网络检查Advanced usage Ping network checkping的高级用法(网络检查)(Advanced usage Ping (network check))Advanced usage of PingFor the Windows under the ping command I believe we are familiar with, but the Ping can function to most people is not a lot, of course, Im not saying that I can make the most of t
2、he Ping, I also just often use Ping this tool, also summarizes some experience, and now share with you.Now Ill refer to the help instructions for the ping command to tell you about the techniques Ill use when Im using Ping. Ping is only installedThe TCP/IP protocol will be available later:Ping -t -a
3、 -n count -l length -f -i ttl -v tos -r count -s count -j computer-list, -k computer-list -w timeout destination-listOptions:-t, Ping, the, specified, host, stopped.To, see, statistics, and, continue - type, Control-Break, To, stop - type, until, Control-C.Keep the Ping local host up until you press
4、 Control-C.There is no special technique for this function, but it can be used in conjunction with other parameters, as mentioned below.-a, Resolve, addresses, to, hostnames.Resolution computer NetBios name.Example: C:, ping -a 192.168.1.21Pinging, iceblood.yofor , 192.168.1.21, with, 32, bytes, of,
5、 data:Reply, from, 192.168.1.21:, bytes=32, time10ms, TTL=254Reply, from, 192.168.1.21:, bytes=32, time10ms, TTL=254Reply, from, 192.168.1.21:, bytes=32, time10ms, TTL=254Reply, from, 192.168.1.21:, bytes=32, timeping -n 50 202.103.96.68Pinging 202.103.96.68 with 32 bytes of data:Reply, from, 202.10
6、3.96.68:, bytes=32, time=50ms, TTL=241Reply, from, 202.103.96.68:, bytes=32, time=50ms, TTL=241Reply, from, 202.103.96.68:, bytes=32, time=50ms, TTL=241Request timed out.Reply, from, 202.103.96.68:, bytes=32, time=50ms, TTL=241reply from 202.103.96.68: bytes = 32 time = 50ms ttl = 241ping statistics
7、 for 202.103.96.68:packet: sent = 50, received = 48, lost = 2 (4% loss), approximate round trip times in milli seconds.minimum = 40ms, maximum = 51ms, average = 46ms从以上我就可以知道在给202.103.96.68发送50个数据包的过程当中, 返回了48个, 其中有两个由于未知原因丢失, 这48个数据包当中返回速度最快为40ms, 最慢为51ms, 平均速度为46ms.- l size send buffer size.定义echo
8、数据包大小.在默认的情况下windows的ping发送的数据包大小为32byt, 我们也可以自己定义它的大小, 但有一个大小的限制, 就是最大只能发送65500byt, 也许有人会问为什么要限制到65500byt, 因为windows系列的系统都有一个安全漏洞 (也许还包括其他系统) 就是当向对方一次发送的数据包大于或等于65532时, 对方就很有可能挡机, 所以微软公司为了解决这一安全漏洞于是限制了ping的数据包大小.虽然微软公司已经做了此限制, 但这个参数配合其他参数以后危害依然非常强大, 比如我们就可以通过配合 - t参数来实现一个带有攻击性的命令:c: ping - the 192.
9、168.1.21 65500 - tpinging 192.168.1.21 with 65500 bytes of data.reply from 192.168.1.21: bytes = 65500 time 10ms ttl = 254reply from 192.168.1.21: bytes = 65500 time ping -n 1 -r 9 202.96.105.101 (send a packet, the most recorded 9 routing)Pinging 202.96.105.101 with 32 bytes of data:Reply, from, 20
10、2.96.105.101:, bytes=32, time=10ms, TTL=249Route: 202.107.208.187 - 202.107.210.214 - 61.153.112.70 - 61.153.112.89 - 202.96.105.149 - 202.96.105.97 - 202.96.105.101 - 202.96.105.150 - 61.153.112.90Ping statistics for 202.96.105.101:Packets:, Sent = 1, Received = 1, Lost = 0 (0%, loss),Approximate,
11、round, trip, times, in, milli-seconds:Minimum = 10ms, Maximum = 10ms, Average = 10msFrom above I can see that from my computer to 202.96.105.101, I have passed the 202.107.208.187202.107.210.214, 61.153.112.70, 61.153.112.89, 202.96.105.149, 202.96.105.97 routes.-s, count, Timestamp, for, count, hop
12、s.Specifies the timestamp of the hop count specified by count.This parameter is similar to -r, except that this parameter does not record the route returned by the packet, and records only 4 at most.-j, host-list, Loose, source, route, along, host-list.Routing packets using the computer list specifi
13、ed by computer-list. A continuous computer can be separated by an intermediate gateway (routing sparse sources), and the maximum number of IP allowed is 9.-k, host-list, Strict, source, route, along, host-list.Routing packets using the computer list specified by computer-list. A continuous computer
14、cannot be separated by an intermediate gateway (routing strict sources), and the maximum number allowed by IP is 9.-w, timeout, Timeout, in, milliseconds, to, wait, for, reply., eachSpecifies a timeout interval, in milliseconds.There are no other tricks for this parameter.Other skills: ping command
15、in general can ping each other let them return to your TTL value system, determine the type of the target host is roughly Windows series or UNIX/Linux series, TTL returns a general series of Windows system in value between 100-130, and returns the TTL value of the system of UNIX/Linux series of cour
16、se, in between 240-255, the value of TTL on the other side of the host can be modified, Windows series can modify the registry key to achieve the following:HKEY_LOCAL_MACHINE SYSTEM CurrentControlSet Services Tcpip ParametersDefaultTTL =dword:000000ff255-FF128-8064-4032-20Well, the ping command is b
17、asically my COPY came over, what doubts on the threadThe PING parameter (reproduced).Ping parameter-a converts the machine ID of the target to the IP address-t if the user is not interrupted, the Ping will continue to go downThe -c count requires the ping command to send packets continuously until t
18、he count request is sent and received-d opens the debug state for the socket you use-f is a quick way to ping. The speed of the Ping output packet is as fast as the packet returned from the remote host, or faster, up to 100 times per second. In this way, each request is represented by a dot. Print a
19、 space bar for each response.-i seconds has a certain number of seconds between two packet transfers. Cannot be used with -f.-n uses only digital mode. In general, Ping attempts to translate IP addresses into host names. This option requires Ping to print the IP address instead of looking for a symb
20、olic name. This option is important if you cannot use the local DNS server for some reason.-p pattern support allows you to identify 16 pad bytes with this option and add these bytes into the packet. This option is very useful when diagnosing errors related to data in the network.-q enables Ping to
21、print only summary information at the beginning and at the end.-R adds the ICMP RECORD-ROUTE option to the ECHO_REQUEST packet and requires that the route be recorded in the packet so that when the data is returned, the Ping can print the routing information. Each packet can only record 9 routing no
22、des. Many hosts ignore or abandon this option.-r bypasses the ping command by routing the normal routing table for sending packets.-s packetsize enables users to identify the number of bytes to send data. The default is 56 characters, plus 8 bytes of ICMP data header, a total of 64 ICMP data bytes.-
23、v makes Ping in verbose mode. It requires the ping command to print all other returned ICMP packets besides printing ECHO-RESPONSE packets.RefillPing command - detailed helpVerify the connection to the remote computer or local computer. This command is only available when the TCP/IP protocol is inst
24、alled.Ping -t -a -n count -l length -f -i ttl -v tos -r count -s count -j computer-list, -k computer-list -w timeout destination-listParameter-tVerify that the connection to the computer is specified until the user interrupts.-aResolves the address to the computer name.-n countSends a specified numb
25、er of ECHO messages by count, with a default value of 4.-l lengthSends a ECHO message containing the data length specified by the length. The default value is 64 bytes, with a maximum value of 8192 bytes.-fSend a no sign in the package. The packet will not be segmented by the gateway on the route.-i
26、 TTLSet the survival time field to the value specified by ttl.-v TOSSet the service type field to the value specified by tos.-r countIn the record routing field, the routing of messages and return messages is recorded. The specified Count value is minimum. It can be 1, and the maximum is 9.-s countSpecifies the time stamp for the number of calls specified by the count.-j computer-listA routing message that passes through a list of computers specified by computer-list. The intermediate gateway may separate successive comp
copyright@ 2008-2023 冰点文库 网站版权所有
经营许可证编号:鄂ICP备19020893号-2