1

У меня возникла проблема, когда я могу ping , но я не могу использовать wget или curl . Это вывод этих команд.

Я скопировал рабочую виртуальную машину Vagrant с одного ПК с Win7 на другой, и это проблема, с которой я столкнулся. Может ли это быть проблемой с настройкой сети в VirtualBox?

[vagrant@localhost ~]# ping crmpicco.co.uk
PING crmpicco.co.uk (83.125.22.146) 56(84) bytes of data.
64 bytes from 83.125.22.146: icmp_seq=1 ttl=53 time=63.1 ms
64 bytes from 83.125.22.146: icmp_seq=2 ttl=53 time=64.6 ms
64 bytes from 83.125.22.146: icmp_seq=3 ttl=53 time=62.4 ms
^C
--- crmpicco.co.uk ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 62.460/63.427/64.686/0.954 ms
[vagrant@localhost ~]# wget http://www.crmpicco.co.uk
--2015-09-10 16:37:17--  http://www.crmpicco.co.uk/
Resolving www.crmpicco.co.uk (www.crmpicco.co.uk)... 83.125.22.146, 83.125.22.146
Connecting to www.crmpicco.co.uk (www.crmpicco.co.uk)|83.125.22.146|:80... failed: Network is unreachable.
Connecting to www.crmpicco.co.uk (www.crmpicco.co.uk)|83.125.22.146|:80... failed: Network is unreachable.

Это моя текущая настройка сети:

[vagrant@localhost ~]# ifconfig
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.2.15  netmask 255.255.255.0  broadcast 10.0.2.255
        inet6 fe80::a00:27ff:feea:9bb5  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:ea:9b:b5  txqueuelen 1000  (Ethernet)
        RX packets 29  bytes 2813 (2.7 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 105  bytes 13412 (13.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp0s8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.0.200  netmask 255.255.255.0  broadcast 10.0.0.255
        inet6 fe80::a00:27ff:fe1d:5e16  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:1d:5e:16  txqueuelen 1000  (Ethernet)
        RX packets 389  bytes 40772 (39.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 228  bytes 36354 (35.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 497  bytes 56861 (55.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 497  bytes 56861 (55.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

0