ทดสอบ Ping & Traceroute

วิธีใช้งานตรวจสอบ network ของเราว่า ping ได้ไหมและ ตรวจสอบ network ปลายทางด้วยคำสั่ง traceroute มีดังนี้

กรณีใช้คำสั่ง ping เพื่อเช็คว่า เราสามารถเชื่อมต่อ Host ของเราไปอีก Host ปลายทางได้ไหมเพื่อตรวจสอบ Network ของเรา
โดยตัวอย่างวิธีใช้คำสั่ง ping

#ping google.com
PING google.com (172.217.27.238) 56(84) bytes of data.
64 bytes from kul09s01-in-f14.1e100.net (172.217.27.238): icmp_seq=1 ttl=54 time=30.0 ms
64 bytes from kul09s01-in-f14.1e100.net (172.217.27.238): icmp_seq=2 ttl=54 time=29.9 ms
64 bytes from kul09s01-in-f14.1e100.net (172.217.27.238): icmp_seq=3 ttl=54 time=29.9 ms

จากข้อความด้านบน Host ปลายทางมีการตอบกลับมา แสดงว่าสามารถเชื่อมต่อได้

การใช้งาน traceroute เพื่อตรวจสอบเส้นทางการเชื่อมต่อไปยังปลายทาง ว่าแต่ละ Hop ใช้เส้นทางใดบ้าง
ให้ใช้คำสั่ง traceroute ดังนี้เพื่อตรวจสอบ ยกตัวอย่าง traceroute ไปที่ google.com

#traceroute google.com
1 gateway (xx.xxx.xx.1) 0.953 ms 0.916 ms 0.931 ms
2 xx.xx.x.xxx (xx.xx.x.xxx) 0.217 ms 0.198 ms 0.220 ms
3 ten-gi-0-0-0-3.hyi-core-01.net (180.180.xx.xx) 16.037 ms 16.023 ms 16.001 ms
4 in-addr.net (203.190.xx.xx) 30.583 ms 30.567 ms 30.582 ms
5 ten-gi-0-2-0-7.100.kkm-core-01.net.248.180.180.in-addr.arpa (180.180.248.97) 30.546 ms 31.209 ms 30.636 ms
6 108.170.249.225 (108.170.249.225) 30.460 ms 30.536 ms 30.491 ms
7 108.170.225.239 (108.170.225.239) 30.744 ms 30.466 ms 108.170.225.237 (108.170.225.237) 33.085 ms
8 kul09s01-in-f14.1e100.net (172.217.27.238) 31.828 ms 31.773 ms 31.737 ms

จะเห็นได้ว่าผ่าน Gateway ของเราเป็นลำดับแรก และออกไปยัง Gateway ของ Provider อื่นๆ อาจจะเป็นแต่ละค่าย Internet ที่เราใช้งาน

 

ทั้งนี้ทั้งนั้นหาก Host ปลายทางไม่มีการตอบกลับหรือทดสอบไม่ได้ เป็นไปได้ว่ามีการทำ Filter Policy เอาไว้


Was this article helpful?

mood_bad Dislike 0
mood Like 2
visibility Views: 1987