Cisco Cisco IOS Software Release 12.2(27)SBC

Seite von 44
Cisco Express Forwarding—SNMP CEF-MIB Support
  How to Configure Cisco Express Forwarding—SNMP CEF-MIB Support
16
Cisco IOS Release 12.2(31)SB2
Step 3
snmp-server community
 string [view view-name
[ro | rw] [ipv6 nacl] [access-list-number
Example:
Router(config)# snmp-server community public ro
Sets up the community access string to permit access to 
SNMP.
The string argument is a community string that consists 
of from 1 to 32 alphanumeric characters and functions 
much like a password, permitting access to the SNMP 
protocol. Blank spaces are not permitted in the 
community string.
 
The view view-name keyword-argument pair is the 
name of a previously defined view. The view defines 
the objects available to the SNMP community. 
The ro keyword specifies read-only access. Authorized 
management stations can only retrieve MIB objects.
The rw keyword specifies read-write access. 
Authorized management stations can retrieve and 
modify MIB objects. 
The ipv6 nacl keywords specify the IPv6 named access 
list. 
The access-list-number argument is an integer from 1 
to 99. It specifies a standard access list of IP addresses 
or a string (not to exceed 64 characters) that is the name 
of a standard access list of IP addresses allowed access 
to the SNMP agent. 
Alternatively, an integer from 1300 to 1999 that 
specifies a list of IP addresses in the expanded range of 
standard access list numbers. Devices at these 
addresses are allowed to use the community string to 
gain access to the SNMP agent. 
Note
The string argument (Step 3) and string2 argument 
(Step 4) provide a minimal level of security. It is 
advisable to provide the string for read-only access 
to others who wish only to view and not to modify 
the MIB objects, and retain the read-write access 
string for administrators only. The string2 argument 
(Step 4) should be different from the read-only 
string argument specified in this step.
Command or Action
Purpose