esxcfg cmd to set promiscuous mode to accept

esxcfg cmd to set promiscuous mode to accept

Hi.  We are currently creating several installation scripts to ease our  deployment of ESX 3.x out.  Some of our vSwitches and port groups  require that 'Promiscuous Mode' be set to accept.  To avoid having to go  back and do this manually, is there any way that it can be done with an  esxcfg command?  I have searched several locations and not found any.

Thanks!


You can't do this via esxcfg-*, you will need to use the undocumented  and unsupported 'vimsh' interface. Do you want to set the policy at a  port group or virtual switch level?


For these particulat vswitches we can set it at the vswitch level. 

thanks!


You need to run this command after the system has been installed ( after the VMKernel is loaded 😞


vimsh -n -e "hostsvc/net/vswitch_setpolicy --securepolicy-promisc=true vSwitch1"

Where vSwitch1 is the switch you want to set.


Thanks!  It worked great!!

This document was generated from the following thread: esxcfg cmd to set promiscuous mode to accept

Comments

Hi,

What is the syntax for setting the policy at the port group level?

Version history
Revision #:
1 of 1
Last update:
‎03-19-2010 05:34 AM
Updated by: