SNMP Question (Cisco)

I want to restrict snmp traps to certain hosts on my network.  I'm using Cisco equipment.

Will this work?


snmp-server group Networking access-list 200
snmp-server enable traps

access-list 200 permit 192.168.12.0 0.0.0.255

also, can I do the same thing on a CAT OS?  if so, what is the command?
AsenathWaiteAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sstalibCommented:
One important thing you need to do is change the community string which is hard to guess. Create two seperate communities one for read only and the other for read-write.

You can allow a whole lan to access the read-only community and restrict the read-write community to a single host.

  ! allow SNMP reads from hosts in access-list 5
  snmp-server community h4rd2gu3ss ro 5
  ! allow SNMP write from host in access-list 10
  snmp-server community h4rd3r2gu3ss rw 10
  !
  ! access list for SNMP read
  access-list 5 permit lansegmentaddress lansegmentmask
  access-list 5 deny any
  ! access list for SNMP read/writes
  access-list 10 permit host snmp_management_station_ip
  access-list 10 deny any

  snmp-server enable traps
  snmp-server trap-authentication
  snmp-server host snmp_management_station_ip

This is good for cisco routers. for CAT OS I will leave to the other experts.

Hope this is helpful. Good Luck
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
FrabbleCommented:
Traps are sent from the equipment to a host server, no need for access lists unless you wish to control SNMP access to the equipment.

IOS:
snmp-server enable traps
snmp-server host <host name/IP> <community string>


CatOS:
set snmp trap enable
set snmp trap <host name/IP> <community string>
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.