The snmp-agent protocol source-interface command configures a source interface for receiving and responding to NM station requests.
The undo snmp-agent protocol source-interface command restores the default configuration.
By default, the source interface is not configured for receiving and responding to NM station requests.
snmp-agent protocol source-interface interface-type interface-number
undo snmp-agent protocol source-interface
Parameter | Description | Value |
---|---|---|
interface-type interface-number |
Specifies an interface type and number. |
- |
Usage Scenario
By default, a source interface is randomly selected for receiving and responding to NM station requests, which is inconvenient for unified data management. To resolve this problem, run the snmp-agent protocol source-interface command to configure a source interface for receiving and responding to NM station requests.
Prerequisites
The interface to be configured as the source interface must have been created, and a valid IP address must have been assigned to this interface. If the interface to be configured as the source interface is not created or a valid IP address is not assigned to the interface, the snmp-agent protocol source-interface command will not take effect. If a valid IP address is assigned to the interface, the snmp-agent protocol source-interface command will take effect automatically.
Precautions
If the interface on which the snmp-agent protocol source-interface command is configured is deleted, or an address is changed or deleted on the interface, SNMP configurations will not be affected.
After SNMP is bound to the source interface, SNMP listens only this interface, through which the NMS communicates with the device. If the source interface or its IP address is deleted, SNMP will stop receiving IP packets, and therefore communication between the NMS and devices will interrupt. After the source interface's IP address is changed, the NMS can communicate with devices only through the new IP address.