snmp-agent trap source ipv6

Function

The snmp-agent trap source ipv6 ipv6-address command is used to configure the SNMP trap IPv6 source address.

The undo snmp-agent trap source ipv6 command is used to clear the SNMP trap IPv6 source address.

By default, no source IPv6 address is configured to target IPv6 host for SNMP Trap.

Format

snmp-agent trap source ipv6 ipv6-address [ vpn-instance vpn-instance-name ]

undo snmp-agent trap source ipv6

Parameters

Parameter Description Value
ipv6-address

Specify source IPv6 address of snmp traps packet.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

vpn-instance vpn-instance-name

Specifies the name of a VPN instance.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

On a VPN network, use the VPN instance specified using vpn-instance, IP address, and security name together to identify a target host.

Views

System view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
snmp write

Usage Guidelines

Usage Scenario

When a device sends SNMP trap packets to an IPv6 destination host, you can run the snmp-agent trap source ipv6 command to specify the source IPv6 address for sending SNMP trap packets.

Precautions

To specify the source IPv4 address for sending traps to an IPv4 target host, run the snmp-agent trap source command to specify the source interface for sending traps. The device uses the IPv4 address of the source interface as the source IPv4 address for sending traps to the IPv4 destination host.

Example

# Specify the source IPv6 address 2001:db8:1::1 for sending SNMP trap packets.
<HUAWEI> system-view
[~HUAWEI] snmp-agent trap source ipv6 2001:db8:1::1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >