2

I am running Hyper-V on a server with one physical NIC which has multiple public IP adresses assigned (a whole subnet).

Is there a way to tell Windows Server 2008, Hyper-V or "Routing and Remote Access" that I want to route ALL traffic to a certain public IP to my VM?

2
  • What IP Address scheme do you use for your Virtual Machines? Are they publicly accessible or are they NAT'd? Do you have only 1 NIC in the server or 1 NIC made available for Virtual Network?
    – LukeP
    Oct 24, 2011 at 16:23
  • They are publicly accessible. I have only one NIC for the whole server.
    – Heinrich
    Oct 24, 2011 at 16:43

2 Answers 2

1

You shouldn't assign other IP addresses to this adapter. Just the one that's used to connect to this host. If your router is configured correctly and forwards the traffic (in bridge mode) to the interface of the NIC in your server (all IP addresses), then assigning the correct external IP address to a virtual machine's vNIC (inside the VM) should do the trick.

So, remove all other IPs from the host NIC (they are useless there), leave only the one you want to use to connect to this host. Assign other IP addresses directly to Virtual Machines.

2
  • This does unfortunately not work for me because my data center provider allows only one MAC address for security reasons.
    – Heinrich
    Oct 24, 2011 at 19:03
  • 2
    Find anothe data center provide that understands what virtualization is. Point. Sorry if that sounds snippy, but there is a standard behavior since many years and virtualization is mainstream. I would consider a failure to support that to be basicalyl a breach of standard practices and reason to termainte contrat and invocie them my costs.
    – TomTom
    Dec 6, 2011 at 15:59
1

You can use RRAS for Windows Server 2008 R2. It contains a software NAT that can be configured.

2
  • Note: This is obsessively the wrong way to accomplish this in normal situations. The original Question should have contained the abnormal requirement that all External IPs have the same MAC address.
    – Chris S
    Dec 6, 2011 at 16:43
  • The use case is real and present. A data center in germany does it that way (Hetzner Online AG, hetzner.de). If you order a subnet, you will not get separate MAC adresses for these IPs
    – Heinrich
    Dec 6, 2011 at 17:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .