service snmp listen-address <addr>
Specifies the IP address on which the SNMP agent listens for requests.
The SNMP agent listens on all addresses on port 161.
- addr
- Optional. Multi-node. The IPv4 or IPv6 address on which the SNMP agent listens for requests.
You can specify multiple listening addresses for SNMP by creating multiple listen-address configuration nodes.
- port
- The UDP port used for listening. The default port is 161.
Configuration mode
service {
snmp {
listen-address addr {
port port
}
}
}
Use this command to specify the IPv4 or IPv6 address and port on which the SNMP agent listens for requests.
Use the set form of this command to specify listen-address parameters.
Use the delete form of this command to remove listen-address parameters.
Use the show form of this command to view the listen-address configuration.