I am trying to learn SMNP. My lab scenario is:
R1---ethernet-----NMS ( Orion by Solar wind)
What is minimum configuration required for SNMP?
According to link, shown below. this is minimum requirement:
Router(config)# snmp-server community MyCommunity972 RW
My question is we did not specify the how will R1 contact NMS i.e no ip address of NMS is configured ?
thanks and have a great weekend.
that command can be enough.
SNMP works on a query/ response model the SNMP get from the server is processed and answered if the server used the right snmp community in its request (like a password, better security and packet encryption is possible with SNMP v3).
SNMPv2c supports different communities for read only operations ( RO parameter) or read-write ( read-write)
The command that you have used allow SNMP writing operations this means possible changes to device configuration via SNMP (RW parameter)
With this command an answer is provided whatever is the source IP address of the SNMP get if the router has a route to the source address.
To be noted a standard access-list can be specified on the same command to limit to what devices the router will answer by simply adding the access-list number.
If the ACL is provided the router will answer to SNMP with a source IP address permitted by the ACL.
To be noted the SNMP agent on the device is actually a "server" that provides information and the server acts as a client making queries.
The address of the server needs to be specified for the router to be able to send SNMP traps ( UDP 162).
This is a different operating mode that allows a device to inform selected hosts of an event occurred on the device
Examples: link down on an interface, configuration change performed on the device, device reloaded
To specify the target server(s) for sending traps you need to use
You can decide or to enable all possible traps or for scalability to enable traps only for some categories of events.
these commands are available completing the command
snmp-server enable traps
A good command to check snmp activity is
In short there are two operating modes for SNMP:
one is to answer to SNMP get (queries) from NMS and it is enabled by the command you have seen
the other one via traps is to send information to NMS when an event (that is allowed to generate a trap) occurs
Hope to help