Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-23-2013, 08:53 PM   #1
Registered: Mar 2013
Posts: 555

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?

Old 12-23-2013, 09:14 PM   #2
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,645
Blog Entries: 17

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

Original Poster
Rep: Reputation: Disabled
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, 12:21 AM   #4
Senior Member
Registered: Mar 2012
Posts: 1,490

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


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

All times are GMT -5. The time now is 09:51 AM.

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