===Enable a SNMP server under IOS===
Go into __enable mode__, then __configure mode__:
GFlop$ enable
GFlop# conf t
Create an access list to __restrict snmp usage__:
GFlop(config)# access-list 1 permit 192.168.1.4
__Enable the snmp server__
GFlop(config)# snmp-server location Foo Bar
GFlop(config)# snmp-server contact Foo@Bar.net
GFlop(config)# snmp-server community public ro 1
(Note: You could remplace public with the community you wants, ro with rw for using snmp with write access, and 1 with the right access list you've created.)
====Sample Config====
access-list 1 permit 192.168.1.4
!
snmp-server community ilovecisco RO 1
snmp-server location Garage ed
!