Skip to content

Instantly share code, notes, and snippets.

@etissieres
Created March 30, 2015 08:39
Show Gist options
  • Save etissieres/63d53a6f596691bf2b68 to your computer and use it in GitHub Desktop.
Save etissieres/63d53a6f596691bf2b68 to your computer and use it in GitHub Desktop.
Virtualbox host only network config

Configuration réseau de la machine

Préférences virtualbox -> Réseau -> Réseau hôte uniquement -> ajouter un entrée si aucune existe Dans les options de l'interface créée, noter l'adresse IP. Les machines devront être configurer avec une IP dans le même sous-réseau.

Configuration de la machine

Configuration machine -> Réseau

  • Carte 1 : NAT
  • Carte 2 : Réseau privé hôte

Configuration dans la machine

Dans /etc/network/interfaces, la configuration doit ressembler à ça

# loopback network interface
auto lo
iface lo inet loopback

# NAT network interface
auto eth0
iface eth0 inet dhcp

# Host only network interface
auto eth1
iface eth1 inet static
address 192.168.56.10       # cf private host only iface settings in virtualbox
netmask 255.255.255.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment