title: How to bind external ip to Vagrant VM?
body: <p>I have external IP address. I added it to my <code>eth0</code> interface of host machine. I can successfully ping it. I want to run VM using Vagrant and set my external IP to it (I want to call my VM just like a simple VPS using this external IP address). I have next line in Vagrantfile for this:</p>
  
  <pre><code>node.vm.network "public_network", ip: myExternalIP
  </code></pre>
  
  <p>After my machine start I see <code>eth2</code> interface inside my VM with my external IP as <code>inet addr</code>. But I can't get access to any open port on my vm using this IP address. Maybe I don't understand idea of <code>public_network</code> in Vagrant. How to bind external ip to my Vagrant VM? </p>
  
  <p>Update: As I understood vagrant set default gateway of VM to interface under NAT. Due to NAT packages cant be sent from VM to external world through bridged interface.</p>