VMWare Promiscuous Mode for all hosts

Posted by robd on July 05, 2024
Wireless / No Comments

Hi All,

I recently built a Cisco 9800-CL wireless controller in VMWare (broadcom) and part of the config requires promiscuous mode turn on.

Cisco Catalyst 9800-CL Wireless Controller for Cloud Deployment Guide – Cisco


This setting is comeplete on each host for the vlan you need:

To configure a portgroup or virtual switch to allow promiscuous mode:

  1. Log into the ESXi/ESX host or vCenter Server using the vSphere Client.
  2. Select the ESXi/ESX host in the inventory.
  3. Click the Configuration tab.
  4. In the Hardware section, click Networking.
  5. Click Properties of the virtual switch for which you want to enable promiscuous mode.
  6. Select the virtual switch or portgroup you wish to modify and click Edit.
  7. Click the Security tab.
  8. From the Promiscuous Mode dropdown menu, click Accept.

My issue the 9800-CL could move between hosts so I had to enable this on every host, so rather than click all the buttons I used some PowerCLI:

#Install PowerCLI
Install-Module -Name VMware.PowerCLI

#Connect to your vCentre
Connect-VIServer -force

#Set Promiscuous mode
Get-VirtualPortGroup -Datacenter VMWareCluster -VirtualSwitch vswitch -Name VLAN-100 | Get-SecurityPolicy |  Set-SecurityPolicy -AllowPromiscuous $true -Verbose


Tags: , , , , ,