Assign public IP address to Hyper-V guest [duplicate]

Possible Duplicate:
Using bridge connection to get ip access from guest in Hyper V

I have now been trying for nearly 4 days to setup what i would think is the simplest hyperV env.

I have a host 2008r2 server with two public ips.

I have created a guest and can connect to it via hyperV manager.

I want this guest to be on my second public ip and be able to remote desktop to it from outside.

Currently the guest cannot access the internet but it is connected to the host virtual network adaptor.

I installed the routing and remote access role and have set up a private interface on the virtual network connection and a public interface on the physical one with.

I have also configured NAT following these steps http://blog.jim80.net/2010/01/19/setting-up-hyper-v-with-nat/ but this doesnt seem to have any effect at all. All the remote desktop sessions still going to the host.

i have also tried setting up static routes inside the IPv4 of routing and remote access.

I really need to know what the correct method is here as there doesnt seem to be any working simple examples on the web. Do i use NAT or static routes and if so what are the settings I need. Seem unbelievable that this relatively basic use case has so much obscured/duplicated config.

all help most appreciated.


If you want the guest to have exclusive use of your "second" public IP address:

  1. Bridge the guest machine's network adapter to your physical network card
  2. Remove the 2nd public IP address from the Hyper-V host.
  3. Assign the 2nd public IP address to the guest (in the guest OS settings).

You do not need to use RRAS or NAT or any kind of special routing.