การเปิด promiscuous mode (mirror/SPAN) บน Hyper-V

Started by New User, March 08, 2026, 01:10:30 PM

Previous topic - Next topic

New User

สำหรับการเปิด promiscuous mode เพื่อใช้กับ wireless controller, ClearPass, Wireshark ทำได้ดังนี้
$portFeature = Get-VMSystemSwitchExtensionPortFeature -FeatureName "Ethernet Switch Port Security Settings"
$portFeature.SettingData.MonitorMode = 2
Add-VMSwitchExtensionPortFeature -ExternalPort -SwitchName "<switchname>" -VMSwitchExtensionFeature $portFeature

ซึง MonitorMode = 2 ก็จะหมายทำการทำ copy traffic ที่ทั้งมาถึงและออกจาก physical NIC และทำสำเนาข้อมูลไปยัง port ปลายทาง

และ ทำการ check MAC Spoofing ตามไฟล์แนบ