R0106-HP MSR Router Series Fundamentals Configuration Guide(V7)

72
Ste
p
Command
Remarks
2. Apply the ACL to an SNMP
community, group, or user.
SNMP community:
snmp-agent community { read |
write } community-name
[ mib-view view-name ] [ acl
acl-number | acl ipv6
ipv6-acl-number ] *
SNMPv1/v2c group:
snmp-agent group { v1 | v2c }
group-name [ read-view
view-name ] [ write-view
view-name ] [ notify-view
view-name ] [ acl acl-number | acl
ipv6 ipv6-acl-number ] *
SNMPv3 group:
snmp-agent group v3 group-name
[ authentication | privacy ]
[ read-view view-name ]
[ write-view view-name ]
[ notify-view view-name ] [ acl
acl-number | acl ipv6
ipv6-acl-number ] *
SNMPv1/v2c user:
snmp-agent usm-user { v1 | v2c }
user-name group-name [ acl
acl-number | acl ipv6
ipv6-acl-number ] *
SNMPv3 user:
snmp-agent usm-user v3
user-name group-name [ remote
{ ip-address | ipv6 ipv6-address }
[ vpn-instance
vpn-instance-name ] ] [ { cipher |
simple } authentication-mode
{ md5 | sha } auth-password
[ privacy-mode { aes128 | des56 }
priv-password ] ] [ acl acl-number |
acl ipv6 ipv6-acl-number ] *
For more information about SNMP,
see Network Management and
Monitoring Configuration Guide.
Configuration example
Network requirements
As shown in Figure 37, the device is running SNMP.
Configure the device to allow Host A and Host B to access the device through SNMP.