How to enable Ping in Windows Server 2012

0
1733

วิธีเปิด Ping ให้ Windows Server 2012 ด้วย GUI และ PowerShell

วันนี้มี TIP แก้ปัญหากวนใจของ Default Configuration Network ของ Windows Server รุ่นใหม่ ๆ คือหลังจากลง Windows และตั้งค่า Network เรียบร้อยแล้ว เราไม่สามารถ Ping เพื่อตรวจสอบ Windows ได้

อาการเหมือนเชื่อมต่อไม่ได้ทั้ง ๆ ที่ตั้งค่า IP ไว้ถูกเรียบร้อยแล้ว

How to enable Ping in Windows Server 2012

มี 2 วิธีดังนี้ครับ

1. ใช้ GUI

ไปที่ ‘Windows Firewall with Advanced security’ แล้วเลือก Inbound Rules จากนั้นหาคำว่า File and Printer sharing (Echo request – ICMPv4-In) คลิ๊กขวาเลือก Enable Rule

image

ดูให้แน่ใจก่อนนะครับว่ามันขึ้นสีเขียวแล้ว

How to enable Ping in Windows Server 2012

ทดสอบ Ping ได้แล้วครับ ใช้ได้ปกติเรียบร้อย

How to enable Ping in Windows Server 2012

2. ใช้ PowerShell

ใช้คำสั่งสองจึ๊กตามด้านล่างนี้เลยครับ

Import-Module NetSecurity
Set-NetFirewallRule -DisplayName “File and Printer Sharing (Echo Request –  ICMPv4-In)” -enabled True

How to enable Ping in Windows Server 2012