|
บทนำ
SNMP (Simple Network Mannagement Protocol)
เป็นโปรโตคอลที่ใช้ประโยชน์ทางด้านการบริหารจัดการเครือข่าย SNMP
สำหรับบน Cisco Router
นั้นมีความต้องการอยู่อย่างหนึ่งที่ค่อนข้างเป็นสิ่งจำเป็นสำหรับหลาย ๆ คน
คือการมอนิเตอร์ดูทราฟฟิกของเราเตอร์ด้วยโปรแกรม MRTG
ซึ่งโปรแกรม MRTG
จะสามารถใช้งานได้ก็ต่อเมื่อมีการ enable SNMP
ฉะนั้น ในที่นี้จึงแนะนำวิธีการการคอนฟิก Cisco Router
เพื่อให้สามารถใช้ SNMP
ขั้นพื้นฐานได้
ความต้องการ
สมมุติว่าต้องการ enable SNMP โดยให้มีค่า
community string เป็น "public" ที่เป็นแบบ
Read-only access with this community string
(ro) ก็จะมีขั้นตอนการคอนฟิก ดังต่อไปนี้ :
----Start-----
Router>
Router>ena
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#snmp-server community public ro
Router(config)#exit
Router#wr mem
----End-----
โดยชนิดของการ Access มีดังนี้ (แต่ในที่นี้เราใช้เป็น
ro)
-
<1-99> Std IP accesslist allowing access with this community string
-
<1300-1999> Expanded IP accesslist allowing access with this community
string
-
ro Read-only access with this community string
-
rw Read-write access with this community string
-
view Restrict this community to a named MIB view
-----จบ----- |