Step 1
configure terminal
Enter global configuration mode.
Step 2
snmp-server community string [view view-name] [ro | rw] [access-list-number]
Configure the community string.
- For string, specify a string that acts like a password and permits access to the SNMP protocol. You can configure one or more community strings of any length.
- (Optional) For view, specify the view record accessible to the community.
- (Optional) Specify either read-only (ro) if you want authorized management stations to retrieve MIB objects, or specify read-write (rw) if you want authorized management stations to retrieve and modify MIB objects. By default, the community string permits read-only access to all objects.
- (Optional) For access-list-number, enter an IP standard access list numbered from 1 to 99 and 1300 to 1999.
Step 3
access-list access-list-number {deny | permit} source [source-wildcard]
Step 4
end
Step 5
show running-config
Step 6
copy running-config startup-config
(Optional) Save your entries in the configuration file.
Post a Comment