R3102-R3103-HP 6600/HSR6600 Routers MPLS Command Reference Guide

215
Examples
# Set the MPLS L2VPN MTU to 1000.
<Sysname> system-view
[Sysname] mpls l2vpn vpn1
[Sysname-mpls-l2vpn-vpn1] mtu 1000
ping lsp pw (for MPLS L2VPN)
Use ping lsp pw to check the connectivity of a Martini VC.
Syntax
ping lsp [ -a source-ip | -c count | -exp exp-value | -h ttl-value | -m wait-time | -r reply-mode | -s
packet-size | -t time-out | -v ] * pw ip-address pw-id pw-id
Views
Any view
Default command level
0: Visit level
Parameters
-a source-ip: Specifies the source IP address of Echo Request messages.
-c count: Specifies the number of request messages to be sent. The value range for the count argument is
1 to 4294967295, and the default is 5.
-exp exp-value: Specifies the EXP value for Echo Request messages. The value range for the exp-value
argument is 0 to 7, and the default is 0.
-h ttl-value: Specifies the TTL value for Echo Request messages. The value range for the ttl-value argument
is 1 to 255, and the default is 255.
-m wait-time: Specifies the interval for sending Echo Request messages. The value range for the wait-time
argument is 1 to 10000 milliseconds, and the default is 200 milliseconds.
-r reply-mode: Specifies the reply mode of a receiver in response to an Echo Request message. The
reply-mode argument can be 1 or 2 where 1 means "Do not respond" and 2 means "Respond by using
a UDP packet." The default is 2.
-s packet-size: Specifies the payload length of Echo Request messages. The value range for the
packet-size argument is 65 to 8100 bytes, and the default is 100 bytes.
-t time-out: Specifies the timeout interval for waiting for the response to an echo request message. The
value range for the time-out argument is 0 to 65535 milliseconds, and the default is 2000 milliseconds.
-v: Displays detailed response information.
pw ip-address: Specifies the IP address of a peer PE.
pw-id pw-id: Specifies the ID of the PW to the peer PE, in the range of 1 to 4294967295.
Examples
# Check the connectivity of the VC 301 to peer PE 3.3.3.9.
<Sysname> ping lsp pw 3.3.3.9 pw-id 301
LSP Ping FEC: FEC 128 PSEUDOWIRE (NEW) 3.3.3.9 301 : 100 data bytes, press CTRL_C to break
Reply from 100.1.2.1: bytes=100 Sequence=0 time = 31 ms