02-16-2011 11:16 PM - edited 03-06-2019 03:36 PM
Hi all experts.
is there any way in ios configuration to only allow certain host to query router for snmp based information. All other hosts doing any queries shall be denied.
Solved! Go to Solution.
02-16-2011 11:46 PM
Hi,
You can use an access-list to specify which hosts should be allowed to use a specific SNMP community string.
Switch(config)# access-list 20 permit 10.0.0.10
Switch(config)# access-list 20 permit 10.0.0.11
Switch(config)# snmp-server community STRING-VALUE ro 20
Any hosts not permitted by the ACL will be denied access to the SNMP community,
Hope this helps,
Jonathan
02-16-2011 11:46 PM
Hi,
You can use an access-list to specify which hosts should be allowed to use a specific SNMP community string.
Switch(config)# access-list 20 permit 10.0.0.10
Switch(config)# access-list 20 permit 10.0.0.11
Switch(config)# snmp-server community STRING-VALUE ro 20
Any hosts not permitted by the ACL will be denied access to the SNMP community,
Hope this helps,
Jonathan
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide