[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 117
  • Last Modified:

IP addressing with Hyper V

Question about how to assign static IPs to a VM server...

I have a Virtual Server running Hyper V that hosts 4 different VMs...and the physical server itself has 3 NICs on it.
Here is my setup:
NIC 1: Static IP used for physical server for management
NIC 2: I want to use this NIC for VMs #1-3
NIC 3: I want this solely for VM #4, so it's a static ip.

My question is, do I leave NIC #2 open to DHCP on the physical side, and then assign it a static address inside each VM? Or should I assign both the physical and VM network interfaces a different static address?
0
jumpassociates
Asked:
jumpassociates
  • 2
2 Solutions
 
DrDave242Commented:
It shouldn't matter what you do with NIC 2 and 3 in the parent partition (host). Assuming you create two external virtual switches (one for VMs 1-3 and one for VM 4) and don't share them with the management OS (since you're dedicating NIC 1 to management), only the IP configuration on the VMs will matter.
0
 
Manojkumar RaneCommented:
NIC 1: Static IP used for physical server for management
-- Assign static IP address for NIC1 for management purpose.

NIC 2: I want to use this NIC for VMs #1-3
-- Create External switch and bind it to NIC2. In VM (1-3) setting attach VMNIC to this switch.

NIC 3: I want this solely for VM #4, so it's a static ip.
-- Create External switch and bind it to NIC3. In VM 4 setting attach VMNIC to this switch.
0
 
DrDave242Commented:
Exactly right. On the two external switches, make sure to leave the Allow management operating system to share this network adapter checkbox unchecked. As long as you do that, NICs 2 and 3 will only be used by Hyper-V and therefore won't have IP addresses in the host OS. Addressing with be done strictly on the VMs.
0
 
jumpassociatesAuthor Commented:
Thanks for the specific answer and the help!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now