service snmp trap-source <addr>
Specifies the IP address of the source of SNMP traps.
By default, the system automatically selects the primary IP address of the interface facing the trap target.
- addr
- The IPv4 or IPv6 address of the source of SNMP traps.
This address is included as the source of SNMP traps in SNMP messages sent to an SNMP server. The address must be an address configured on a system interface.
Configuration mode
service {
snmp {
trap-source addr
}
}
Use this command to specify the IPv4 or IPv6 address of the source of SNMP traps.
Use the set form of this command to specify the IP address of the source of SNMP traps.
Use the delete form of this command to remove a trap-source address and have the system select the source address automatically.
Use the show form of this command to view the trap-source addresses.