< 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.

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

By default, the source interface is not configured for receiving and responding to NM station requests.

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.

Example

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