< Home

snmp-agent protocol source-interface

Function

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.

Format

snmp-agent protocol source-interface interface-type interface-number

undo snmp-agent protocol source-interface

Parameters

Parameter Description Value

interface-type interface-number

Specifies an interface type and number.

-

Views

System view

Default Level

3: Management level

Usage Guidelines

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.

Example

# Configure loopback 1 as a source interface for receiving and responding to NM station requests.
<HUAWEI> system-view
[HUAWEI] snmp-agent protocol source-interface Loopback 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >