Voici les différents résultats :
- ping MV -> passerelle vboxnet0 :
root@debian1:~# ping 192.168.2.254
PING 192.168.2.254 (192.168.2.254) 56(84) bytes of data.
64 bytes from 192.168.2.254: icmp_req=1 ttl=64 time=0.079 ms
64 bytes from 192.168.2.254: icmp_req=2 ttl=64 time=0.123 ms
64 bytes from 192.168.2.254: icmp_req=3 ttl=64 time=0.122 ms
64 bytes from 192.168.2.254: icmp_req=4 ttl=64 time=0.116 ms
64 bytes from 192.168.2.254: icmp_req=5 ttl=64 time=0.117 ms
^C
--- 192.168.2.254 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3999ms
rtt min/avg/max/mdev = 0.079/0.111/0.123/0.018 ms
- ssh MV -> passerelle vboxnet0 : (+ ping vers l’extérieur)
root@debian1:~# ssh 192.168.2.254
root@192.168.2.254's password:
Last login Mon Mar 30 11:54:57 2015 from 192.168.2.1
root@fedora1:~#
root@fedora1:~# ping www.yahoo.fr
PING src.g03.yahoodns.net (77.238.184.150) 56(84) bytes of data.
64 bytes from dailyquiz.yahoo.net (77.238.184.150): icmp_seq=1 ttl=53 time=56.4 ms
64 bytes from dailyquiz.yahoo.net (77.238.184.150): icmp_seq=2 ttl=53 time=62.1 ms
64 bytes from dailyquiz.yahoo.net (77.238.184.150): icmp_seq=3 ttl=53 time=58.8 ms
^C
--- src.g03.yahoodns.net ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 56.436/59.156/62.193/2.369 ms
J’atteris bien sur mon host. (et normal, j’arrive à surfer.)
Sinon, quelques autres tests :
root@debian1:~# ping 192.168.1.2
PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.
64 bytes from 192.168.1.2: icmp_req=1 ttl=64 time=0.098 ms
64 bytes from 192.168.1.2: icmp_req=2 ttl=64 time=0.143 ms
64 bytes from 192.168.1.2: icmp_req=3 ttl=64 time=0.130 ms
64 bytes from 192.168.1.2: icmp_req=4 ttl=64 time=0.114 ms
64 bytes from 192.168.1.2: icmp_req=5 ttl=64 time=0.116 ms
^C
--- 192.168.1.2 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3996ms
rtt min/avg/max/mdev = 0.098/0.120/0.143/0.016 ms
- ping MV -> default gateway host :
root@debian1:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
^C
--- 192.168.1.1 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 3999ms
Là, j’ai du mal à comprendre pourquoi ça ne fonctionne pas : j’arrive à pinguer le host (192.168.1.2) mais pas sa default gw (192.168.1.1) située sur le même réseau !
Et donc forcément :root@debian1:~# ping www.yahoo.fr
ping: unknown host www.yahoo.fr
avec :[code]root@debian1:~# cat /etc/resolv.conf
carte réseau virtuelle vboxnet0 (VirtualBox)
nameserver 192.168.2.254
default gw host
#nameserver 192.168.1.1[/code]
J’ai essayé en décommentant la dernière ligne (et aussi en la mettant en 1ère position) mais ça ne résout pas le pb.
Par contre ça ralentit considérablement mon réseau.