Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-27-2011, 02:24 AM   #1
LQ Newbie
Registered: Jan 2011
Posts: 8

Rep: Reputation: 0
Red face Is it possible to create a virtual LAN on my machine using virtual box or MS virtula


I am writing the below question not focusing on how to build a virtual LAN, rather than I need to create a machine (Ubunto server) operating as a ROUTER.

So, my target is to build a ROUTER and to experience the step by step process of creating a Machine serving as a ROUTER.

Firstly, I installed two Linux OS machines(ubunto server and desktop) on virtual box.

But I had some problems and I want to solve it, namely:

1- Is it possible to accomplish such approach by the above solution or No?

2- What type of network adapter I should choose for both machines? Is it NAT, Bridge or ???

3- How to connect to my host? Here I do need the ROUTER machine(server) route to my machine to access the internet.

Note: My local machine using windows seven under The following IP:


The new virtual LAN, I want it to be:

Old 01-27-2011, 03:49 PM   #2
Registered: Mar 2008
Posts: 19,643

Rep: Reputation: 3062Reputation: 3062Reputation: 3062Reputation: 3062Reputation: 3062Reputation: 3062Reputation: 3062Reputation: 3062Reputation: 3062Reputation: 3062Reputation: 3062
Is is possible to install two machines on virtualbox? Yes, however you may need to understand one thing. Local, nat and bridged are the basic ways that VM's can use virtual networking. Also be sure you understand how VM's support dhcp by use of a virtual router in the vm.

You may be using a term wrong. Virtual lan is not exactly the same as virtual networking in a vm.

Which way? I'd tend to use local for tests. Why even connect to host? You can run all diags and tests between almost any number of clients.

If you want to use the host then it may be better to select bridged if you have a private IP lan in your hosts system. Any time you use nat ( and I almost always use nat) the VM's may offer some tricky thinking as they would not be on the same subnet as your lan.

I feel sure that anyone here may offer as good or better answers to how they would do it. Consider the many web pages on this topic for reference as well as the VM's documentation.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to auto mount 'shared folder' iin Suse 11.2 virtual machine using Virtual Box marvinudy Linux - Virtualization and Cloud 1 02-03-2010 02:29 PM
Create a new virtual machine in Vista smudge|lala General 7 03-12-2009 08:12 AM
Running virtual pc files in a virtual machine in linux ... preferably virtual box biharibong Linux - Software 4 01-21-2009 01:04 PM
How can I create a virtual machine from a system already in production? ElectroLinux Linux - Newbie 2 11-08-2006 03:39 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration