Overclock.net › Forums › Specialty Builds › Servers › is it possible to make Hyper-V guest share the same IP with Host?
New Posts  All Forums:Forum Nav:

is it possible to make Hyper-V guest share the same IP with Host?

post #1 of 13
Thread Starter 
is it possible to make Hyper-V guest share the same IP with Host or make host pass/duplicate it's request for guests?

I have my server setup with a dynamic IP and domain name as well as having ports forwarded for it it would be nice if my VM guest could have those benefits too.
Edited by cdoublejj - 2/28/14 at 8:19pm
Core 2 Haf
(16 items)
 
  
CPUMotherboardGraphicsRAM
C2Q Q9550 ASUS P5E3 Deluxe Wifi-AP GTX 480 Kingston HyperX DDR3 KHX1600C9D3K2/8G 
RAMHard DriveCoolingOS
PNY 1333 55gb, 320Gb, 500GB, 1TB Hyper 212 EVO Win 7 Ultimate 64bit 
OSOSPowerCase
Lubuntu 13.04 x64 OS X 10.8.5 TX750 Haf 912 
  hide details  
Reply
Core 2 Haf
(16 items)
 
  
CPUMotherboardGraphicsRAM
C2Q Q9550 ASUS P5E3 Deluxe Wifi-AP GTX 480 Kingston HyperX DDR3 KHX1600C9D3K2/8G 
RAMHard DriveCoolingOS
PNY 1333 55gb, 320Gb, 500GB, 1TB Hyper 212 EVO Win 7 Ultimate 64bit 
OSOSPowerCase
Lubuntu 13.04 x64 OS X 10.8.5 TX750 Haf 912 
  hide details  
Reply
post #2 of 13
Any reason you're explicitly avoiding a bridged interface?
Waiting on X399
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II B57 @ X4 3.9 Gigabyte 790FXTA-UD5 Sapphire Radeon 290 8 GB G.Skill 2133 
Hard DriveCoolingOSKeyboard
250 GB 840 EVO Noctua NH-D14 Windows 10 Logitech K350 
PowerCaseMouseMouse Pad
Seasonic x750 Corsair 600T Logitech G100s Razer Goliathus Speed 
Audio
Plantronics Gamecom 788 
  hide details  
Reply
Waiting on X399
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II B57 @ X4 3.9 Gigabyte 790FXTA-UD5 Sapphire Radeon 290 8 GB G.Skill 2133 
Hard DriveCoolingOSKeyboard
250 GB 840 EVO Noctua NH-D14 Windows 10 Logitech K350 
PowerCaseMouseMouse Pad
Seasonic x750 Corsair 600T Logitech G100s Razer Goliathus Speed 
Audio
Plantronics Gamecom 788 
  hide details  
Reply
post #3 of 13
Quote:
Originally Posted by cdoublejj View Post

is it possible to make Hyper-V guest share the same IP with Host or make host pass/duplicate it's request for guests?

I have my server setup with a dynamic IP and domain name as well as having ports forwarded for it it would be nice if my VM guest could have those benefits too.

why would you do this? and the answer is it will probably causes issues.
post #4 of 13
Thread Starter 
what's a bridged interface?

as of last night got to playing with the VM despite having a different IP on the network i think since it shares the same NIC as my host, my dynamic IP and domain still work for the VM ^_^ , at least for now.
Core 2 Haf
(16 items)
 
  
CPUMotherboardGraphicsRAM
C2Q Q9550 ASUS P5E3 Deluxe Wifi-AP GTX 480 Kingston HyperX DDR3 KHX1600C9D3K2/8G 
RAMHard DriveCoolingOS
PNY 1333 55gb, 320Gb, 500GB, 1TB Hyper 212 EVO Win 7 Ultimate 64bit 
OSOSPowerCase
Lubuntu 13.04 x64 OS X 10.8.5 TX750 Haf 912 
  hide details  
Reply
Core 2 Haf
(16 items)
 
  
CPUMotherboardGraphicsRAM
C2Q Q9550 ASUS P5E3 Deluxe Wifi-AP GTX 480 Kingston HyperX DDR3 KHX1600C9D3K2/8G 
RAMHard DriveCoolingOS
PNY 1333 55gb, 320Gb, 500GB, 1TB Hyper 212 EVO Win 7 Ultimate 64bit 
OSOSPowerCase
Lubuntu 13.04 x64 OS X 10.8.5 TX750 Haf 912 
  hide details  
Reply
post #5 of 13
Well I work with VMware not Hyper-V but look at it like this ...

Your host has a NIC and a corresponding MAC address. Your guest has a virtual NIC and a corresponding MAC address. Your switch has a table of MAC addresses and an ARP table mapping MAC addresses to IPs. How is the switch (virtual or physical) going to know which MAC address it should forward traffic to for that IP address? This is usually called an IP address conflict
Daedalic
(26 items)
 
Pegasus Server
(13 items)
 
My Girl's Box
(16 items)
 
  hide details  
Reply
Daedalic
(26 items)
 
Pegasus Server
(13 items)
 
My Girl's Box
(16 items)
 
  hide details  
Reply
post #6 of 13
Thread Starter 
Well what does a hub do? i just send the packets every where it it dumb hardware. it does not what PC is where what request cam form where it just send the packets to every port. the computers A gets the packet the Computer B requested at the same time Computer B gets however Computer B doesn't do any thing with it.

I might Host and VM would get a minecraft packet request but, since only host has an MC server Host is the only 1 that does any thing with it. Guest just ignores it, host and VM get a request for Feed The Beast but, since VM is the only one with a Feed the Beast Server, VM is the only one that does any thing with packet and Host ignores the packet.

As it is my router won't let me open up the same ports for different Ip addressed to i have to open different port ranger for VM and Host to run games game servers. Since all the traffic is coming from the Same physical NIC, guest gets to piggy back off the dynamic IP linked to host. That may not be the correct or entirely correct reasoning why why dynamic service works for guest if it indeed has virtual NIC.


EDIT: Nope i think it's because the both use the same modem and that's the IP my dynamic IP service sees. ^_^
Edited by cdoublejj - 3/1/14 at 12:44pm
Core 2 Haf
(16 items)
 
  
CPUMotherboardGraphicsRAM
C2Q Q9550 ASUS P5E3 Deluxe Wifi-AP GTX 480 Kingston HyperX DDR3 KHX1600C9D3K2/8G 
RAMHard DriveCoolingOS
PNY 1333 55gb, 320Gb, 500GB, 1TB Hyper 212 EVO Win 7 Ultimate 64bit 
OSOSPowerCase
Lubuntu 13.04 x64 OS X 10.8.5 TX750 Haf 912 
  hide details  
Reply
Core 2 Haf
(16 items)
 
  
CPUMotherboardGraphicsRAM
C2Q Q9550 ASUS P5E3 Deluxe Wifi-AP GTX 480 Kingston HyperX DDR3 KHX1600C9D3K2/8G 
RAMHard DriveCoolingOS
PNY 1333 55gb, 320Gb, 500GB, 1TB Hyper 212 EVO Win 7 Ultimate 64bit 
OSOSPowerCase
Lubuntu 13.04 x64 OS X 10.8.5 TX750 Haf 912 
  hide details  
Reply
post #7 of 13
Quote:
Originally Posted by cdoublejj View Post

Well what does a hub do? i just send the packets every where it it dumb hardware. it does not what PC is where what request cam form where it just send the packets to every port. the computers A gets the packet the Computer B requested at the same time Computer B gets however Computer B doesn't do any thing with it.

I might Host and VM would get a minecraft packet request but, since only host has an MC server Host is the only 1 that does any thing with it. Guest just ignores it, host and VM get a request for Feed The Beast but, since VM is the only one with a Feed the Beast Server, VM is the only one that does any thing with packet and Host ignores the packet.

As it is my router won't let me open up the same ports for different Ip addressed to i have to open different port ranger for VM and Host to run games game servers. Since all the traffic is coming from the Same physical NIC, guest gets to piggy back off the dynamic IP linked to host. That may not be the correct or entirely correct reasoning why why dynamic service works for guest if it indeed has virtual NIC.


EDIT: Nope i think it's because the both use the same modem and that's the IP my dynamic IP service sees. ^_^

A hub does not do what you are seeking. A hub is the exact same as a switch, except packets are broadcast instead of unicast, but only one item (the destination) responds. Hubs are beyond bad, period. A good switch can do port mirroring, but that's usually for something like IDS.

I seriously don't understand why you are wanting to do this though. Hyper-V creates a virtual network and virtual NICs live on this network, and basically, the physical NIC tied to this virtual network is the gateway port out of the that virtual network. Once you tie a NIC to a virtual NIC in Hyper-V, you would treat it just like a separate computer since it emulates that NIC with it's own MAC address. If you have two services running on your network, one on one server and one on the other, you need to configure these services to use different ports. This has nothing to do with virtualization and is just how things are meant to be.

Regardless, you should not be running anything on the physical server if it's running the Hyper-V role. It should ONLY be your hypervisor and nothing else.

No router will let you open the same port for multiple destination IPs, as it would get confused (again, this is by design). Not to be rude, but whatever it is you're doing...you're doing it wrong and you need to redesign your system/solution/services.
post #8 of 13
Thread Starter 
indeed a hub does not do what i'm seeking. i should have clarified on that. i was stating the basic principles of what a hub does. basically it throws the same packet out of all the ports. all the machines but the one it's indeed for, ignore said packet.

