Voila, sous ipcop 1.4.0b3
ping -c x --> envoie x ping et sort :
root@linuxbox:~ # ping -n -q -c 1 -i 1 192.168.0.254
PING 192.168.0.254 (192.168.0.254): 56 data bytes
--- 192.168.0.254 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.384/0.384/0.384/nan ms
OK
Maintenant, si l'hote n'existe pas :
root@linuxbox:~ # ping -n -q -c 1 -i 1 192.168.0.253
PING 192.168.0.253 (192.168.0.253): 56 data bytes
64 bytes from 192.168.0.254: Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 b1a3 0 0000 40 01 cf52 192.168.0.254 192.168.0.254
64 bytes from 192.168.0.254: Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 b2a3 0 0000 40 01 ce52 192.168.0.254 192.168.0.254
64 bytes from 192.168.0.254: Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 b3a3 0 0000 40 01 cd52 192.168.0.254 192.168.0.254
64 bytes from 192.168.0.254: Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 b4a3 0 0000 40 01 cc52 192.168.0.254 192.168.0.254
64 bytes from 192.168.0.254: Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 b5a3 0 0000 40 01 cb52 192.168.0.254 192.168.0.254
64 bytes from 192.168.0.254: Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 b6a3 0 0000 40 01 ca52 192.168.0.254 192.168.0.254
64 bytes from 192.168.0.254: Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 b7a3 0 0000 40 01 c952 192.168.0.254 192.168.0.254
64 bytes from 192.168.0.254: Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 b8a3 0 0000 40 01 c852 192.168.0.254 192.168.0.254
64 bytes from 192.168.0.254: Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 b9a3 0 0000 40 01 c752 192.168.0.254 192.168.0.254
64 bytes from 192.168.0.254: Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 baa3 0 0000 40 01 c652 192.168.0.254 192.168.0.254
64 bytes from 192.168.0.254: Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 bba3 0 0000 40 01 c552 192.168.0.254 192.168.0.254
64 bytes from 192.168.0.254: Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 bca3 0 0000 40 01 c452 192.168.0.254 192.168.0.254
64 bytes from 192.168.0.254: Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 bda3 0 0000 40 01 c352 192.168.0.254 192.168.0.254
64 bytes from 192.168.0.254: Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 bea3 0 0000 40 01 c252 192.168.0.254 192.168.0.254
64 bytes from 192.168.0.254: Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 bfa3 0 0000 40 01 c152 192.168.0.254 192.168.0.254
64 bytes from 192.168.0.254: Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 c0a3 0 0000 40 01 c052 192.168.0.254 192.168.0.254
64 bytes from 192.168.0.254: Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 c1a3 0 0000 40 01 bf52 192.168.0.254 192.168.0.254
64 bytes from 192.168.0.254: Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 c2a3 0 0000 40 01 be52 192.168.0.254 192.168.0.254
64 bytes from 192.168.0.254: Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 c3a3 0 0000 40 01 bd52 192.168.0.254 192.168.0.254
64 bytes from 192.168.0.254: Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 c4a3 0 0000 40 01 bc52 192.168.0.254 192.168.0.254
64 bytes from 192.168.0.254: Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 c5a3 0 0000 40 01 bb52 192.168.0.254 192.168.0.254
--- 192.168.0.253 ping statistics ---
24 packets transmitted, 0 packets received, 100% packet loss
!!!! j'ai arreter avec CTRL-C, si non ca n'en fini plus !
C'est un BUG assez grave, car je ne peux plus tester si l'autre bout du VPN est ok ou non : plus de reconnexions automatique !
Comment on fait ?
Guillaume