08-MPLS Command Reference

HomeSupportSwitchesH3C S12500 Switch SeriesReference GuidesCommand ReferencesH3C S12500 Command Reference-Release7128-6W71008-MPLS Command Reference
06-MPLS OAM commands
Title Size Download
06-MPLS OAM commands 62.58 KB

MPLS OAM commands

ping mpls ipv4

Use ping mpls ipv4 to test MPLS LSP connectivity for IPv4 prefixes.

Syntax

ping mpls [ -a source-ip | -c count | -exp exp-value | -h ttl-value | -m wait-time | -r reply-mode | -s packet-size | -t time-out | -v ] * ipv4 dest-addr mask-length [ destination  destination-ip-addr-header ]

Views

Any view

Predefined user roles

network-admin

mdc-admin

Parameters

-a source-ip: Specifies the source address for the MPLS echo request packets to be sent. If you do not specify this option, the primary IP address of the outgoing interface is the source address of the MPLS echo requests.

-c count: Specifies the number of MPLS echo request packets to be sent. The value range is 1 to 4294967295, and the default is 5.

-exp exp-value: Specifies the EXP value for echo request packets. The value range is 0 to 7, and the default is 0.

-h ttl-value: Specifies the TTL value for MPLS echo request packets. The value range is 1 to 255, and the default is 255.

-m wait-time: Specifies the interval for sending MPLS echo request packets. The value range is 1 to 10000 milliseconds, and the default is 200 milliseconds.

-r reply-mode: Specifies the reply mode of the receiver in response to MPLS echo request packets. The reply-mode argument can be 1 or 2, where 1 means "Do not reply" and 2 means "Reply by using a UDP packet." The default is 2.

-s packet-size: Specifies the length (excluding the IP header and UDP header) of the MPLS echo request packets. The value for the packet-size argument is 65 to 8100 bytes, and the default is 100 bytes.

-t time-out: Specifies the timeout interval for the reply to an MPLS echo request. The value range is 0 to 65535 milliseconds, and the default is 2000 milliseconds.

-v: Displays detailed reply information. If you do not specify this keyword, the command displays brief reply information.

ipv4 dest-addr mask-length: Specifies an FEC by an IPv4 destination address and the mask length. The value range for the mask-length argument is 0 to 32.

destination destination-ip-addr-header: Specifies the destination address in the IP header of an MPLS echo request. The destination address must be an address on subnet 127.0.0.0/8—any local loopback address. The default destination address is 127.0.0.1.

Examples

# Test LSP connectivity to destination 3.3.3.9/32.

<Sysname> ping mpls ipv4 3.3.3.9 32

MPLS Ping FEC: 3.3.3.9/32 : 100 data bytes

100 bytes from 100.1.2.1: Sequence=1 time=49 ms

100 bytes from 100.1.2.1: Sequence=2 time=44 ms

100 bytes from 100.1.2.1: Sequence=3 time=60 ms

100 bytes from 100.1.2.1: Sequence=4 time=60 ms

100 bytes from 100.1.2.1: Sequence=5 time=76 ms

 

--- FEC: 3.3.3.9/32 ping statistics ---

5 packets transmitted, 5 packets received, 0.0% packet loss

round-trip min/avg/max = 44/57/76 ms

<Sysname> ping mpls -v ipv4 3.3.3.9 32

MPLS Ping FEC: 3.3.3.9/32 : 100 data bytes 

100 bytes from 100.1.2.1: Sequence=1 time=49 ms ReturnCode 3(1)

100 bytes from 100.1.2.1: Sequence=2 time=44 ms ReturnCode 3(1)

100 bytes from 100.1.2.1: Sequence=3 time=60 ms ReturnCode 3(1)

100 bytes from 100.1.2.1: Sequence=4 time=60 ms ReturnCode 3(1)

100 bytes from 100.1.2.1: Sequence=5 time=76 ms ReturnCode 3(1)

 

--- FEC: 3.3.3.9/32 ping statistics ---

5 packets transmitted, 5 packets received, 0.0% packet loss

round-trip min/avg/max = 44/57/76 ms

Table 1 Command output

Field

Description

MPLS Ping FEC: 3.3.3.9/32 : 100 data bytes

Tests connectivity of the LSP for FEC 3.3.3.9/32 by sending 100-byte MPLS echo requests.

100 bytes from 100.1.2.1

Received a 100-byte reply from 100.1.2.1.

Sequence

Sequence number of the reply, for determination of packet loss, disorder, or duplicate.

time

Packet round-trip delay.

ReturnCode

Return code. The number in parentheses represents a sub return-code.

FEC: 3.3.3.9/32 ping statistics

LSP inspection statistics.

5 packets transmitted

Number of MPLS echo requests transmitted.

5 packets received

Number of MPLS echo replies received.

0.0% packet loss

Percentage of the unreplied packets to the total request packets.

round-trip min/avg/max

Minimum, average, and maximum round-trip delay.

 

Related commands

tracert mpls ipv4

tracert mpls ipv4

Use tracert mpls ipv4 to trace MPLS LSPs (from the ingress node to the egress node) for IPv4 prefixes.

Syntax

tracert mpls [ -a source-ip | -exp exp-value | -h ttl-value | -r reply-mode | -t time-out ] * ipv4 dest-addr mask-length [ destination destination-ip-addr-header ]

Views

Any view

Predefined user roles

network-admin

mdc-admin

Parameters

-a source-ip: Specifies the source address for the MPLS echo request packets to be sent. If you do not specify this option, the primary IP address of the outgoing interface is the source address of the MPLS echo requests.

-exp exp-value: Specifies the EXP value for echo request packets. The value range is 0 to 7, and the default is 0.

-h ttl-value: Specifies the maximum TTL value for MPLS echo request packets, namely, the maximum number of hops to be inspected. The value range for the ttl-value argument is 1 to 255, and the default is 30.

-r reply-mode: Specifies the reply mode of the receiver in response to MPLS echo request packets. The reply-mode argument can be 1 or 2, where 1 means "Do not reply" and 2 means "Reply by using a UDP packet." The default is 2.

-t time-out: Specifies the timeout interval for the reply to an MPLS echo request. The value range is 0 to 65535 milliseconds, and the default is 2000 milliseconds.

ipv4 dest-addr mask-length: Specifies an FEC by an IPv4 destination address and the mask length. The value range for the mask-length argument is 0 to 32.

destination destination-ip-addr-header: Specifies the destination address in the IP header of an MPLS echo request. The destination address must be an address on subnet 127.0.0.0/8—any local loopback address.

Examples

# Trace the path that the LSP (for FEC 3.3.3.9/32) traverses from the ingress node to the egress node.

<Sysname> tracert mpls ipv4 3.3.3.9 32

MPLS Trace Route FEC: 3.3.3.9/32

  TTL   Replier            Time    Type      Downstream

  0                                Ingress   10.4.5.1/[1025]

  1     10.4.5.1           1 ms    Transit   100.3.4.1/[1024]

  2     100.1.4.2          63 ms   Transit   100.1.2.1/[3]

  3     100.1.2.1          129 ms  Egress

Table 2 Output description

Field

Description

TTL

Number of hops.

Replier

Address of the LSR that replied the request.

Time

Time used to receive the reply, in milliseconds.

Type

LSR type: ingress, transit, or egress.

Downstream

Address of the downstream LSR and the label assigned by the downstream LSR.

 

Related commands

ping mpls ipv4

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网