Setting up multiple IP address inside virtualbox

Discussions related to using VirtualBox on Linux hosts.
Post Reply
agung
Posts: 1
Joined: 8. Aug 2016, 17:10

Setting up multiple IP address inside virtualbox

Post by agung »

Hello,

I am trying to setup multiple nodes (5 nodes) inside single VM.
What I am trying to do is that create 2 network adapter using NAT and host-only.
Inside host-only adapter I implement IP aliasing, something like this inside /etc/network/interfaces:

auto eth1:0
iface eth1:0 inet static
address 192.168.12.10
netmask 255.255.255.0
network 192.168.12.255
gateway 192.168.12.1
dns-nameservers 8.8.8.8 192.168.12.1

I create this until eth1:3.

After I done on this, I found that my eth0 is inactive and I could not connect to the internet
(because eth0 is the one who connect to the internet). I am curious, does this method is correct or not.

Any suggestion and comment is very appreciated.
Post Reply