- 论坛徽章:
- 32
|
在我这里无论是否ping通都是7行,怎么和你的不一样?- [root@localhost ~]# ping -c 2 192.168.4.1
- PING 192.168.4.1 (192.168.4.1) 56(84) bytes of data.
- 64 bytes from 192.168.4.1: icmp_seq=1 ttl=64 time=1.21 ms
- 64 bytes from 192.168.4.1: icmp_seq=2 ttl=64 time=4.45 ms
- --- 192.168.4.1 ping statistics ---
- 2 packets transmitted, 2 received, 0% packet loss, time 1006ms
- rtt min/avg/max/mdev = 1.216/2.835/4.455/1.620 ms
- [root@localhost ~]# ping -c 2 192.168.4.2
- PING 192.168.4.2 (192.168.4.2) 56(84) bytes of data.
- From 192.168.4.134 icmp_seq=1 Destination Host Unreachable
- From 192.168.4.134 icmp_seq=2 Destination Host Unreachable
- --- 192.168.4.2 ping statistics ---
- 2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 3003ms
- pipe 2
- [root@localhost ~]# ping -c 2 192.168.4.1 | wc -l
- 7
- [root@localhost ~]# ping -c 2 192.168.4.2 | wc -l
- 7
- [root@localhost ~]#
复制代码 |
|