Solved

Hyper-V virtual switch card config

Posted on 2016-08-23
3
59 Views
Last Modified: 2016-08-24
This server host is 2012r2, as well as all its (not installed yet) VMs the same. It has multiple network cards.
I installed the host and configured all network adapters with static IPs.
Then I installed Hype-V role and checked a physical card for each of the VMs, leaving the rest for the host.
Now each checked card is linked to a virtual switch created automatically.
Then I go to Virtual Switch Manager and uncheck the "Share with host..." for each switch, so that its card is used exclusively by its VM.

But...
Now if I go to properties of such a "switch" card (on the host), I don't have access anymore to network properties (IP, mask, etc.). Only the Hyper-V is checked, and the rest cannot be accessed.

Anyone can explain why?
Shouldn't one be able to configure the card? I understand that connecting to the VM will use the address of the virtual NIC... but does this mean the physical card has no address at all?? I thought the physical card is like an uplink to the switch, am i wrong?
0
Comment
Question by:campinam
3 Comments
 
LVL 78

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 100 total points
Comment Utility
a virtual switch doesn't really have an ip address. Share with host you configure the ip address on the host otherwise you configure it on the virtual machine. For instance for 1 external NIC managed with the host it gets a dhcp address of 192.168.0.100 yet the virtual machine will get another ip address using dhcp.

It only gets more confusing if you add virtual machine manager to the mix because you have logical networks and physical networks. Two different tenants can have logical networks of 192.168.0/24 and be connected to the same actual NIC yet there traffic will be transparent to each other (meaning that tenant 1 will not be able to access tenant 2 even though as far as they are concerned they are in the same subnet.
1
 
LVL 56

Accepted Solution

by:
Cliff Galiher earned 400 total points
Comment Utility
Binding a NIC to a virtual switch does (properly) disable most of the NIC settings on the host. That is by design. The NIC effectively becomes just a port on the switch, and like any other unmanaged physical switch, does not concern itself with IP layer stuff. So what you've described is expected behavior.
0
 
LVL 38

Expert Comment

by:Philip Elder
Comment Utility
My EE article Some Hyper-V Hardware and Software Best Practices should help with a lot of these kinds of questions.

Team two ports, preferably on different physical NICs, and bind a static IP to that team. That's your management access.

Then, create at least one more team for the virtual switch (vSwitch). We prefer to _not_ share this team with the host OS just as you have. The TCP/IP stack gets completely hidden to the host OS. This is as it should be.
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Suggested Solutions

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
A procedure for exporting installed hotfix details of remote computers using powershell
In this Micro Tutorial viewers will learn how they can get their files copied out from their unbootable system without need to use recovery services. As an example non-bootable Windows 2012R2 installation is used which has boot problems.
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…

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now