54-15
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 54 Configuring SNMP Configuring SNMP
Limiting TFTP Servers Used Through SNMP
To limit the TFTP servers used for saving and loading configuration files through SNMP to the servers
specified in an access list, perform this task:
SNMP Examples
This example shows how to enable all versions of SNMP . The configurat ion permits any SNMP manager
to access all objects with read-only permissions using the community string public. This configuration
does not cause the switch to send any traps.
Switch(config)# snmp-server community public
Step 5 Switch# show running-config Verifies your entries.
Step 6 Switch# copy running-config
startup-config (Optional) Saves your entries in the configuration file.
Command Purpose
Command Purpose
Step 1 Switch# configure terminal Enters global configuration mode.
Step 2 Switch(config)# snmp-server
tftp-server-list access-list-number Limits TFTP servers used for configuration file copies through
SNMP to the servers in the access list.
For access-list-number, enter an IP standard access list numbered
from 1 to 99 and 1300 to 1999.
Step 3 Switch(config)# access-list
access-list-number {deny | permit}
source [source-wildcard]
Creates a standard access list, repeating the command as many
times as necessary.
For access-list-number, enter the access list number specified
in Step 2.
The deny keyword denies access if the conditions are matched.
The permit keyword permits access if the conditions are
matched.
For source, enter the IP address of the TFTP servers that can
access the switch.
(Optional) For source-wildcard, enter the wildcard bits, in
dotted decimal notation, to be applied to the source. Place ones
in the bit positions that you want to ignore.
Note The access list is always terminated by an implicit deny
statement for everything.
Step 4 Switch(config)# end Returns to privileged EXEC mode.
Step 5 Switch# show running-config Verifies your entries.
Step 6 Switch# copy running-config
startup-config (Optional) Saves your entries in the configuration file.