LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-23-2013, 09:53 PM   #1
Altiris
Member
 
Registered: Mar 2013
Posts: 554

Rep: Reputation: Disabled
question about virtual machines


I would to like to know if you guys could answer this question to me. I want to know if I can have two machines (one real and another a virtual machine being hosted on the real machine) with the same external IP address without conflicting.

To keep things simple, machine1 = Real Server and machine2 = Virtual Windows Server. I use machine1 to host my email, ftp, web server, and dns. I like to play a game called cubeworld which only works on windows computers. So, I made a virtual machine that ran windows and called it machine2. machine1 has already some ports opened on the router to the external IP 10 (10 is just an example). I want to know if I can open some ports on machine2 while routing to the same external IP, 10 that machine1 has ports routed to. Is this possible? Will a conflict occur? Is there anyway to do this via the DNS or something?

Thanks.
 
Old 12-23-2013, 10:14 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,339
Blog Entries: 12

Rep: Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730
So far as I know, the same address cannot exist on two machines in the same subnet.
 
Old 12-23-2013, 10:57 PM   #3
Altiris
Member
 
Registered: Mar 2013
Posts: 554

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
So far as I know, the same address cannot exist on two machines in the same subnet.
Exactly what I was thinking yet there are a few friends of mine saying otherwise, not exactly the opposite but they have machines with the same external IP which I believe is possible. So I would basically require another external IP port in order to do what I want yes?
 
Old 12-24-2013, 01:21 AM   #4
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,380

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
You can have your virtual machine NATed via the host, and then you wouldn't need to alter the port-forwards on the router, but you would need to set up another set of port-forwards on your host to translate the traffic to your VM.

Much easier really to bridge the VM so it gets it's own IP on your LAN and point the forwards for the game to it from your router.
 
  


Reply

Tags
bridge, dns, kvm, network


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
Virtual Machines? daer119 Linux - Newbie 2 10-21-2012 11:27 PM
Virtual Machines are not appearing in Virtual Manager after reboot the RHEL5.5 Serve Shanker.K Linux - Newbie 7 04-11-2012 07:20 AM
Question Shell script to shutdown virtual machines. copy, and than start VM simmouk87 Linux - General 3 03-20-2011 04:51 PM
Virtual Machines Ramurd Slackware 17 09-10-2009 11:12 PM
Connect two virtual linux machines via virtual USB or serial WebBeing Linux - General 4 07-22-2008 08:26 AM


All times are GMT -5. The time now is 10:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration