title: VirtualBox two interfaces, NAT and Host Only Adapter, configuration not working
body: <p>I am running VirtualBox on Windows 7 and I wanted to make sure that my VM has two network interfaces. One is a <strong>NAT interface</strong> (eth0) to access the Internet, and the other is a <strong>host-only interface</strong> (eth1) to communicate with the host machine. Running command ifconfig on VM I got that the IP address of eth0 is 10.0.2.15 and IP address of eth1 is 192.168.56.101. I have changed /etc/network/interface file by adding the following lines:</p>
  
  <pre><code>auto eth1
      iface eth1 inet static
      address 192.168.56.101
      netmask 255.255.255.0
  </code></pre>
  
  <p>However, I cannot ping 192.168.56.101 or SSH 192.168.56.101 from my host (Windows 7) machine. I have tried DHCP instead of static (in interface file) but still no connection.</p>
  
  <p>Can someone provide configuration steps so I can have these two interfaces  working, i.e. to have Internet and to access VM from the host?</p>