The snmp-agent trap source command specifies the source address of a specified interface for trap messages.
The undo snmp-agent trap source command deletes the source address of an interface for trap messages.
By default, the source address of trap messages is not specified.
Parameter | Description | Value |
---|---|---|
interface-name |
Specifies the name of the source interface that sends trap messages. |
- |
interface-type |
Specifies the type of the source interface that sends trap messages. |
- |
interface-number |
Specifies the number of the source interface that sends trap messages. |
- |
Usage Scenario
To specify the type and number of a source interface with a specific IP address used to send SNMP trap messages, run the snmp-agent trap source command.
Configuration Impact
Trap messages carry IP addresses of the outbound interfaces, and the receivers can identify the source addresses.
Precautions
After the snmp-agent trap source command is run, the private VPN where the source interface resides is automatically bound to the interface.
Rules for a destination host to select a VPN