Configuring SNMP on a routing instance
The following sections provide examples of configuration mode commands.
Associating an SNMP client on a routing instance
The following configuration associates the commA community string with the RED routing instance and the commB community string with the BLUE routing instance. Only one context name can be mapped to a community, but multiple communities can be mapped to the same context name. A community string that is mapped to a context must have a defined view.
Step | Command |
---|---|
Set the SNMP version 1 and version 2 community as commA and context as RED. |
|
Set the SNMP version 1 and version 2 community as commB and context as BLUE. |
|
Associate all views with the commA SNMP community. |
|
Associate all views with the commB SNMP community. |
|
View the configuration. |
|
Associating a trap target with a routing instance
Step | Command |
---|---|
Set the SNMPv2 trap target with the 1.1.1.1 IP address on the RED routing instance. |
|
Define the test community configuration node. |
|
Commit the configuration. |
|
View the configuration. |
|
The following configuration associates an SNMPv3 trap target with IP address 2.2.2.2 on the RED routing instance.
Step | Command |
---|---|
Set the SNMPv3 trap target with the 2.2.2.2 IP address on the RED routing instance. |
|
Define the usr2 SNMPv3 user. |
|
Define a cleartext password to authenticate a user. |
|
Commit the configuration. |
|
View the configuration. |
|
Configuring an SNMP agent to listen on a routing instance
The following configuration shows how to configure an SNMP agent to listen for incoming requests from the RED routing instance.
Step | Command |
---|---|
Set an SNMP agent to listen for incoming requests from the RED routing instance. |
|
View the configuration. |
|