I am running a Hyper-V 2012 R2 server on a Dell R720 with Hezner, and have trouble configuring VMs to get internet access, when they are assigned public IPs (I brought an ipv4 subnet).
As many may now, they route IPs through the main server ip (the host server in this case, with the vm sitting on te same host).
I've configured ip forwarding as per mentioned in the 1st link below (the explnation At the bottom of that thread), and I have set up internal switch on my host. The vm says it has internet access, but it cannot ping either the host or any internet address (no internet browsing possible, etc).
What am I missing here? I've raised this with hetzner but as we know, they don't support unmanaged configs. A one time vid of setting this up end-to-end would be good though!
I can't post links yet, but the steps were :
For Hyper-V, enable IP forwarding:
1. open command prompt, type
netsh interface ipv4 show int
and take note the Idx value for hyper v nic. (let say 16 in this example)
netsh interface ipv4 set int 16 forwarding=enabled
(16 is Idx value)
3. After that, choose 1 IP from /28 subnet and put the IP into the nic as secondary IP. This IP will be act as gateway for VPS. (So, cannot be the first and last IP of /28 subnet.)
4. Then, the rest IP (13 usable) can be use freely on VPS.