I have an ESXi server on 10.78.78.2, and some VMs running on the ESXi which is added to the vCenter.
The ESXi has 2 vmnics, vmnic0 (management) on Uplink1 and vmnic1 (unused) on Uplink 2.
I mistakenly deleted vmnic0 from the vCenter GUI, and lost connectivity to the ESXi, then I restored connectivity by reassigning vmnic0 to the ESXi using BASH shell.
Currently, vmnic1 is on Uplink1 and vmnic0 is on Uplink2
Now the VMs are accessible from the console within the ESXi Web GUI interface, but I can't access them via their IP addresses.
I tried de-registering and then registering them again, it did not help.
Any thoughts on how to get the VMs accessible via IP again.
Hi Try! Can you test your management network in ESXi? https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.esxi.install.doc/GUID-0CDC0898-34C2-4DF5-B7...
Also, try rebooting one of the VMs. Maybe there is a stuck process for VM traffic. Check how the uplinks are configured for those portgroups
This is the Portgroup showing connection to the uplinks.
Currently I can ping all interfaces from the box server to the VMs, none of the VMs can ping any interface outside the box server, they can't ping their gateway either, every VMs gateway is the same, 10.78.78.1.
The box server which is 10.78.78.2 can ping all interfaces, both outside and inside.
When I change uplink 1 back to vmnic0 and uplink 2 back to vmnic 1, and save, it shows as saved but when I open the settings back again, they are back to uplink 1 with vmnic1.
This is a regular vswitch not dvswitch.
Yes both vmnic0 and vmnic1 are physically connected to the box server, and also to the vSwitch.
When I change Uplink1 to vmnic0 and vmnic1 to Uplink2 in the vSwitch settings and save, ESXi server shows as settings saved, but when I reopen the vSwitch settings it reverts back to Uplink1 on vmnic1 and Uplink2 and vmnic0.
I changed the both vmnic0 and vmnic1 to active but that didn't help.
I couldn't find where to attach the vmnic to the VM's as in the settings I can only see as below.
Sorry when you say linked, what do you mean, linked how ?
Thanks @nachogonzalez, and everyone,
Got this working, for the VM Management Network vmnic0 was Unused, and vmnic1 was Standby, Enabled NIC Teaming, and changed vmnic0 to Active and moved it up in the NIC Teaming table.