1、 命令格式:ping -c P -s L WORDping -c P WORDping -s L WORDping A.B.C.Dping WORDn 参数说明:命令参数说明ping -c P -s L WORD最大重试P个包的对域名WORD进行L字节长度ping操作。P为1-16的整数,L为1-65507的整数,WORD为域名。ping -c P WORD最大重试P个包的对域名WORD进行ping操作。P为1-16的整数,WORD为域名。ping -s L WORD对域名WORD进行L字节长度ping操作。ping A.B.C.D天清入侵防御系统直接对A.B.C.D进行ping操作。ping
2、 WORD天清入侵防御系统直接对域名WORD进行ping操作。n 配置实例:命令描述ping -c 4 -s 1024 =PING 211.100.62.134 (211.100.62.134) 1024(1052) bytes of data.- 211.100.62.134 ping statistics -4 packets transmitted, 0 received, 100% packet loss, time 3007ms=4次尝试,ping不通ping 192.168.0.20=PING 192.168.0.20 (192.168.0.20) 56(84) bytes of
3、data.- 192.168.0.20 ping statistics -6 packets transmitted, 0 received, 100% packet loss, time 5000ms=6次尝试,ping不通。ping -c 4 =PING 203.208.39.99 (203.208.39.99) 56(84) bytes of data.64 bytes from 203.208.39.99: icmp_seq=1 ttl=237 time=8.29 ms64 bytes from 203.208.39.99: icmp_seq=2 ttl=237 time=8.12
4、ms64 bytes from 203.208.39.99: icmp_seq=3 ttl=237 time=9.11 ms64 bytes from 203.208.39.99: icmp_seq=4 ttl=237 time=8.56 ms- 203.208.39.99 ping statistics -4 packets transmitted, 4 received, 0% packet loss, time 3029msrtt min/avg/max/mdev = 8.121/8.524/9.115/0.381 ms=4次尝试,ping谷歌首页,全部收到回复。ping成功。ping
5、-s 88 =PING 61.135.179.190 (61.135.179.190) 88(116) bytes of data.96 bytes from 61.135.179.190: icmp_seq=1 ttl=45 time=36.1 ms96 bytes from 61.135.179.190: icmp_seq=2 ttl=45 time=34.5 ms96 bytes from 61.135.179.190: icmp_seq=3 ttl=45 time=34.4 ms96 bytes from 61.135.179.190: icmp_seq=4 ttl=45 time=3
6、3.8 ms- 61.135.179.190 ping statistics -4 packets transmitted, 4 received, 0% packet loss, time 2999msrtt min/avg/max/mdev = 33.891/34.745/36.119/0.829 ms=以88字节长度的包ping搜狐首页,四次尝试全部收到回复。ping =PING 61.135.133.89 (61.135.133.89) 56(84) bytes of data.- 61.135.133.89 ping statistics -6 packets transmitted
7、, 0 received, 100% packet loss, time 5005ms=直接ping搜狐首页,无法收到回复,ping不通。注意:如果ping命令不带有-c参数或-s参数,那么最大尝试次数P将采用默认值4,包长度将采用默认值56。2.13 restore命令n 功能概述:n restore命令可以恢复天清入侵防御系统的出厂设置。n 命令格式:restore default注意:使用该命令之前,请做好相应的备份,一旦该命令执行,如下配置信息将会被恢复出厂设置的默认状态:1. 访问控制及用户信息;2. 路由以及网口协商模式;3. 实时显示设置;4. syslog服务器配置;5. 自动升级配置。2.