Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

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 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.

share|improve this question

marked as duplicate by Skyhawk, Jacob, Sam Jan 20 '12 at 23:27

This question was marked as an exact duplicate of an existing question.

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.

share|improve this answer
Thanks for the reply. I have bridged the connection but now have no internet on the host. what tcp ipv4 settings do i need in the bridged connection? – Jules Jan 20 '12 at 17:18
Please verify that you have not created an IP address conflict. For bridged networking to work, the host and guest need to be configured with separate IP addresses. – Skyhawk Jan 20 '12 at 17:24
how do i configure this? should I specify the ips inside the tcp properties of the network connection? what should the default gateway of the virtual connection be? thanks a lot – Jules Jan 20 '12 at 17:32
i have internet connection on the host by specifying the public ip and gateway in the bridge connection. Do both connections in the brdge need to have the same details specified with the hosts public ip/gateway? What should the tcp settings be in the guest? thanks a lot for your help. made more progress in last 30 minutes than in 2 days of pulling my hair out. – Jules Jan 20 '12 at 17:48
Configure the guest machine EXACTLY as if it were a completely separate computer on the same subnet. Different IP address but same gateway, same netmask, and same DNS servers. Make sure that the host is configured to use only one of your two public IP addresses so that you can use the second one for your guest. You can verify which public IP addresses the host is using via ipconfig /all at the command line. – Skyhawk Jan 20 '12 at 19:06

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