ผู้ใช้ VMware Workstation Player/Pro เจอปัญหา Bridged Network: Guest VM ติดต่อ Host ไม่ได้ และ Host ติดต่อ Guest ไม่ได้ พบใน Windows 7, 8, 10
สาเหตุ VMware Bridged Network ไม่ทำงาน
- Vmnetbridge.sys บั๊ก/ค้าง: Service บริดจ์เริ่มผิดหรือค้างใน Limbo State แก้ได้โดย Restart Service ผ่าน CMD Admin
- VMware เลือก Virtual Network ผิด: ถ้าตั้ง Auto อาจเลือก Network ที่ไม่มีเน็ต แก้ได้โดยระบุ VMnet0 เอง
- Bridging ไป Adapter ผิด: ตั้ง Automatic แล้ว VMnet0 Bridge ไป Adapter ที่ไม่ได้ใช้เน็ต แก้ได้โดยเลือก Adapter เอง
- Adapter ไม่จำเป็นเยอะเกินไป: VMware เลือก Adapter ผิด ลบ Adapter ไม่จำเป็นออกจาก Auto Bridging
- VPN Client ชนกัน: VPN บางตัว (Endpoint Remote Access VPN) ชนกับ Bridging Feature ลบ VPN Client ออก
- VirtualBox Adapters ชนกัน: เคยใช้ VirtualBox Adapter ค้างอยู่ Disable ทิ้ง
- Windows Update (Build 1703+) ทำลาย Registry: ลบ Key VMnetDHCP และ VMware NAT Service แก้ได้โดย Restore Default Virtual Network Editor
- Firewall แบบ 3rd Party บล็อก: AVG, BitDefender Firewall บล็อก ให้ Allow VM หรือปิด Firewall
วิธีแก้ไข
วิธีที่ 1: Restart Vmnetbridge.sys ผ่าน CMD Admin
- ปิด VMware Workstation และ Guest VM ทั้งหมด
- เปิด CMD Admin: Windows+R > cmd > Ctrl+Shift+Enter
- รัน:
net stop vmnetbridge net start vmnetbridge
- ปิด CMD เปิด VMware ใหม่ ทดสอบ
วิธีที่ 2: ระบุ Virtual Network เป็น VMnet0
- VMware > คลิกขวา VM > Settings
- แท็บ Hardware > Network Adapter
- เลือก Custom: Specific virtual network > Dropdown เลือก VMnet0
- OK > Launch VM ทดสอบ
วิธีที่ 3: Deselect Adapter ไม่จำเป็น (VMware Workstation Pro เท่านั้น)
- VMware Workstation PRO > Edit > Virtual Network Editor
- คลิก Change Settings (ล่าง)
- เลือก Vmnet0 > เปลี่ยน Bridged to จาก Automatic เป็น Adapter ที่ใช้เน็ตอยู่ (เช่น Wireless)
- Restart VM ทดสอบ
วิธีที่ 4: ลบ Host Network Adapters ไม่จำเป็น (VMware Player)
- หา Adapter ที่ใช้เน็ตจริง: Windows+R > ncpa.cpl > ดู Adapter ที่มีสัญญาณเขียว
- VMware > Settings VM > Hardware > Network Adapter > Bridged > Configure Adapters
- ใน Automatic Bridging Settings ยกเลิกถูกทุกตัว ยกเว้น Adapter ที่ใช้เน็ตจริง
- OK > Launch VM ทดสอบ
วิธีที่ 5: ลบ VPN Client ออกจาก Host
- Windows+R > appwiz.cpl > หา VPN Client > Uninstall
- Restart > ทดสอบ Bridged Connection
วิธีที่ 6: Disable VirtualBox Network Adapters
- Windows+R > ncpa.cpl
- คลิกขวา Adapter ของ VirtualBox ทุกตัว > Disable
- เปิด VMware ทดสอบ
วิธีที่ 7: Restore Virtual Network Editor Defaults (Pro Only)
- รัน C:\Program Files (x86)\VMware\VMware Workstation\vmnetcfg.exe แบบ Admin
- คลิก Restore Default > Apply
- Restart VMware ทดสอบ
วิธีที่ 8: Allow VMware ใน Firewall (AVG/BitDefender)
- Avast Internet Security > Settings > Expert Mode > Advanced Settings
- ถูก Allow any traffic from/to virtual machines supported by firewall
- Apply > Restart VMware
หมายเหตุ: BitDefender ไม่มีตัวเลือก Allow ต้องปิด Firewall ทั้งหมด