首页 > 其他 > 详细

配置Hyper-V网卡为混杂( Promiscuous)模式

时间:2021-09-22 17:00:11      阅读:19      评论:0      收藏:0      [点我收藏+]

 

1.Add a VMSwitch Port Feature, where "LAN2" is your virtual switch name.
$A=Get-VMSystemSwitchExtensionPortFeature -FeatureName "Ethernet Switch Port Security Settings"
$A.SettingData.MonitorMode = 2
Add-VMSwitchExtensionPortFeature -ExternalPort -SwitchName LAN2 -VMSwitchExtensionFeature $A

2.Change the PortMirroring Attribute of the VM Networkdevice, where "VMName 06_WinXPMonitor" is your VM name and "00155D016612" is the MAC address of your adapter
Get-VMNetworkAdapter -VMName 06_WinXPMonitor | ? MacAddress -eq ‘00155D016612‘ | Set-VMNetworkAdapter -PortMirroring Destination

配置Hyper-V网卡为混杂( Promiscuous)模式

原文:https://www.cnblogs.com/dreamer-fish/p/15311248.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!