ipv6 icmp hop-limit-exceeded source-address ingress-interface

Function

The ipv6 icmp hop-limit-exceeded source-address ingress-interface command forcibly configures the IPv6 address of the inbound interface for forwarding packets as the source address of an ICMPv6 Time Exceeded message.

The undo ipv6 icmp hop-limit-exceeded source-address ingress-interface command restores the default configuration.

By default, the IPv6 address of the inbound interface for forwarding packets is not forcibly configured as the source address of an ICMPv6 Time Exceeded message.

Format

ipv6 icmp hop-limit-exceeded source-address ingress-interface

undo ipv6 icmp hop-limit-exceeded source-address ingress-interface

Parameters

None

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ip-stack write

Usage Guidelines

Usage Scenario

Tracert is used to test the path through which a packet is sent from a host to the destination. After receiving the packet, an intermediate device sends an ICMPv6 Time Exceeded message to the host. The host then identifies the device according to the source IPv6 address of the ICMPv6 Time Exceeded message. To easily observe the inbound interface of a device along the path, you can forcibly configure the IPv6 address of the inbound interface for forwarding packets as the source address of an ICMPv6 Time Exceeded message.

Precautions

If both the ipv6 icmp hop-limit-exceeded source-address ingress-interface and ipv6 icmp hop-limit-exceeded source-address commands are configured, the ipv6 icmp hop-limit-exceeded source-address command takes precedence over the ipv6 icmp hop-limit-exceeded source-address ingress-interface command.

After the ipv6 icmp hop-limit-exceeded source-address ingress-interface command is run, if a packet enters a device through a BAS interface, the device does not select an IP address from the address pool on the BAS interface.

Example

# Configure the IPv6 address of the inbound interface for forwarding packets as the source address of an ICMPv6 Time Exceeded message forcibly.
<HUAWEI> system-view
[~HUAWEI] ipv6 icmp hop-limit-exceeded source-address ingress-interface
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >