Avatar of Vincent D
Vincent D
Flag for United States of America asked on

Cisco SNMP

I have Cisco 2811/1841 Routers and Cisco 2906 switches (24/48port). I am looking to enable SNMP on them. Either SNMPv2 or SNMPv3. I need to find documentation on this and any step by step advice would be a real help.
RoutersSwitches / Hubs

Avatar of undefined
Last Comment
ludo_friend

8/22/2022 - Mon
feliciogs

The article http://itknowledgeexchange.techtarget.com/network-technologies/how-to-secure-snmp-in-cisco-switches-and-routers/ contains good samples and takes care of security too.

If you need to avoid any access-list/security issue just remove the access-list number on the end of snmp commands.
ASKER CERTIFIED SOLUTION
ludo_friend

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ludo_friend

^^

2. if you want to have RW access, the above applies, but it is highly recommended that you use another community name other than public (long and random is good)
ip access-list 1 permit ip host 1.1.1.1 !  ip of server running mrtg
snmp-server community somethingrandom RW 1


Muhammed-Rummaneh


Dear Cicio7777

I solved this Problem before ...please check this link

https://www.experts-exchange.com/questions/26111619/How-to-configure-Cisco-Switch-to-work-with-SNMP.html

Thanks
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Vincent D

ASKER
OK "ludo friend",

I am interested in setting up v2c for now and I will work on v3 later.

So on every switch and router I want to monitor are these the commands I need to enter in privledged mode?

snmp-server community somethingrandom1 RO 1
snmp-server community somethingrandom2 RW 1
snmp-server enable traps
snmp-server host "ip of NMS server"
ludo_friend

if you're just monitoring... use the below - the rest are for traps or snmp write access

access-list 1 permit host 1.1.1.1
snmp-server community somethingrandom1 RO 1