当前位置:网站首页>Ping command – test network connectivity between hosts
Ping command – test network connectivity between hosts
2022-06-25 05:59:00 【ProYuan28】
ping The command is mainly used to test the network connectivity between hosts , It can also be used for . perform ping Command will use ICMP Transfer protocol , Send a message asking for a response , If there is no problem with the network function of the remote host , They'll respond to the message , So we know that the host is working normally .
But it is worth noting that :Linux Under the system ping Command and Windows Under the system ping The order is slightly different .Windows Run under ping Commands are usually issued 4 A request ends running the command ; and Linux It will not automatically terminate , At this point, we need to press CTR+C Termination or use -c Parameter is ping Command specifies the number of requests sent .
Grammar format :ping [ Parameters ] [ The target host ]
Common parameters :
| -d | Use Socket Of SO_DEBUG function |
| -c | Specify the number of times to send messages |
| -i | Specify the time interval between sending and receiving information |
| -I | Send packets using the specified network interface |
| -l | Set before sending the required information , Packets sent first |
| -n | Output only values |
| -p | Set the template style to fill the packet |
| -q | Do not show instruction execution |
| -R | Record the routing process |
| -s | Set packet size |
| -t | Set the survival value TTL Size |
| -v | Display the execution process of the instruction in detail |
Reference examples
Testing and linuxcool The connectivity of the website :
[[email protected] ~]# ping www.linuxcool.com
continuity ping4 Time :
[[email protected] ~]# ping -c 4 www.linuxcool.com
Set times to 4, The time interval is 3 second :
[[email protected] ~]# ping -c 4 -i 3 www.linuxcool.com
utilize ping Command to get the name of the specified web site IP Address :
[[email protected] ~]# ping -c 1 linuxcool.com | grep from | cut -d " " -f 4 220.181.57.216
边栏推荐
- Is the securities account of Qiantang education safe? Is it reliable?
- Semantic segmentation cvpr2020 unsupervised intra domain adaptation for semantic segmentation through self supervision
- Various errors and solutions encountered when deploying SAP ui5 application to ABAP server with SAP Fiori tools
- ThreadLocal
- Rhcsa day 4
- MySQL tuning --01--- optimization steps and system performance parameters
- Use of arrays tool class
- 钱堂教育的证券账户安全吗?靠谱吗?
- Trouble of setting table property to null
- Linus' speech recordings, which were lost in 1994, were made public
猜你喜欢

Click to send text messages without response is a common problem for many users in building the elegant grass Dragonfly Q system - solve the problem of clicking to send text messages without response

Deep learning non local neural networks

JMeter stress testing and agent recording
Technology Review: what is the evolution route of container technology? What imagination space is there in the future?

Soft exam information system project manager_ Information system security management - Senior Information System Project Manager of soft test 026

Folding mobile phones are expected to explode, or help Samsung compete with apple and Chinese mobile phones

Use of pytorch tensorboard

Trouble of setting table property to null
Go quiz: considerations for function naming return value from the go interview question (more than 80% of people answered wrong)

MySQL tuning -- 02 -- slow query log
随机推荐
JS implementation mouse can achieve the effect of left and right scrolling
05 virtual machine stack
Interview experience - list of questions
Invalid bound statement (not found)
Design of IM login server and message server
Multithreading and thread pool
Guava common collection tool classes
Wireless industrial Internet of things data monitoring terminal
Linus' speech recordings, which were lost in 1994, were made public
Leetcode topic [array] -36- effective Sudoku
No one reads the series. Source code analysis of copyonwritearraylist
Day22 send request and parameterization using JMeter
What is hybrid web containers for SAP ui5
Deep learning non local neural networks
【LeetCode】40. Combined summation II (2 strokes of wrong questions)
Oracle SQL statement operand: rounding, rounding, differentiation and formatting
RT thread i/o device model and layering
Jz-066- motion range of robot
Understanding of process, thread, task queue, event loop, macro task, micro task, execution stack and other concepts in JS
What is the use of the subprocess module