Ping a virtualbox machine from the host machine shows "Destination Host Unreachable"
<p>I don't know why but I can't ping a virtual machine node from the host. I have created a network:<br>
<em>vboxnet1</em>: </p>

<pre><code>IPv4 Address: 192.168.57.0
IPv4 Network Mask: 255.255.255.0
IPv6 Address: fe80:0000:0000:0000:0800:27ff:fe00:0000
IPv6 Network Mask Length: 64
</code></pre>

<p>Then I have created a virtual machine with 2 interfaces:<br>
adapter 1: NAT<br>
adapter 2: Host-only Adapter. Name: vboxnet1<br>
<br>
Check "Cable Connected"
<br><br>
Then I have Installed CentOS 7 on VM.<br>
<br>
edit: <em>/etc/sysconfig/network-scripts/ifcfg-eth0</em>:</p>

<pre><code>DEVICE=eth0
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
ONBOOT=yes
</code></pre>

<p>edit: <em>/etc/sysconfig/network-scripts/ifcfg-eth1</em>:</p>

<pre><code>TYPE=Ethernet
IPADDR=192.168.57.111
NETMASK=255.255.255.0
BOOTPROTO=static
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=eth1
DEVICE=eth1
ONBOOT=yes
</code></pre>

<p>"ip addr" on VM shows that eth0 is 10.0.2.15/24 and eth1 is 192.168.57.111/24
<br><br>
"route -n" on host machine shows:</p>

<pre><code>0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 wlan0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
192.168.56.0 0.0.0.0 255.255.255.0 U 0 0 0 vboxnet0
192.168.57.0. 0.0.0.0 255.255.255.0 U 0 0 0 vboxnet1
</code></pre>

<p>Virtual machines can ping each other. Also, Virtual machines can ping the host machine but the host machine can't ping virtual machines.
<br><br>
Can somebody explain why it isn't working?</p>