If you do not intend to utilize SNMP, it is recommended that you delete both of the
default community strings. If there are no community strings, then SNMP management
access to the switch is disabled.
To prevent unauthorized access to the switch via SNMP, it is recommended that
you change the default community strings.
To configure a community string, complete the following steps:
1. From the Privileged Exec level global configuration mode prompt,type “snmp-
server community string mode,” where “string” is the community access string
and “mode” is rw (read/write) or ro (read only). Press <Enter>.
2. To remove an existing string, simply type “no snmp-server community string,”
where “string” is the community access string to remove. Press <Enter>.
Console(config)#snmp-server community PLANEX COMMUNICATIONS INC rw
Console(config)#snmp-server community private
Console(config)#
> Trap Receivers — You can also specify SNMP stations that are to receive
traps from the switch.
To configure a trap receiver, complete the following steps:
1. From the Privileged Exec level global configuration mode prompt, type “snmp-
server host host-address community-string,” where “host-address” is the IP
address for the trap receiver and “community-string” is the string associated
with that host. Press <Enter>.
2. In order to configure the switch to send SNMP notifications, you must enter at
least one snmp-server enable traps command. Type “snmp-server enable
traps type,” where “type” is either authentication or link-up-down. Press
<Enter>.
Console(config)#snmp-server enable traps link-up-down
Console(config)#
13