Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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 '11 at 16:23
They are publicly accessible. I have only one NIC for the whole server. – Heinrich Oct 24 '11 at 16:43

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.

share|improve this answer
This does unfortunately not work for me because my data center provider allows only one MAC address for security reasons. – Heinrich Oct 24 '11 at 19:03
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 '11 at 15:59
up vote 1 down vote accepted

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

share|improve this answer
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 '11 at 16:43
The use case is real and present. A data center in germany does it that way (Hetzner Online AG, If you order a subnet, you will not get separate MAC adresses for these IPs – Heinrich Dec 6 '11 at 17:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.