SlideShare a Scribd company logo
1 of 6
ำำสั่งสำำคัญที่ทุกคนควรจะทรำบเลยค่ะ เพื่อดูว่ำเรำจัดตั้ง IP
Configuration ถูกหรือไม่ ถ้ำหำกเครือข่ำยของเรำไม่ได้ใช้ DHCP
Server ในกำรแจกจ่ำย ip ค่ะ
ตรวจสอบโดยใช้คำำสั่ง ping
คำำสั่งนี้เป็นกำรทดสอบว่ำ อีกฝ่ำยหน่ะ ยังมีกำรให้บริกำรหรือมีชีวิตอยู่
หรือไม่ และเครื่องทั้งสองนี้สำมำรถติดต่อกันได้หรือไม่ จำำง่ำยๆ ก็คือ มี
ชีวิต สำมำรถให้บริกำรได้ ติดต่อกันได้ ก็ reply หำกตำยหรือช้ำ ติดต่อ
ไม่ได้หรือ ไม่อยำกติดต่อด้วยประกำรใดๆ ก็ request timed out แต่
บำงทีเค้ำก็อำจจะมี firewall ขวำงกั้นไว้ ซึ่งอำจจะเป็น firewall ในเครือ
ข่ำยนั้นๆ หรืออำจจะเป็น personnal firewall ของเครื่องปลำยทำงก็ได้
ค่ะ อย่ำเพิ่งไปปักใจเชื่อว่ำหำมีชีวิตไม่นะคะ
อ่อ ลืมบอกไปค่ะ เรำสำมำรถใช้คำำสั่งนี้ กับ url, hostname
ก็ได้ค่ะ แต่เบื้องต้น เรำก็ต้องทดสอบกำรเชื่อมต่อของเครื่องเรำก่อน อย่ำ
เพิ่งตีโพยตีพำยค่ะ เพื่อดูว่ำ เครื่องที่ใช้พร้อมที่จะเชื่อมต่อแล้วหรือไม่
สถำนะของ LAN card มีปัญหำหรือไม่ ก็จะใช้ ip loopback หรือ
localhost ip แล้วมันคือ ip อะไรล่ะ หำกท่ำนยังจำำกำรแบ่ง class ได้
จะนึกออกว่ำ มี net 127.0.0.0 ที่ไม่สำมำรถนำำมำใช้กับเครือข่ำย
ภำยใน เพรำะว่ำ มันถูกกันออกมำ เพื่อใช้ในกำรทดสอบ loopback,
routing ของเครื่อง นั่นเองค่ะ นึกไม่ออกจริงๆ ลองอ่ำนบทควำมที่แบ่ง
class network ดูนะคะ คำำสั่งที่ใช้ก็คือ ping 127.0.0.1 และหำกพบ
ว่ำ ผลที่ได้เป็น request timed out แล้วล่ะก็ ฟันธงได้เลยค่ะว่ำ ต้องเกิด
ปัญหำที่ LAN Card หรือ protocol TCP/IP แน่ๆ ก็ลอง reinstall
driver ดูค่ะ นอกจำกนี้บำงครั้งในกำรใช้คำำสั่ง อำจจะเจออำกำรแบบนี้ค่ะ
1. พบว่ำ Request timed out จำกนั้นตำมด้วย Reply....
Reply..... นั่นแสดงว่ำ เครื่องต้นทำงใช้เวลำในกำรถำมหำ MAC
Address ของเครื่องปลำยทำง โดยใช้กำร arp ซึ่งเครื่องต้นทำง
อำจจะยังไม่เคยติดต่อกันเลย หรือว่ำอำจจะเคยติดต่อกันแล้ว แต่มี
สัญญำณขำดหำยค่ะ
2. พบว่ำ Reply.... Reply.... Request timed out สลับเป็น
ช่วงๆ ... นั่นแสดงว่ำ เครื่องปลำยทำงนั้นทำำงำนหนักมำก หรืออำจ
จะกำำลัง transfer file ใหญ่มำกๆ ในขณะนั้นก็เป็นได้ค่ะ
ตรวจสอบโดยใช้คำำสั่ง tracert
คำำสั่งใช้ในกำรค้นหำว่ำ เส้นทำงกำรสื่อสำรจำกเครื่องต้นทำงไปยัง
เครื่องปลำยทำง มีเส้นทำงที่ใดบ้ำง นั่นก็คือมันวิ่งผ่ำน router ตัวใด
บ้ำงนั่นเอง ซึ่งก็เหมือนกับคำำสั่ง ping ก็สำมำรถใช้ได้กับ ip
address, hostname, url ที่ต้องกำรทดสอบหรือต้องกำรค้นหำค่ะ
ทำำให้เรำทรำบหำกเกิดปัญหำขึ้น จะทรำบว่ำเส้นทำงใดผิดปกติ หรือ
ภำษำที่พูดๆ กันก็คือ มันไปตำยที่ hop ไหน หรือหลงทำงผิดคิดจน
สมองแอดมินแตกนั่นล่ะค๊ำ อิอิ
คำำสั่งที่ใช้ก็คือ tracert www.hotmail.com หรือ tracert
211.206.123.219 จำกรูปก็จะทำำให้เรำทรำบว่ำต้องผ่ำนเส้นทำง
ใดบ้ำง จนกว่ำจะถึงปลำยทำง
ตรวจสอบโดยใช้คำำสั่ง nslookup
คำำสั่งนี้ใช้เมื่อเรำต้องกำรค้นหำข้อมูลเกี่ยวกับ DNS ของ ip
address หรือว่ำ Domain name เป็นกำรทดสอบได้ด้วยว่ำ DNS
Server ที่ใช้อยู่นั้น มันเวิร์กหรือไม่ และถ้ำเรำใส่ Domain name
เช่น www.hotmail.com แล้ว มันสำมำรถ resolve เป็น ip
address ได้ ก็แสดงว่ำ DNS Server นั้นปกติสุขดี ก็ต้องเป็นนักสืบ
ตำมล่ำกันต่อไปว่ำ มันเข้ำเวบไซด์ไม่ได้เพรำะอะไร จำก
ประสบกำรณ์ ก็ต้องไปตรวจสอบกับ policy หรือ rule ของ
Firewall ว่ำเปิดให้ใช้งำนหรือไม่ รวมไปถึง services ของ Server
นั้นๆ เองค่ะ
จากรูปก็จะเห็นว่า DNS Server สามารถ resolve domain
name ของ hotmail.com และ cnn.com เป็น ip address เพื่อ
ใช้ในการติดต่อสื่อสารได้ค่ะ แสดงว่า DNS Server ปกติ แต่ถ้าใช้
คำาสั่งนี้แล้วติดปัญหา ให้ท่านผู้อ่านใช้คำาสั่ง ping เลยค่ะ ping
www.hotmail.com และ ping 211.206.123.219 ถ้า ping
โดยใช้ ip แล้วมีการตอบสนอง Reply กลับมา ก็จะต้องมาดูที่ DNS
Server กันนะคะ ว่า Service มันยังอยู่ดีหรือไม่ค่ะ
จากรูปก็จะเห็นว่า DNS Server สามารถ resolve domain
name ของ hotmail.com และ cnn.com เป็น ip address เพื่อ
ใช้ในการติดต่อสื่อสารได้ค่ะ แสดงว่า DNS Server ปกติ แต่ถ้าใช้
คำาสั่งนี้แล้วติดปัญหา ให้ท่านผู้อ่านใช้คำาสั่ง ping เลยค่ะ ping
www.hotmail.com และ ping 211.206.123.219 ถ้า ping
โดยใช้ ip แล้วมีการตอบสนอง Reply กลับมา ก็จะต้องมาดูที่ DNS
Server กันนะคะ ว่า Service มันยังอยู่ดีหรือไม่ค่ะ

