Simple One
!
! simple one
!
snmp-server location at_a_secret_place
snmp-server contact haxor
!
snmp-server community public RO
snmp-server community private RW
!
!
logging snmp-authfail
Advanced One
!
! advanced one
!
snmp-server location at_a_secret_place
snmp-server contact haxor
!
! protect with Accesslist
!
snmp-server community public RO 5
snmp-server community private RW 6
!
! log wrong SNMP Communtitys
!
logging snmp-authfail
!
! access-list for RO
!
access-list 5 permit 192.168.2.100
access-list 5 permit 192.168.2.101
!
! access-list for RW
!
access-list 6 permit 192.168.2.101
!
Advanced One with a view "cuteview"
!
! advanced one with a view
!
snmp-server location at_a_secret_place
snmp-server contact haxor
!
! view cutview
!
snmp-server view cutdown internet included
snmp-server view cutdown ciscoFlashFiles excluded
!
! protect with Accesslist
!
snmp-server community public view cutdown RO 5
snmp-server community private view cutdown RW 6
!
! log wrong SNMP Communtitys
!
logging snmp-authfail
!
! access-list for RO
!
access-list 5 permit 192.168.2.100
access-list 5 permit 192.168.2.101
!
! access-list for RW
!
access-list 6 permit 192.168.2.101
!