Windows Host Linux Guests Internal Network

Discussions related to using VirtualBox on Windows hosts.
Post Reply
sweeny_here
Posts: 6
Joined: 15. Jun 2015, 00:12

Windows Host Linux Guests Internal Network

Post by sweeny_here »

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.
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Windows Host Linux Guests Internal Network

Post by noteirak »

What is the output of the following commands in the host (run it into the install directory of VirtualBox):

Code: Select all

vboxmanage list dhcpservers
vboxmanage list intnets
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply