When switching your host from Legacy BIOS to UEFI, ESXi not connect to the network properly.
vSphere 8.x
If your host has already lost network connectivity after the BIOS change, proceed directly to Changing the names assigned by the ESXi host following KB how-vmware-esxi-determines-the-order-in.html
Alternative Workaround
Revert the BIOS setting to original value.