Configuring Port Mirroring on Hyper-V

Configuring Port Mirroring on Hyper-V

  1. In Hyper-V manager, in the right navigation panel, click Virtual Switch Manager.

  2. Click External, then click Create New Virtual Switch.

  3. Type an appropriate name for the switch. For example, Virtual_Switch_Name.

  4. Select the physical NIC you identified and designate it as the external NIC to connect.

  5. Click OK.

  6. On the Hyper-V host, as an Administrator, open a PowerShell session.

  7. Execute the following commands, which enable the virtual switch to receive packets from the physical mirror port:
    $a = Get-VMSystemSwitchExtensionPortFeature -FeatureId 776e0ba7-94a1-41c8-8f28-951f524251b5
    $a.SettingData.MonitorMode = 2
    add-VMSwitchExtensionPortFeature -ExternalPort -SwitchName <virtual_switch_name> -VMSwitchExtensionFeature $a, where  <virtual_switch_name> is the name of the virtual switch you identified in Step 4.

  8. In the right navigation panel, click Virtual Switch Manager.

  9. Click the + button next to the virtual switch you identified in Step 4.

  10. Click Extensions.

  11. Ensure Microsoft NDIS Capture is selected.

  12. Click OK.

 


We value your feedback.
If you have questions, suggestions, or feedback on our documentation, contact the Campus Product Documentation team.
For general product inquiries or technical support, please contact the global Barracuda Support team.