- Download William Lam scripts and browse to correct folder
git clone https://github.com/lamw/vghetto-scripts.git
cd powershell
- Install powershell
$ sudo snap install powershell --classic
- Start powershell
$ pwsh
- Install PowerCli
> Install-Module VMware.PowerCLI -Scope CurrentUser
- Connect to vcenter
> Set-PowerCLIConfiguration -InvalidCertificateAction:Ignore
> Connect-VIServer -server <vcenter dns/ip>
- Toggle MAC Learning on your DVSwitch portgroup
> . ./MacLearn.ps1
> Set-MacLearn -DVPortgroupName @("<portgroup name>") -EnableMacLearn $true -EnablePromiscuous $false -EnableForgedTransmit $true -EnableMacChange $false