Solved

hyper-v network settings

Posted on 2014-04-14
5
1,147 Views
Last Modified: 2014-11-12
I have a windows 2012 r2 server as hyperv host
Nic1 - 192.168.1.205
Nic2 - Hyper-v virtual switch

I configure the hyper-v switch as 192.168.1.206

Both are point to the same gateway and dns server.

When I configure the two going to the same gateway I get:
Warning - Multiple default gateways are intended ... and my hyperv guest does not have internet access.

In addition, can the guest be 192.168.1.210 or must it be in a separate like 192.168.44.x ?

Thank you
0
Comment
Question by:HalCHub
5 Comments
 
LVL 35

Expert Comment

by:Dan Craciun
ID: 39999594
NIC1 and NIC2 are 2 different physical NICs or is NIC1 the one assigned to the virtual switch?
0
 
LVL 58

Expert Comment

by:Cliff Galiher
ID: 39999599
You should not be configuring ANYTHING on the NIC for the virtual switch. In fact, when you create an "external" virtual network and bind it to a NIC, IPv4 is disabled which means if you are setting any IPv4 settings, you are forcibly re-enabling something that should not be enabled.

A virtual switch is very much like a physical layer-2 switch. It doesn't have an IP address or default gateway of its own. You assign those to any VM you "attach" to the switch. And since that'll be in the VM, you won't have the multiple default gateway issue.
0
 
LVL 37

Accepted Solution

by:
Mahesh earned 255 total points
ID: 39999712
The best solution i can see, just team your both network adapter with Windows native teaming software tool that is shipped with 2012 \ 2012 R2 servers, get one teamed adapter by creating team, then simply create new external VM network by using that teamed adapter and it will create new virtual network.
Do no forget to select "Allow management operating system to share this network adapter" setting, otherwise you won't be able to connect to hyper-v host server

Provide Ip address and default gateway to this new virtual adapter
Your actual teamed adapter will be turned into switch, so no need to modify its properties, leave it as it is.

You can use same network range to virtual machines as your VM network without any issue

Mahesh.
0
 
LVL 1

Author Comment

by:HalCHub
ID: 40006549
I teamed the host network cards and the guest is now getting its IP address from dhcp on the router and it can access the internet.  When I try to change the guest os IP address to a static address it is unable to access the internet.

Please advise
Hal
0
 
LVL 37

Expert Comment

by:Mahesh
ID: 40006849
How your internet traffic is flowing ?

When you remove DHCP, its stopping internet ?
0

Featured Post

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Not getting option to convert volume to CSV 6 34
Remote Desktop not working 22 60
ASA NAT rule change 3 27
Run Server 2012 on PowerEdge 2950 13 32
Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question