HyperV External Switch Multiple VMs

hyper-vhyper-v-server-2012-r2networkingvirtual-machinesvirtualization

I'm quite new to hyperv and I am having problems setting up network access for my VMs.
The host has two physical network ports and I've assigned one to an external virtual switch.

I've then setup two CentOS VMs to connect via the external switch.

The issue I'm having is that only one VM at a time is able to connect to the external network at a time.

  • VM1 by itslef works fine
  • VM2 by itself works fine
  • VM1 and VM2 together = race condition where the first one to get an ip address wins.

I can get it working with the VMs using an internal switch, however the IP addresses are only visible from the host (they are internally assigned IPs) and I can't then get to the VMs from outside of the host.

Any ideas or reccommendation anyone?

Many Thanks,
Vackar

Best Answer

Just checked and it turns out switches need to be white listed on the network, so yes 'thewabbit' you were correct the one mac-address per physical port rule. Workaround looks like having to use NAT port forwarding from the pubic IP address to the internal ones - not ideal but should do the trick.

Thanks again for the advice, Vackar

Related Topic