two virtualbox (internal-network) setup

David Fletcher dave at thefletchers.net
Thu Mar 12 20:51:46 UTC 2015


On Thu, 2015-03-12 at 23:06 +0300, Amer wrote:
> Hello,
> 
> 
> Thanks for your messages
> This is what I did
> In each vm I gave it the following ip 
> 192.168.1.1 vm1 eth2
> 192.168.1.2 vm2 eth2
> However, my host machine is also Ubuntu and its IP is 10.68.21.7
> 
> 
> This configuration doesn't work with me and its damage my NIC card :(

Unlikely, I would have thought.


> 
> 
> However, do you want me to give the VMs an IP in the same subnet of my
> physical machine.

YES! Otherwise (my understanding as a non expert) your router will
"route" any packets out and on to the Internet because they are not
destined for your private LAN.

What you must also do, is log in to the administration pages of your
router and review, and adjust, its settings. Start yourself a network
map document, so that you always know exactly which device has which
address, and add a record to it each time you add a new device. That
includes your virtual machines. In my limited experience the default
setting of most routers is to assign most of the address range to DHCP.
You might be wise to restrict that range to, say, 20 addresses or
whatever you actually need, starting and ending wherever you want. The
choice is yours.

Whatever you do, don't let your network have address clashes. That's
what your network map document is for. Then, you can really have some
fun. For instance a couple of days ago I bought through ebay an Ethernet
shield for an Arduino, and after about an hour I have this going:-

http://flightmaker.hopto.org:50000/

I have other plans for it of course, this is just an initial play to get
it to do something meaningful.

Dave







More information about the ubuntu-users mailing list