当前位置:网站首页>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
边栏推荐
- Synchonized introduction
- D compile time reflection
- Go quiz: considerations for function naming return value from the go interview question (more than 80% of people answered wrong)
- Wireless industrial Internet of things data monitoring terminal
- Day19 (variable parameter, enhanced for loop traversal, generic wildcard <? >, TreeSet, linkedhashset, nested traversal of sets, set set, static import,)
- Laravel8 fill data
- C simple operation mongodb
- HashSet implementation class
- Day22(File,DiGui,FileOutputStream)
- Farewell to Lombok in 996
猜你喜欢

RT thread i/o device model and layering

Design of IM login server and message server

Soft exam information system project manager_ Management Science (Operations Research) 2--- senior information system project manager of soft test 034
[golang] leetcode intermediate - Search rotation sort array & search two-dimensional matrix II
Tutorial 35 of SAP ui5 application development - how to deploy locally developed SAP ui5 applications to ABAP server for trial reading
Go language map sorting (key/value sorting)
Summary of 6 common methods of visual deep learning model architecture
Vscode voice notes to enrich information (medium)

Solve some prompt codes that pychar cannot recognize selenium
![[day40 literature extensive reading] space and time in the child's mind: metallic or atomic](/img/98/10b3e63c9609990c51b619d9ca6179.jpg)
[day40 literature extensive reading] space and time in the child's mind: metallic or atomic
随机推荐
Lesson 8: FTP server setup and loading
JMeter stress testing and agent recording
Interface learning
Use of arrays tool class
CST8227
How the sap ui5 framework performs single step debugging of batch requests
Day19 (variable parameter, enhanced for loop traversal, generic wildcard <? >, TreeSet, linkedhashset, nested traversal of sets, set set, static import,)
Soft exam information system project manager_ Management Science (Operations Research) 2--- senior information system project manager of soft test 034
Kubevela v1.2 release: the graphical operation console velaux you want is finally here!
Use of pytorch tensorboard
JS to realize the encapsulation of the function of obtaining the mouse click position
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
Technology inventory: past, present and future of Message Oriented Middleware
Do you know what a three-tier architecture is?
Use of collection
By inserting a section break, the word header, footer, and page number can start from any page
Technology Review: Interpretation of cloud native architecture trend in 2022
Deep learning non local neural networks
Technology inventory: Technology Evolution and Future Trend Outlook of cloud native Middleware
ERDAS 9.2 installation tutorial