snmp-client

Restricts SNMP access to a host with the specified IPv4 or IPV6 address.
Syntax
snmp-client {ip-address | ipv6 ipv6-address }
no snmp-client {ip-address | ipv6 ipv6-address }
Command Default

SNMP access is not restricted.

Parameters
ip-address
The IPv4 address of the host to which the SNMP access is restricted.
ipv6 ipv6-address
Specifies the IPv6 address of the host to which the SNMP access is restricted.
Modes

Global configuration mode

Usage Guidelines

You can specify only one IP address with one command. However, you can enter the command ten times to specify up to ten IP addresses.

The no form of the command removes the SNMP access restriction.

Examples

The following example shows how to allow SNMP access only to the host with IP address 192.168.10.1.

device(config)# snmp-client 192.168.10.1