Configure SNMPv1/v2
Configuration Condition
Before configuring SNMPv1/v2, first complete the following task:
- Configure the link-layer protocol, ensuring the normal communication of the link layer
- Configure the IP address of the interface, making the network layer of the neighboring nodes reachable
Create SNMP Community Name
SNMPv1/SNMPv2c adopts the security scheme based on the community name. SNMP community name can be regarded as the password between NMS and SNMP proxy, that is to say, SNMP proxy only accepts the management operations of the same community name and the SNMP from different community name is not responded and is dropped directly.
Table 8–7 Configure the community name
Step
|
Command
|
Description
|
Enter the global configuration mode
|
config terminal
|
-
|
Configure the community name of the SNMP proxy
|
snmp-server community community-name [ view view-name ] { ro | rw } [ access-list-number | access- list-name]
|
Mandatory
By default, the community name is public.
|