Skip to content

Instantly share code, notes, and snippets.

@noam87
Created June 8, 2014 00:54
Show Gist options
  • Save noam87/c3a8e789eb6876011c70 to your computer and use it in GitHub Desktop.
Save noam87/c3a8e789eb6876011c70 to your computer and use it in GitHub Desktop.
ubuntu virtualbox vm

eth0 : bridged

eth1 : host only

configure /etc/network/interfaces like so:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto eth1
iface eth1 inet static
  address 10.42.0.6
  netmask 255.255.255.0

Back to the cmd-line execute:

ifup eth1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment