cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1954
Views
5
Helpful
1
Replies

Restrict OIDs for a snmp-community

juananibalb
Level 1
Level 1

Hi all

I need restrict the access to a Router for snmp. A customer require monitore a interface, but ONLY one, not all interfaces of the router.

If i configure a new community i asigned a ACL, but he have access to all Router's MIBs.

There are some solution to this issue?

Thanks in advanced

JABE

1 Reply 1

minie
Level 4
Level 4

snmp view is designed exactly for this.

snmp-server view oneinterface ifEntry.*.1 included

snmp-server view oneinterface ifEntry excluded

snmp-server community mycomm view oneinterface ro

In this example, only ifIndex 1 is allowed. You will have to find out what ifIndex is for your interface. Note that if you reboot the router and didn't configure interface persistance, ifIndex will change and you will have to redo the view again.

HTH

Review Cisco Networking for a $25 gift card