There is strange issue that I have come across in my environment.
There are VMs that I recently converted from Hyper-V to vSphere(6.0)
the machines randomly go off the network and cannot ping the gateway.
the machine would sometimes comeback online by performing a vMotion to another host, or by re-connecting the network adapter or by restarting.
Based on the behaviour it earlier looked like a vLAN configuration issues and I verified that the vLAN is allowed on both the physical nework adapters we are using.
after some log analysis I found below logs in the vmkernel log file.
vmkernel.3:2018-01-06T20:09:07.037Z cpu17:14011301)NetPort: 1573: enabled port 0x30000e5 with mac 00:50:56:xx:xx:xx
vmkernel.4:2018-01-04T04:22:03.466Z cpu35:16627658)etherswitch: L2Sec_EnforcePortCompliance:173: client vmname.eth0 requested mac address change to 00:00:00:00:00:00 on port 0x30000ee, disallowed by vswitch policy
vmkernel.4:2018-01-04T04:22:03.466Z cpu35:16627658)etherswitch: L2Sec_EnforcePortCompliance:173: client vmname.eth0 requested mac address change to 00:00:00:00:00:00 on port 0x30000ee, disallowed by vswitch policy
vmkernel.4:2018-01-04T04:22:03.466Z cpu35:16627658)etherswitch: L2Sec_EnforcePortCompliance:173: client vmname.eth0 requested mac address change to 00:00:00:00:00:00 on port 0x30000ee, disallowed by vswitch policy
vmkernel.4:2018-01-04T04:22:03.466Z cpu35:16627658)etherswitch: L2Sec_EnforcePortCompliance:173: client vmname.eth0 requested mac address change to 00:00:00:00:00:00 on port 0x30000ee, disallowed by vswitch policy
vmkernel.4:2018-01-04T04:22:03.466Z cpu35:16627658)NetPort: 1573: enabled port 0x30000ee with mac 00:50:56:xx:xx:xx
based on this I understand there is something is the guest which is requesting a mac address change. don't know what it is?
I checked for any hidden devices and I uninstalled them. I am using e1000 adapter.
found only the below article which seemed related but I am not using vmxnet3
MAC address changes using the VMXNET3 adapter