I'm sorry if i confused you but, basically i got what i wanted with out having to change any thing due to the fact that everything uses the same modem/inet connection and they way dynamic IP works. Put short My VM gets the benefits of my dynamic IP service. The short of it is my friend(s) can have their private game servers on my physical server via VMs AND use my domain name. biggrin.gif The only catch is the router i'm hooked up to has to have seperate port forwarding entries for the VMs since they have their own MAC and IP. That's not a problem though and that's how they are designed to work.

as far as not using the host to do stuff, it's all for fun and stuff is backed up as often as possible.
Core 2 Haf
(16 items)
 
  
CPUMotherboardGraphicsRAM
C2Q Q9550 ASUS P5E3 Deluxe Wifi-AP GTX 480 Kingston HyperX DDR3 KHX1600C9D3K2/8G 
RAMHard DriveCoolingOS
PNY 1333 55gb, 320Gb, 500GB, 1TB Hyper 212 EVO Win 7 Ultimate 64bit 
OSOSPowerCase
Lubuntu 13.04 x64 OS X 10.8.5 TX750 Haf 912 
  hide details  
Reply
Core 2 Haf
(16 items)
 
  
CPUMotherboardGraphicsRAM
C2Q Q9550 ASUS P5E3 Deluxe Wifi-AP GTX 480 Kingston HyperX DDR3 KHX1600C9D3K2/8G 
RAMHard DriveCoolingOS
PNY 1333 55gb, 320Gb, 500GB, 1TB Hyper 212 EVO Win 7 Ultimate 64bit 
OSOSPowerCase
Lubuntu 13.04 x64 OS X 10.8.5 TX750 Haf 912 
  hide details  
Reply
post #9 of 13
Quote:
Originally Posted by cdoublejj View Post

The only catch is the router i'm hooked up to has to have seperate port forwarding entries for the VMs since they have their own MAC and IP. That's not a problem though and that's how they are designed to work.

as far as not using the host to do stuff, it's all for fun and stuff is backed up as often as possible.

If you were a real pro you'd just have a 1:1 NAT pool for them to use tongue.gif

Currently everything sits behind a Many:1 NAT solution giving your entire LAN the same external IP, so you could really just host anything anywhere in the LAN side of your network and it would still function as you intended.
Waiting on X399
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II B57 @ X4 3.9 Gigabyte 790FXTA-UD5 Sapphire Radeon 290 8 GB G.Skill 2133 
Hard DriveCoolingOSKeyboard
250 GB 840 EVO Noctua NH-D14 Windows 10 Logitech K350 
PowerCaseMouseMouse Pad
Seasonic x750 Corsair 600T Logitech G100s Razer Goliathus Speed 
Audio
Plantronics Gamecom 788 
  hide details  
Reply
Waiting on X399
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II B57 @ X4 3.9 Gigabyte 790FXTA-UD5 Sapphire Radeon 290 8 GB G.Skill 2133 
Hard DriveCoolingOSKeyboard
250 GB 840 EVO Noctua NH-D14 Windows 10 Logitech K350 
PowerCaseMouseMouse Pad
Seasonic x750 Corsair 600T Logitech G100s Razer Goliathus Speed 
Audio
Plantronics Gamecom 788 
  hide details  
Reply
post #10 of 13
Thread Starter 
Quote:
Originally Posted by beers View Post

If you were a real pro you'd just have a 1:1 NAT pool for them to use tongue.gif

Currently everything sits behind a Many:1 NAT solution giving your entire LAN the same external IP, so you could really just host anything anywhere in the LAN side of your network and it would still function as you intended.

RIGHT. i didn't understand that before i started this thread. also i am by no means a pro.
Core 2 Haf
(16 items)
 
  
CPUMotherboardGraphicsRAM
C2Q Q9550 ASUS P5E3 Deluxe Wifi-AP GTX 480 Kingston HyperX DDR3 KHX1600C9D3K2/8G 
RAMHard DriveCoolingOS
PNY 1333 55gb, 320Gb, 500GB, 1TB Hyper 212 EVO Win 7 Ultimate 64bit 
OSOSPowerCase
Lubuntu 13.04 x64 OS X 10.8.5 TX750 Haf 912 
  hide details  
Reply
Core 2 Haf
(16 items)
 
  
CPUMotherboardGraphicsRAM
C2Q Q9550 ASUS P5E3 Deluxe Wifi-AP GTX 480 Kingston HyperX DDR3 KHX1600C9D3K2/8G 
RAMHard DriveCoolingOS
PNY 1333 55gb, 320Gb, 500GB, 1TB Hyper 212 EVO Win 7 Ultimate 64bit 
OSOSPowerCase
Lubuntu 13.04 x64 OS X 10.8.5 TX750 Haf 912 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Servers
Overclock.net › Forums › Specialty Builds › Servers › is it possible to make Hyper-V guest share the same IP with Host?