cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
432
Views
0
Helpful
1
Replies

Snmp control

Jonn cos
Level 4
Level 4

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.

1 Accepted Solution

Accepted Solutions

jonathanaxford
Level 3
Level 3

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

View solution in original post

1 Reply 1

jonathanaxford
Level 3
Level 3

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