For SNMPv1 or SNMPv2c packets, you must assign security names to groups at the [edit snmp v3 vacm security-to-group] hierarchy level and you must associate a security name with an SNMP community.
Use the following configuration statements to configure SNMPv1 or SNMPv2c communities for the VACM:
- snmp v3 snmp-community community-index {
- community-name community-name;
- security-name security-name;
- address address;
- }
To configure the community:
- [edit]
- user@host# edit snmp v3 snmp-community community-index
Unique index that identifies an SNMP community.
- [edit snmp v3 snmp-community community-index]
- user@host# set community-name community-name
If a community name is not specified, the community index is used.
- [edit snmp v3 snmp-community community-index]
- user@host# set security-name security-name
- [edit snmp v3 snmp-community community-index]
- user@host# set address address
If an address is not specified, all clients are authorized to use the community.
- [edit snmp v3 snmp-community community-index]
- user@host# show