Page 1 of 1

virtualbox as irtualhost data loss on ping 8.8.8.8

Posted: 2018/02/02 14:33:01
by neyroman
here is similar question to mine "Virtualbox: packet loss and cannot ping google.com. Please help" but without answer so i decided to create new topic.
I set centOS7 on virtualbox 5.2.6. vm network adapter is bridged adapter.
/etc/sysconfig/network-scripts/ifcfg-enp0s3:
TYPE=Ethernet
BOOTPROTO=static
IPADDR=192.168.1.2
GATEWAY=192.168.1.1
NETMASK=255.255.255.0
DEFROUTE=yes
NM_CONTROLLED=yes
IPV6INIT=yes
NAME=enp0s3
UUID=7edb3ae7-594c-4a2a-9ad7-85b72eb61830
DEVICE=enp0s3
ONBOOT=yes
HWADDR=08:00:27:f3:7c:1a
DNS1=127.0.0.1
DNS2=8.8.8.8
DNS3=8.8.4.4

ping 8.8.8.8 return
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 192.168.1.2 icmp_seq=1 Destination Host Unreachable
From 192.168.1.2 icmp_seq=2 Destination Host Unreachable
From 192.168.1.2 icmp_seq=3 Destination Host Unreachable

The question is how to revise network configuration files to set internet connection form guest ( on virtualbox ) and ssh to guest?

Thank you in advance

Re: virtualbox as irtualhost data loss on ping 8.8.8.8

Posted: 2018/02/02 16:16:43
by tunk
Can you ping the gateway?
Most of my VMs are setup with NAT (virtualbox) and dhcp (VM).