[ale] virtualbox and network ip's

Brian Mathis brian.mathis+ale at betteradmin.com
Mon Mar 18 19:02:43 EDT 2013


Virtualbox networking is confusing.  When you create a NAT network, it
creates a different network for every VM, and they all get the same IP
address.  They are not on the same subnet so they can't see each
other, and VirtualBox knows how to route things internally to the
correct VM.  I have not setup port forwarding with vbox, but this is
likely the reason you don't see the IP address as part of the options.

Here is an explanation of each of the network types you can select:
    http://www.virtualbox.org/manual/ch06.html#networkingmodes

With vbox, I often setup multiple network adapters on the VMs -- a NAT
one to allow Internet access, and a host-only one so I can ssh into
the machine directly.  If it meets your needs, you might want to use a
bridged network instead which will give your VMs an IP on your real
home network.


VMware is different.  It creates a subnet that acts like a home
network and attaches all VMs to it.  Then VMware acts like a
router/NAT box.  In this setup, VMs on the NAT subnet can see each
other.  I think the VMware method makes more sense, though I still use
VirtualBox because it's open source (VMware Player is also free but
not open source).


❧ Brian Mathis


On Fri, Mar 15, 2013 at 12:07 PM, Narahari 'n' Savitha
<savithari at gmail.com> wrote:
> Hello:
>
> I run virtualbox on my windows 7 computer.
>
> I run two virtualbox machines at the same time(for two sep environments)
>
> Both are NAT.
>
> I do port forwarding for port 22 (from 28 on host to 22 on guest).
>
> The port forwarding software does not take ip but only the port.
>
> Pics are here.
> http://i.imgur.com/vyT51n9.jpg (first VM)
> http://i.imgur.com/Aqf4t6V.jpg (second VM)
>
> What I dont understand is why two vm's get the same ip from the Virtualbox
> DHCP server ?
>
> Kindly advise.
>
> -Narahari
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>



More information about the Ale mailing list