Hyper-V 2012 Network Virtualization - How to configure a default gateway
-
Thursday, July 05, 2012 3:08 AM
Hi,
I'm trying to setup Network Virtualization on Windows 2012 Hyper-V, but I'm running in trouble trying to get a default gateway up and running.
Here is a brief description of the test environment I have:
One single Windows 2012 server with Hyper-V.
The server is configured with 2 network cards.
The first network card is dedicated for the host management (IP: 10.16.1.104/24; DF: 10.16.1.1)
The second network card is used for Hyper-V guest network traffic and is configured has a virtual switch.
There is a dedicated IP subnet for the guest machines (IP:10.16.4.0/24; DF: 10.16.4.1)
On that server, I have configured 3 virtual machines: VM008, VM009 and VM010.
All 3 virtual servers are connected with one virtual network to the guest subnet (10.16.4.0).If I don't use Network virtualization and manually assign an IP address to the virtual machines (for example 10.16.4.10; DF 10.16.4.1), each machine can see each other and can access the internet through the default gateway. So far so good...
I've then enabled Network Virtualization on the host and used the following example to setup VM008 and VM009 in one subnet and VM010 in another:
http://gallery.technet.microsoft.com/scriptcenter/Simple-Hyper-V-Network-d3efb3b8
and it works great. VM008 and 009 can communicate with each other, while VM010 has the same IP address as VM008 (as exepected).Now comes the problem: in the following example, it shows how to enable a default gateway to enable those VMs to access the internet:
http://gallery.technet.microsoft.com/scriptcenter/Simple-Hyper-V-Network-6928e91b
However, I can't for the life of me gets this to work!
The example above shows a default gateway in the same subnet as the VMs (x.x.x.1), but does not mention where this address should be configured (on which VM?), nor does it say where the MAC address is coming from (and to which VM it should be assigned).
I tried everything I can think of, but cannot access the internet from any VMs as soon as I enable Network Virtualization.
Is there any document that could help me out a little more on how to configure a gateway for those machines?
thank you,
stephane
All Replies
-
Thursday, July 05, 2012 12:46 PMExcuse my ignorance, but I have never seen the notation you are using to describe your network. I understand what 10.16.1.105/24 means. But I have never seen the DF: 10.16.1.1 designation. Trying to interpret it from the context, it almost looks like that is how you are designating your gateway, but I don't want to make any assumptions.
tim
-
Thursday, July 05, 2012 10:35 PM
Hi Tim,
Thank you for your reply.
DF is indeed the default gateway.
Cheers,
Stephane -
Sunday, September 23, 2012 2:58 PMDid you ever get anywhere on this because I am in the same place now. I've wasted an entire day on this and achieved nothing. Any help would be great.
-
Tuesday, September 25, 2012 12:31 AM
Hi,
Unfortunately not. We decided to wait until there is more documentation on the subject and carry on with VLANs in the meantime.
Microsoft did confirm that Virtual Machine Manager SP1 would take care of the default gateway configuration, but the release has been delayed until late this year.
Sorry I couldn't be more helpful.
Cheers,
Stephane -
Monday, December 17, 2012 5:15 AM
As i know, internally all will be worked fine, but if you want that both subnets have internet access, you need to configure two separate gateways with same internal address, and put them on blue and red network. Also you need to configure NAT on them for hiding your internal subnets. Also, you need to configure transit networt fot that gateways.
Then, logically your network will have pyramidal structure where in top is your network gateway, lower is two gateways with NAT, and behind them is your blue and red subnet.
- Edited by Novsinclair Monday, December 17, 2012 5:16 AM
- Proposed As Answer by Novsinclair Monday, December 17, 2012 5:16 AM
-
Saturday, March 02, 2013 10:59 AM
Dear Novsinclair,
I am evaluating Network virtualization, My Isolation works without a problem. I am not a hardcore network guy and I am Stuck at getting to implement a Gateway for my Isolated Virtual network to access the Internet.
Configuration :Hyper-v Physical Host (That's the only host I have, its a home setup)
====================================
Router / DG: 192.168.0.1
Physical NIC IP (Production) : 192.168.0.2
Physical NIC (Network Virtualization) : 192.168.0.3
Virtual DC: 192.168.0.4
Virtual SCVMM 2012 SP1: 192.168.0.5
Virtual Gateway: 192.168.0.6 (I have created this, just incase if there is any configuration that will allow me to use this as a gateway machine for my below Customer address)Network Virtualization (NVGRE)
======================
Provider Address: 192.168.0.7/24
Customer Address Blue: 10.0.0.0/24
Customer Address Red: 10.0.0.0/24I want to setup a gateway so my Blue and Red VM's can access the internet when they use Network virtualization. I am not sure how to set this up. Please assist me with what steps I need to carry out in order for this to work.
Thanking you in advance for any assistance.
Cheers
Lewis
-
Saturday, March 02, 2013 3:37 PM
As above I too am having difficulty with this it worked a breeze in 2008R2 but I am loosing a lot of sleep now :/ any help appreciated
1 nic on server (happens to be wifi) DNS Working, DHCP Working, but no access to the outside world. stump't .
Kind regards,
Ryan

