No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Path/Connectivity Detection Configuration Commands

Path/Connectivity Detection Configuration Commands

NOTE:

Only CE8860EI, CE8850EI, CE7855EI, CE7850EI, CE6880EI, CE6870EI, CE6860EI, CE6856HI, CE6855HI, CE6851HI, CE6850HI, and CE6850U-HI support path detection.

Only CE8860EI, CE8850EI, CE7855EI, CE7850EI, CE6870EI, CE6860EI, CE6856HI, CE6855HI, CE6851HI, CE6850HI, and CE6850U-HI support connectivity detection.

ip path detection enable

Function

The ip path detection enable command enables the IPv4 path detection function.

The undo ip path detection enable command disables the IPv4 path detection function.

By default, the IPv4 path detection function is disabled.

Format

ip path detection enable

undo ip path detection enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To use the path detection function, a controller, such as Agile Controller (AC) is required. The controller sends path detection packets to detect the traffic path between any two VTEPs or VMs, and displays the detection result. The AC delivers the ip path detection enable command to the switch through NETCONF to enable path detection. The AC sends the Packet-out message carrying the path detection packet to the switch. The switch calculates the outbound interfaces based on MAC address or routing table, sends the outbound interface, inbound interface, and path detection packet to the controller, and sends the path detection packet out. The controller calculates the entire path through which traffic passes based on the information reported by the switch. If network traffic is interrupted, O&M personnel can quickly locate the faulty device.

Precautions

  • The IPv4 path detection function can detect only the traffic path between any two devices when no tunnel is configured or a VXLAN tunnel is configured.
  • After SVF is configured in a VXLAN, the path between different VMs' can not be detected.
  • After the path detection function is enabled on a VXLAN decapsulation device, this function may affect common TCP/UDP/ICMP packets encapsulated in VXLAN packets. As a result, the server may receive duplicate TCP/UDP/ICMP packets.

Example

# Enable the IPv4 path detection function.

<HUAWEI> system-view
[~HUAWEI] ip path detection enable

ip path detection packet-format

Function

The ip path detection packet-format command enables connectivity detection and sets the packet type for connectivity detection.

The undo ip path detection packet-format command restores the default setting.

By default, connectivity detection is disabled.

Format

ip path detection packet-format arp [ src-mac src-mac-address ] [ dst-mac dst-mac-address ] src-ip src-ip-address dst-ip dst-ip-address

ip path detection packet-format icmp src-ip src-ip-address dst-ip dst-ip-address

undo ip path detection packet-format arp [ src-mac src-mac-address ] [ dst-mac dst-mac-address ] src-ip src-ip-address dst-ip dst-ip-address

undo ip path detection packet-format icmp src-ip src-ip-address dst-ip dst-ip-address

Parameters

Parameter

Description

Value

arp

Sets the packet type for connectivity detection to ARP Request.

-

icmp

Sets the packet type for connectivity detection to ICMPv4 Echo Request.

-

src-mac src-mac-address

Sets the source MAC address as the detection flag.

The value is in H-H-H format, where H is a hexadecimal number of 1 to 4 digits.

dst-mac dst-mac-address

Sets the destination MAC address as the detection flag.

The value is in H-H-H format, where H is a hexadecimal number of 1 to 4 digits.

src-ip src-ip-address

Sets the source IPv4 address as the detection flag.

The value is in dotted decimal notation.

dst-ip dst-ip-address

Sets the destination IPv4 address as the detection flag.

The value is in dotted decimal notation.

src-ipv6 src-ipv6-address

Sets the source IPv6 address as the detection flag.

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

dst-ipv6 dst-ipv6-address

Sets the destination IPv6 address as the detection flag.

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

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To provide the connectivity detection function, the switch must work with a controller, such as Agile Controller (AC). The controller sends connectivity detection packets to detect the connectivity and packet loss rate between two devices, and displays the detection result.

The AC delivers two types of connectivity detection packets:
  • ICMPv4 Echo Request

    Used for IP ping in connectivity detection on the AC. It detects connectivity between two devices on a Layer 2 or Layer 3 IPv4 network. The AC uses NETCONF to deliver the ip path detection packet-format icmp src-ip src-ip-address dst-ip dst-ip-address configuration to the switch, and specifies source and destination IPv4 addresses as detection flags. The AC sends the Packet-out message carrying the ICMPv4 Echo Request packet to the switch. The source and destination IPv4 addresses of ICMPv4 Echo Request are used as detection flags. After receiving the ICMPv4 Echo Reply packet matching the ICMPv4 Echo Request packet, the switch encapsulates the ICMPv4 Echo Reply packet into a Packet-in message and sends the Packet-in message to the AC. If the AC receives the ICMPv4 Echo Reply packet within the timeout interval, the route between the source and destination IPv4 addresses is reachable. Otherwise, the route between the source and destination IPv4 addresses is unreachable.

  • ARP Request

    Used for MAC ping in connectivity detection on the AC. It detects connectivity between two devices only on a Layer 2 network. The AC uses NETCONF to deliver the ip path detection packet-format arp [ src-mac src-mac-address ] [ dst-mac dst-mac-address ] src-ip src-ip-address dst-ip dst-ip-address configuration to the switch, and specifies source and destination IPv4 addresses as detection flags. The AC sends the Packet-out message carrying the ARP Request packet to the switch. The source and destination IPv4 addresses of ARP Request are used as detection flags. After receiving the ARP Reply packet matching the ARP Request packet, the switch encapsulates the ARP Reply packet into a Packet-in message and sends the Packet-in message to the AC. If the AC receives the ARP Reply packet within the timeout interval, the route between the source and destination IPv4 addresses is reachable. Otherwise, the route between the source and destination IPv4 addresses is unreachable.

Precautions

  • After you configure connectivity detection on the AC, the AC automatically delivers connectivity detection configuration to the switch through NETCONF.

  • ARP Request packets can only be used for connectivity detection between two devices on a Layer 2 network. ICMPv6 Echo Request packets can only be used for connectivity detection between two VMs on an IPv6 over IPv4 VXLAN network. To detect connectivity between two devices on a Layer 3 IPv4 network, use ICMPv4 Echo Request packets.

  • The ip path detection packet-format icmp src-ip src-ip-address dst-ip dst-ip-address and ip path detection packet-format arp [ src-mac src-mac-address ] [ dst-mac dst-mac-address ] src-ip src-ip-address dst-ip dst-ip-address commands cannot be used together on the CE6870EI, and can be used together on other models.

Example

# Enable connectivity detection and set the packet type for connectivity detection to ARP Request. Set the source and destination IPv4 addresses as the detection flags. The switch identifies ARP Request packets based on the source and destination IPv4 addresses.

<HUAWEI> system-view
[~HUAWEI] ip path detection packet-format arp src-ip 10.1.1.1 dst-ip 10.2.2.2

# Enable connectivity detection and set the packet type for connectivity detection to ICMPv4 Echo Request. The switch identifies ICMPv4 Echo Request packets based on the source and destination IPv4 addresses.

<HUAWEI> system-view
[~HUAWEI] ip path detection packet-format icmp src-ip 10.1.1.1 dst-ip 10.2.2.2

# Enable connectivity detection and set the packet type for connectivity detection to ICMPv6 Echo Request. The switch identifies ICMPv6 Echo Request packets based on the source and destination IPv6 addresses.

<HUAWEI> system-view
[~HUAWEI] ip path detection packet-format icmpv6 src-ipv6 1::1 dst-ipv6 2::2
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 43130

Downloads: 328

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next