Using Simple Network Management Protocol
© Copyright Lenovo 2016
ENOS provides Simple Network Management Protocol (SNMP) version 1, version
2, and version 3 support for access through any network management software,
such as IBM Director or HP‐OpenView.
Note: SNMP read and write functions are enabled by default. For best security
practices, if SNMP is not needed for your network, it is recommended that you
disable these functions prior to connecting the switch to the network.
To access the SNMP agent on the G8264, the read and write community strings on
the SNMP manager must be configured to match those on the switch. The default
read community string on the switch is public and the default write community
string is private.
The read and write community strings on the switch can be configured using the
following commands:
RS G8264(config)# snmpserver readcommunity <1‐32 characters>
‐and‐
RS G8264(config)# snmpserver writecommunity <1‐32 characters>
The SNMP manager must be able to reach any one of the IP interfaces on the
switch.
For the SNMP manager to receive the SNMPv1 traps sent out by the SNMP agent
on the switch, configure the trap host on the switch with the following commands:
RS G8264(config)# snmpserver trapsource <trap source IP interface>
RS G8264(config)# snmpserver host <IPv4 address> <trap host community string>
To restrict SNMP access to specific IPv4 subnets, use the following commands:
RS G8264(config)# access managementnetwork <IPv4 address> <subnet mask> snmpro
‐and‐
RS G8264(config)# access managementnetwork <IPv4 address> <subnet mask> snmprw
For IPv6 networks, use:
RS G8264(config)# access managementnetwork6 <IPv6 address> <IPv6 prefix length>
snmpro
‐and‐
RS G8264(config)# access managementnetwork6 <IPv6 address> <IPv6 prefix length>
snmprw
Note: Subnets allowed for SNMP read‐only access must not overlap with subnets
allowed for SNMP read‐write access.
For more information on SNMP usage and configuration, see Chapter 41, "Simple
Network Management Protocol."
Chapter 1: Switch Administration
43