[Contents] [Prev] [Next] [Index] [Report an Error]

# Associating Security Names with a Community

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:

1. From configuration mode, access the configuration statement that configures the community.
   `
   [edit]
   user@host# edit snmp v3 snmp-community community-index
   `

   Unique index that identifies an SNMP community.

2. (Optional) Specify the community string for the SNMPv1 or SNMPv2c 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.

3. Specify the VACM security name to associate with the community string.
   `
   [edit snmp v3 snmp-community community-index]
   user@host# set security-name security-name
   `
4. (Optional) Specify the IP address or subnet of the SNMP clients that are authorized to use this community.
   `
   [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.

5. (Optional) Verify your configuration.
   `
   [edit snmp v3 snmp-community community-index]
   user@host# show
   `

#### Related Topics

- Configuring Access Control for Communities
- Defining Access Privileges for an SNMP Group
- Associating Security Names with a Community (C-Web Interface)

[Contents] [Prev] [Next] [Index] [Report an Error]