การ monitor Cisco Router

การมอนิเตอร์ Cisco Router ด้วยคำสั่ง ip route-cache flow และ show ip cahce-flow



บทนำ
ip route-cache flow
เป็นการ enable NetFlow สำหรับ IP routing โดยในการใช้งานให้ใช้คำสั่ง ip route-cache flowใน interface configuration mode ส่วนการ disable NetFlow ก็ใช้คำสั่ง no ดังนี้

ip route-cache flow เพื่อ enable
no ip route-cache flow เพื่อ disable

show ip cache flow
ใข้สำหรับแสดงผมรวม (summary) ของสถิติ NetFlow) โดยการใช้งานให้ใช้คำสั่ง show ip cache flow ดังนี้

show ip cache flow

ประโยชนที่จะได้รับ
เราสามารถมอนิเตอร์ดูสถิติของ NetFlow ของ Interface ที่ต้องการได้

ตัวอย่างการคอนฟิก
ในที่นี้สมมุติว่าเราสนใจสถิติ NetFlow ของ F0 ก็สามารถคอนฟิกได้ดังต่อไปนี้ :

Router#
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int f0
Router(config-if)#ip route-cache flow
Router(config-if)#exit
Router(config)#exit

และใช้คำสั่ง sh ip cache flow ดังต่อไปนี้เพื่อดูสถิติ NetFlow

Router#sh ip cache flow

ซึ่งจะได้ผลลัพท์ดังรูปที่ 1





รูปที่ 1

แต่เนื่องจากในรูปที่ 1 เป็น router สำหรับการทดลองจึงมีสถิติของข้อมูลน้อย จึงให้ดูสถิติของข้อมูลที่มากกว่าจาก router อีกตัว ดังรูปที่ 2



ขอบคุณครับ Compspot.net

ไม่มีความคิดเห็น:

แสดงความคิดเห็น

 

Sample text

Sample Text

Sample Text