none
Cannot enable the Promiscuous mode at Virtual switch for spanning port RRS feed

  • Question

  • Hello,

    How to enable Promiscuous mode at Virtual machines (Hyper-V) windows 2019 server

    What the power shell command and version to run this command please?

    Thanks,

    Bilal

    Thursday, July 23, 2020 11:05 AM

All replies

  • Hi BilalHasan,

    Thank you for your question.

    Hyper-V does not let you simply set a "promiscuous mode" flag on a port, as you need to specify if a given port is supposed to be the source or the destination of the network packets.

    You could follow the steps below to set up promiscuous mode.

    1. Set the Mirroring Mode of the capturing VM to Destination.

    Set-VMNetworkAdapter <name of the VM> -PortMirroring Destination

    2. Enable Source Mirror Mode on the External port of the Virtual Switch the capturing VM is attached to.

    $feature = Get-VMSystemSwitchExtensionPortFeature -FeatureMame "Ethernet Switch Port Security Settings"
    $feature.SettingData.MonitorMode = 2
    add-VMSwitchExtensionPortFeature -ExternalPort -SwitchName <name of the switch> -VMSwitchExtensionFeature $feature

    You could also refer to the links below for more details

    https://cloudbase.it/hyper-v-promiscuous-mode/

    https://askme4tech.com/setup-port-mirroring-hyper-v-monitoring-traffic

    Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.

    Best Regards,

    Ian Xue


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Friday, July 24, 2020 9:09 AM
  • Hi,

    Is there any update? Have you got a chance to verify above suggestions?

    Please feel free to let us know if more assistance needed.

    If the above reply is helpful, please "mark it as answer" to help other community members find it easier.


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Tuesday, July 28, 2020 2:16 AM
  • Hi,

    Just want to see if the information provided was helpful. Please let us know if you would like further assistance. If any of above replies is helpful, please mark it as answer.

    Best Regards,

    Ian


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Thursday, July 30, 2020 6:44 AM