Sunday, December 25, 2011

Add static ARP in Windows 7, Vista, Server 2008

Windows XP
arp -s 192.168.1.1 00-11-18-21-45-91

Windows 7 , Vista, Server 2008
netsh interface ipv4 add neighbors "Local Area Connection" 192.168.1.1 00-11-18-21-45-91


ARP Spoofing Detection
http://www.chrismc.

กรณีที่มี ip address ชนกันกับ gateway จะดูคล้ายกับโดน ARP Spoofing
เช่นกรณี ap อยู่ดีๆก็โดน reset กลับเป็นค่า default setting
ให้ใช้คำสั่ง arp -a ดูว่า mac ของ gw เปลี่ยนไปมาหรือเปล่า
แล้ว add static arp เพื่อเข้าไป set ap นัั้นให้ได้ โดยเปลี่ยน ip ใหม่ โดยใช้ ip ที่ ap นั้นอยากจะเป็น ถ้าใช้เป็น ip อื่นอาจจะเข้าไปแล้วหลุดออกมา และตั้งค่าอื่นๆใหม่
เสร็จแล้วค่อยลบ static arp นั้นออกโดยใช้คำสั่ง arp -d <ip>
ถ้าจะให้ดีควรทำ บัญชี mac ของทุกเครื่องและทุกอุปกรณ์ให้หมด เวลามีปัญหาจะได้เช็กง่าย
สามารถเอา mac ไปเช็กได้ด้วยว่ามาจากอุปกรณ์ยี่ห้ออะไรจะได้ตัดให้แคบลงได้

สำหรับ Windows 7 บางกรณีอาจจะลบ static arp ไม่ออก คือลบออกแต่เมื่อ restart computer
static arp ที่เคยตั้งไว้ก็กลับมาใหม่ ให้ใช้คำสั่งด้านล่าง reset ค่าของ interface ก่อน
netsh interface ipv4 reset
netsh interface ip delete arpcache

No comments:

Post a Comment