LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-17-2014, 01:05 PM   #1
krati_93
LQ Newbie
 
Registered: Jul 2014
Posts: 1

Rep: Reputation: Disabled
Unhappy how to configure linux virtual machine as router which communicate between 2 subnets


I have set 3 ubuntu12.0.4 virtual machines installed on vmplayer. Out of which I have made two of them as host of two different network. Host1 ip=192.168.1.13 gateway=192.168.1.11 and Host2 ip=192.168.2.14 and gateway=192.168.2.12 . Now I want the third virtual machine as router which can transfer packets from first virtual machine to second virtual machine has two adapters eth0 ip=192.168.1.11 and eth1 ip=192.168.2.12 . Host1 is connected to eth0 and Host2 is connected to eth1. How shall I configure the router so that the two hosts can communicate and NAT'ing could be performed?
 
Old 07-18-2014, 03:24 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,110

Rep: Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638
There are a number of ways. In your question I don't think the vm part is relevant. (could be though)

See this post for two ways that may work. http://serverfault.com/questions/611...-network-cards

It may or may not be what you are asking about.

Not sure there is a great reason to do what you want other than to test real setup or learn. In a normal vm setup there are other ways to get this to work.
 
  


Reply


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
[SOLVED] Routing between subnets in a Linux virtual machine Ninja2k Linux - Newbie 3 08-05-2013 02:13 PM
Virtual Linux machine act as a router abhinav4 Linux - Networking 1 12-17-2012 03:33 AM
router - win machine - vmware workstation - solusvm - virtual machine vmicovic Linux - Networking 2 05-01-2011 05:22 PM
How to configure the serial port of my virtual machine with host machine. akram Linux - Newbie 4 07-31-2009 10:39 PM
configure network to communicate between two Virtual Machines. vikas027 Solaris / OpenSolaris 11 10-11-2008 12:56 AM

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

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

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