R3303-HP HSR6800 Routers MPLS Command Reference
72
Examples
# Configure a static LSP taking the local LSR as a transit LSR, and specify the LSP's name as bj-sh,
incoming interface as Serial 2/1/0, incoming label as 123, next hop address as 202.34.114.7, and
outgoing label as 253.
<Sysname> system-view
[Sysname] static-lsp transit bj-sh incoming-interface serial 2/1/0 in-label 123 nexthop
202.34.114.7 out-label 253
Related commands
• static-lsp egress
• static-lsp ingress
statistics
Use statistics to enable MPLS statistics collection for LSPs.
Use undo statistics to disable MPLS statistics collection for LSPs.
Syntax
statistics { ipv4 destination mask [ vpn-instance vpn-instance-name ] | ipv6 destination mask | static }
undo statistics { ipv4 destination mask [ vpn-instance vpn-instance-name ] | ipv6 destination mask |
static }
Default
The device does not collect MPLS statistics for any LSPs.
Views
MPLS view
Default command level
2: System level
Parameters
ipv4 destination mask: Collects statistics on the IPv4 LSP for a FEC. The destination mask argument
specifies a FEC by an IPv4 destination address and the mask length. The value range for the mask length
is 0 to 32.
vpn-instance vpn-instance-name: Collects statistics on LSPs of the specified VPN. The vpn-instance-name
argument specifies an MPLS L3VPN by its instance name, a case-sensitive string of 1 to 31 characters.
ipv6 destination mask: Collects statistics on the BGP-IPv6 LSP for a FEC. The destination mask argument
specifies a FEC by an IPv6 destination address and the mask length. The value range for the mask length
is 0 to 128.
static: Collects statistics on static LSPs and static CR-LSPs.
Examples
# Enable MPLS statistics collection for the LSP for FEC 2.2.2.2/32.
<Sysname> system-view
[Sysname] mpls
[Sysname-mpls] statistics ipv4 2.2.2.2 32










