Solved

IP address assignment in Hyper-V

Posted on 2014-03-25
6
4,012 Views
Last Modified: 2014-11-12
TCP IP error in W2012DHCP in SBS2011Hi,
 
 I have Windows 2012 installed with Hyper-V. Among several VMs, I have SBS2011 that does DHCP.
 My W2012 is currently receiving IP address (192.168.1.39) from the VM/SBS2011 DHCP server. Is that the way it is supposed to be? When I tried to assign a static IP address to W2012 TCP/IP property, I got a popup window with error message as posted above.
 Why can't I assign a static IP to W2012 network adapter?

 FYI. on this network, SBS2011 will be the only server and DHCP server.

Thanks.
0
Comment
Question by:sglee
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 58

Accepted Solution

by:
Cliff Galiher earned 82 total points
ID: 39954847
You are trying to change the IP on the wrong NIC in the management (sometimes called the host) OS. When you create a virtual network, a virtual switch is created. If you look at the first screengrab you posted, you'll see that everything has been unchecked *except* the virtual switch. The virtual switch "NIC" does not get an IP, either manually or by DHCP. You'll have one or more other NICs in the management OS that represent the NIC for the OS.
0
 
LVL 81

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 81 total points
ID: 39955116
See the Difference?  The middle NIC is the one that is in the virtual switch
0
 
LVL 37

Assisted Solution

by:Mahesh
Mahesh earned 162 total points
ID: 39955256
you have selected "The Allow management operating system to share this network adapter" in the properties of VM network which actually turned your original network card to switch and created new virtual network card
You can guess, you can't assign IP address to switch
If you want to assign static IP, please assign it to virtual NIC created by Hyper-V network

Mahesh.
0
Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

 

Author Comment

by:sglee
ID: 39955863
I got you and now I know where to go to assign a static IP.
 
That said what are experts doing in these cases - let hyper v receive IP from DC VM or assign static IP so that Hyper v does not depend on DC VM for ip?
0
 
LVL 37

Assisted Solution

by:Mahesh
Mahesh earned 162 total points
ID: 39955931
You should always provide static IP address to servers, and create exclusion for that in DHCP
Its very rate cases where servers are also getting DHCP IP, I do not recommend that

Also its not wise to have DHCP IP to Hyper-V here from one of the guest
In any point if you have to reboot Hyper-V server guess what will happens, your Hyper-V will unable to get IP from your virtual guest
0
 

Author Comment

by:sglee
ID: 39958577
Thanks for your help.
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
In this Micro Tutorial viewers will learn how to restore single file or folder from Bare Metal backup image of their system. Tutorial shows how to restore files and folders from system backup. Often it is not needed to restore entire system when onl…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

751 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