NAT and Internal Network setup not allowing interconnection between VMs
Posted: 1. Mar 2017, 15:04
I'm trying to setup a cluster of Ubuntu 16.04 server VMs on a 16.04 desktop host.
I would like to be able to ssh into the VMs individually and also support inter VM networking.
Ideally using a dual networking interface so that VM->VM traffic is private.
My configuration is as follows:
I've created a DHCP server:
Currently, the NAT part of the networking is working as expected, I can ssh into the machines.
However, all of the VMs ifconfig is exactly the same; no real IP is issued:
The VMs are clones of each other so I've regenerated MAC addresses.
I also tried removing some of the network settings files and rebooting which didn't change anything:
What am I doing wrong in getting this configured?
Any help is much appreciated!
I would like to be able to ssh into the VMs individually and also support inter VM networking.
Ideally using a dual networking interface so that VM->VM traffic is private.
My configuration is as follows:
Code: Select all
NAT with port forwarding rules to allow host->vm ssh
Internal Networking using default intnetCode: Select all
vboxmanage dhcpserver add --netname intnet --ip 10.10.10.1 --netmask 255.255.255.0 --lowerip 10.10.10.2 --upperip 10.10.10.12 --enableHowever, all of the VMs ifconfig is exactly the same; no real IP is issued:
Code: Select all
enp0s3 Link encap:Ethernet HWaddr 08:00:27:68:71:2a
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:59 errors:0 dropped:0 overruns:0 frame:0
TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7081 (7.0 KB) TX bytes:7053 (7.0 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:160 errors:0 dropped:0 overruns:0 frame:0
TX packets:160 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:11840 (11.8 KB) TX bytes:11840 (11.8 KB)I also tried removing some of the network settings files and rebooting which didn't change anything:
Code: Select all
sudo rm -rf /etc/udev/rules.d/70-persistent-net.rulesAny help is much appreciated!