VMWare
vCenter
Add static routes
vCenter servers use systemd-networkd for network configuration. To add static routes edit /etc/systemd/network/10-eth0.network and add the following:
[Route]
Destination=<subnet>
Gateway=<nexthop>
ESXi 6.X
Re-enable user in lockout mode
If you enabled lockout mode in vSphere then inputing the wrong password multiple times puts your user into lockout mode. It is locked for a period of time (at most 900 seconds). Each following login - even correct ones - resets the timer.
To re-enable to user you need console access (by standing in front of the machine or some sort of remote console, e.g. HP iLo or Dell iDrac):
- Press
ALT+F1to change from the DCUI to the ESXi shell - Log in with an administrative user (even if this one is locked)
- Run
pam_tally2 --user <username>to see the number of unsuccessful logins - Run
pam_tally2 --user <username> --resetto reset this number - Now you should be able to login using SSH or the web frontend