More Related Content

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

คำสั่งครวจสอบเครือข่าย

  • 1. ำำสั่งสำำคัญที่ทุกคนควรจะทรำบเลยค่ะ เพื่อดูว่ำเรำจัดตั้ง IP Configuration ถูกหรือไม่ ถ้ำหำกเครือข่ำยของเรำไม่ได้ใช้ DHCP Server ในกำรแจกจ่ำย ip ค่ะ ตรวจสอบโดยใช้คำำสั่ง ping คำำสั่งนี้เป็นกำรทดสอบว่ำ อีกฝ่ำยหน่ะ ยังมีกำรให้บริกำรหรือมีชีวิตอยู่ หรือไม่ และเครื่องทั้งสองนี้สำมำรถติดต่อกันได้หรือไม่ จำำง่ำยๆ ก็คือ มี ชีวิต สำมำรถให้บริกำรได้ ติดต่อกันได้ ก็ reply หำกตำยหรือช้ำ ติดต่อ ไม่ได้หรือ ไม่อยำกติดต่อด้วยประกำรใดๆ ก็ request timed out แต่ บำงทีเค้ำก็อำจจะมี firewall ขวำงกั้นไว้ ซึ่งอำจจะเป็น firewall ในเครือ ข่ำยนั้นๆ หรืออำจจะเป็น personnal firewall ของเครื่องปลำยทำงก็ได้ ค่ะ อย่ำเพิ่งไปปักใจเชื่อว่ำหำมีชีวิตไม่นะคะ
  • 2. อ่อ ลืมบอกไปค่ะ เรำสำมำรถใช้คำำสั่งนี้ กับ url, hostname ก็ได้ค่ะ แต่เบื้องต้น เรำก็ต้องทดสอบกำรเชื่อมต่อของเครื่องเรำก่อน อย่ำ เพิ่งตีโพยตีพำยค่ะ เพื่อดูว่ำ เครื่องที่ใช้พร้อมที่จะเชื่อมต่อแล้วหรือไม่ สถำนะของ LAN card มีปัญหำหรือไม่ ก็จะใช้ ip loopback หรือ localhost ip แล้วมันคือ ip อะไรล่ะ หำกท่ำนยังจำำกำรแบ่ง class ได้ จะนึกออกว่ำ มี net 127.0.0.0 ที่ไม่สำมำรถนำำมำใช้กับเครือข่ำย ภำยใน เพรำะว่ำ มันถูกกันออกมำ เพื่อใช้ในกำรทดสอบ loopback, routing ของเครื่อง นั่นเองค่ะ นึกไม่ออกจริงๆ ลองอ่ำนบทควำมที่แบ่ง class network ดูนะคะ คำำสั่งที่ใช้ก็คือ ping 127.0.0.1 และหำกพบ ว่ำ ผลที่ได้เป็น request timed out แล้วล่ะก็ ฟันธงได้เลยค่ะว่ำ ต้องเกิด ปัญหำที่ LAN Card หรือ protocol TCP/IP แน่ๆ ก็ลอง reinstall driver ดูค่ะ นอกจำกนี้บำงครั้งในกำรใช้คำำสั่ง อำจจะเจออำกำรแบบนี้ค่ะ 1. พบว่ำ Request timed out จำกนั้นตำมด้วย Reply.... Reply..... นั่นแสดงว่ำ เครื่องต้นทำงใช้เวลำในกำรถำมหำ MAC Address ของเครื่องปลำยทำง โดยใช้กำร arp ซึ่งเครื่องต้นทำง อำจจะยังไม่เคยติดต่อกันเลย หรือว่ำอำจจะเคยติดต่อกันแล้ว แต่มี สัญญำณขำดหำยค่ะ 2. พบว่ำ Reply.... Reply.... Request timed out สลับเป็น ช่วงๆ ... นั่นแสดงว่ำ เครื่องปลำยทำงนั้นทำำงำนหนักมำก หรืออำจ จะกำำลัง transfer file ใหญ่มำกๆ ในขณะนั้นก็เป็นได้ค่ะ
  • 3. ตรวจสอบโดยใช้คำำสั่ง tracert คำำสั่งใช้ในกำรค้นหำว่ำ เส้นทำงกำรสื่อสำรจำกเครื่องต้นทำงไปยัง เครื่องปลำยทำง มีเส้นทำงที่ใดบ้ำง นั่นก็คือมันวิ่งผ่ำน router ตัวใด บ้ำงนั่นเอง ซึ่งก็เหมือนกับคำำสั่ง ping ก็สำมำรถใช้ได้กับ ip address, hostname, url ที่ต้องกำรทดสอบหรือต้องกำรค้นหำค่ะ ทำำให้เรำทรำบหำกเกิดปัญหำขึ้น จะทรำบว่ำเส้นทำงใดผิดปกติ หรือ ภำษำที่พูดๆ กันก็คือ มันไปตำยที่ hop ไหน หรือหลงทำงผิดคิดจน สมองแอดมินแตกนั่นล่ะค๊ำ อิอิ คำำสั่งที่ใช้ก็คือ tracert www.hotmail.com หรือ tracert 211.206.123.219 จำกรูปก็จะทำำให้เรำทรำบว่ำต้องผ่ำนเส้นทำง ใดบ้ำง จนกว่ำจะถึงปลำยทำง
  • 4. ตรวจสอบโดยใช้คำำสั่ง nslookup คำำสั่งนี้ใช้เมื่อเรำต้องกำรค้นหำข้อมูลเกี่ยวกับ DNS ของ ip address หรือว่ำ Domain name เป็นกำรทดสอบได้ด้วยว่ำ DNS Server ที่ใช้อยู่นั้น มันเวิร์กหรือไม่ และถ้ำเรำใส่ Domain name เช่น www.hotmail.com แล้ว มันสำมำรถ resolve เป็น ip address ได้ ก็แสดงว่ำ DNS Server นั้นปกติสุขดี ก็ต้องเป็นนักสืบ ตำมล่ำกันต่อไปว่ำ มันเข้ำเวบไซด์ไม่ได้เพรำะอะไร จำก ประสบกำรณ์ ก็ต้องไปตรวจสอบกับ policy หรือ rule ของ Firewall ว่ำเปิดให้ใช้งำนหรือไม่ รวมไปถึง services ของ Server นั้นๆ เองค่ะ
  • 5. จากรูปก็จะเห็นว่า DNS Server สามารถ resolve domain name ของ hotmail.com และ cnn.com เป็น ip address เพื่อ ใช้ในการติดต่อสื่อสารได้ค่ะ แสดงว่า DNS Server ปกติ แต่ถ้าใช้ คำาสั่งนี้แล้วติดปัญหา ให้ท่านผู้อ่านใช้คำาสั่ง ping เลยค่ะ ping www.hotmail.com และ ping 211.206.123.219 ถ้า ping โดยใช้ ip แล้วมีการตอบสนอง Reply กลับมา ก็จะต้องมาดูที่ DNS Server กันนะคะ ว่า Service มันยังอยู่ดีหรือไม่ค่ะ
  • 6. จากรูปก็จะเห็นว่า DNS Server สามารถ resolve domain name ของ hotmail.com และ cnn.com เป็น ip address เพื่อ ใช้ในการติดต่อสื่อสารได้ค่ะ แสดงว่า DNS Server ปกติ แต่ถ้าใช้ คำาสั่งนี้แล้วติดปัญหา ให้ท่านผู้อ่านใช้คำาสั่ง ping เลยค่ะ ping www.hotmail.com และ ping 211.206.123.219 ถ้า ping โดยใช้ ip แล้วมีการตอบสนอง Reply กลับมา ก็จะต้องมาดูที่ DNS Server กันนะคะ ว่า Service มันยังอยู่ดีหรือไม่ค่ะ