Windows Host Linux Guests Internal Network
Posted: 18. Jun 2015, 13:01
I've configured a Internal DHCP network on a Windows 7 host using -
C:\Program Files\Oracle\VirtualBox\vboxmanage" dhcpserver a
dd --netname neta --ip 192.168.59.1 --netmask 255.255.255.0 --lowerip 192.168.59
.90 --upperip 192.168.56.190 --enable
Then on each of the Linux guests they are configured as -
Guest1 - adaptper1 NAT,virtio-net,allow-all, cable connected and enabled.
Guest1 - adaptper2 Internal Network,neta,virtio-net,allow-all, cable connected and enabled.
Interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet dhcp
qwerty@ubt-dsrv-14-01:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.2.2 0.0.0.0 UG 0 0 0 eth0
10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
Guest2 - adaptper1 Bridged,Intel 82579LM,deny, cable connected and enabled.
Guest2 - adaptper2 Internal Network,neta,virtio-net,allow-all, cable connected and enabled.
Interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address xxx.xx.16.103
netmask 255.255.248.0
network xxx.xx.16.0
gateway xxx.xx.16.254
search airmile.co.uK
nameservers xxx.xx.30.146 xxx.xx.10.94
qwerty@xbt-dtk-14-01:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 XXX.XX.16.254 0.0.0.0 UG 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
XXX.XX.16.0 0.0.0.0 255.255.248.0 U 0 0 0 eth1
Both guests can access the Internet.
Neither guest is picking up the DHCP server running on the host - any advice would be much appreciated.
C:\Program Files\Oracle\VirtualBox\vboxmanage" dhcpserver a
dd --netname neta --ip 192.168.59.1 --netmask 255.255.255.0 --lowerip 192.168.59
.90 --upperip 192.168.56.190 --enable
Then on each of the Linux guests they are configured as -
Guest1 - adaptper1 NAT,virtio-net,allow-all, cable connected and enabled.
Guest1 - adaptper2 Internal Network,neta,virtio-net,allow-all, cable connected and enabled.
Interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet dhcp
qwerty@ubt-dsrv-14-01:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.2.2 0.0.0.0 UG 0 0 0 eth0
10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
Guest2 - adaptper1 Bridged,Intel 82579LM,deny, cable connected and enabled.
Guest2 - adaptper2 Internal Network,neta,virtio-net,allow-all, cable connected and enabled.
Interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address xxx.xx.16.103
netmask 255.255.248.0
network xxx.xx.16.0
gateway xxx.xx.16.254
search airmile.co.uK
nameservers xxx.xx.30.146 xxx.xx.10.94
qwerty@xbt-dtk-14-01:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 XXX.XX.16.254 0.0.0.0 UG 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
XXX.XX.16.0 0.0.0.0 255.255.248.0 U 0 0 0 eth1
Both guests can access the Internet.
Neither guest is picking up the DHCP server running on the host - any advice would be much appreciated.