
Setting Allowed Host Information
101
CopperLink CL2300 User Manual
13
• SNMP Configuration
device(cfg)#snmp community public ro
device(cfg)#snmp community Not4evEryOne rw
Note
If no community is set on the CL2300, accessing any of the MIB objects is
not possible!
Setting Allowed Host Information
If a host has to access SNMP MIB objects on the CL2300, it explicitly needs the right to access the SNMP
agent. Therefore a host needs an entry, which allows accessing the CL2300. The host is identified by its IP
address and has to use a certain community string for security precautions.
Note
The community which is to be used as security name to access the MIB
objects has to be defined prior to the definition of allowed hosts.
This procedure describes adding a host that is allowed to access the MIB of this system.
Mode:
Configure
Step
Command
Purpose
1
device
(cfg)#snmp host
IP-address-of-device
security-
name
community
Configures a host that with IP address
IP-
address-of-device
can access the MIB,
using the security name
community
.
Use the no command option to remove a SNMP allowed host setting.
Example:
Setting allowed host information
In the following example the host with IP address
172.16.224.45
shall be able to access the MIB using commu-
nity
public
as security name.
device(cfg)#snmp host 172.16.224.45 security-name public
Specifying the Default SNMP Trap Target
An SNMP trap is a message that the SNMP agent sends to a network management station. For example, an
SNMP agent would send a trap when an interface's status has changed from up to down. The SNMP agent
must know the address of the network management station so that it knows where to send traps. It is possible
to define more than one SNMP trap target.
The SNMP message header contains a
community
field. The SNMP agent uses a defined community name,
which is inserted in the trap messages header sent to the target. In most cases the target is a NMS, which only
accepts a SNMP message header of a certain community.
This procedure describes how to define a SNMP trap target and enter community name.