< Home

ipv6 icmp receive

Function

The ipv6 icmp receive command enables the system to receive ICMPv6 messages with the local address as the destination address.

The undo ipv6 icmp receive command disables the system from receiving ICMPv6 messages with the local address as the destination address.

By default, the system receives ICMPv6 messages with the local address as the destination address.

Format

ipv6 icmp { icmpv6-type icmpv6-code | icmpv6-name | all } receive

undo ipv6 icmp { icmpv6-type icmpv6-code | icmpv6-name | all } receive

Parameters

Parameter Description Value

icmpv6-type

Specifies the type of ICMPv6 messages.

The value is an integer in the range from 0 to 255.

icmpv6-code

Specifies the code of ICMPv6 messages.

The value is an integer in the range from 0 to 255.

icmpv6-name

Specifies the name of ICMPv6 messages.

ICMPv6 messages are classified into the following types:

  • echo: Echo packet
  • echo-reply: Echo Reply packet
  • err-header-field: Packet with an error header
  • frag-time-exceeded: Fragmentation Timeout packet
  • hop-limit-exceeded: Packet whose hop count exceeds the limit
  • host-admin-prohib: Packet that is rejected by a host
  • host-unreachable: ICMPv6 Host Unreachable packet
  • neighbor-advertisement: Neighbor Advertisement packet
  • neighbor-solicitation: Neighbor Solicitation packet
  • network-unreachable: ICMPv6 Network Unreachable packet
  • packet-too-big: Packet Too Big packet
  • port-unreachable: ICMPv6 Port Unreachable packet
  • redirect: Redirected packets
  • router-advertisement: Router Advertisement packet
  • router-solicitation: Router Solicitation packet
  • unknown-ipv6-opt: Error packet with unknown options
  • unknown-next-hdr: Error packet with unknown next header

all

Indicates all ICMPv6 messages.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In normal cases, a switch can properly receive ICMPv6 messages. However, when network traffic load is heavy, host unreachable or port unreachable events frequently occur, the switch receives a large number of ICMPv6 messages, which burdens the network and degrades device performance. In addition, attackers usually use ICMPv6 error messages to probe the internal network topology.

To improve network performance and security, run the undo ipv6 icmp receive command to disable the system from receiving ICMPv6 Echo Reply packets, Host Unreachable packets, and Port Unreachable packets with the local address as the destination address.

Precautions

When the network is in good performance again, you can run the ipv6 icmp receive command to enable the system to receive ICMPv6 messages with the local address as the destination address.

After the undo ipv6 icmp receive command is run, main interfaces are disabled from processing these ICMPv6 messages. In addition, the system does not collect statistics on these messages that are received but collects statistics on discarded messages.

Example

# Disable the system from receiving ICMPv6 Echo packets with the local address as the destination address.

<HUAWEI> system-view
[HUAWEI] undo ipv6 icmp echo receive
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >