Hyper V Virtual Ethernet Adapter looses default gateway server 2016

Nikita Baranov 1 Reputation point
2020-12-07T20:50:49.473+00:00

Hello,

I have a Hyper-V host server with 2 physical NICs running Windows Server 2016 with one virtual machine on board. My virtual machine is a Kerio Control OS and I have 2 virtual external switches enabled in Hyper-V. The first switch is used as Kerio external Interface and second one for Kerio trusted interface and connectivity of a physical host with an internal network. All interfaces on both physical and virtual machines are configured with static IPs. The problem is that some times vNIC on a host machine is loosing it's gateway setting with no reason (it becomes empty). When manually adding a gateway back is starts working again.

Could you please kindly advise on what can be the reason behind.
Thank you!

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,536 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Dave Patrick 426.1K Reputation points MVP
    2020-12-07T21:16:11.14+00:00

    The virtual machine shouldn't have any impact on this. I'd just check there weren't gateways on both host network adapters as windows would not like this condition.

    --please don't forget to Accept as answer if the reply is helpful--


  2. Xiaowei He 9,871 Reputation points
    2020-12-08T06:50:34.48+00:00

    Hi,

    Do you mean after using the physical NIC to create the virtual switch, the gateway on the physical NIC is lost?

    When you create a virtual switch on a physical network card on Hyper-V, ALL protocols are removed from that NIC and replaced with Microsoft's extensible switch protocol. The behavior is expected and normal. We don't need to add back the gateway on the physical NIC.

    46088-image.png

    Thanks for your time!
    Best Regards,
    Anne

    -----------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.