Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

snmp using access-lists and loopback interface 1

Status
Not open for further replies.

Despairsquid

Technical User
Jan 28, 2002
5
0
0
GB
I'm setting up snmp on cisco2621 router - can I attach an access-list to the loopback interface or can I point snmp at an access-list without attaching to a particular interface?

Any help most appreciated

cheers
 
You don't need to apply an access-list to an interface to accomplish this (although you could, but I prefer to work w/ a scalpel, not a sledgehammer...) I prefer to apply an access-list to the community.

the standard snmp command to set a Read Only community of public would be :

snmp-server community public RO

simply change the above command to

snmp-server community public RO 5

and access-list 5 would be applied to any incoming snmp request w/ a community of public.

So if I only wanted the 200.150.151.0/24 network to be able to querry my router using the public read only community, I'd have the following lines to create my access list

access-list 5 permit 200.150.151.0 0.0.0.255
access-list 5 deny any

For more info see
(watch that word wrap)
 
Thanks for clearing that question for me

kind regards

Despairsquid
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top