LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-27-2011, 02:24 AM   #1
nhammoud
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


Dear,

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:

IP: 172.16.0.30
Netmask: 255.255.255.0
Gateway: 172.16.0.1
Domain: 172.16.0.2

The new virtual LAN, I want it to be: 172.20.0.xxx

Nabil
 
Old 01-27-2011, 03:49 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,987

Rep: Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:04 AM.

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