HP 12500 Command Reference Manual

HP 12500 Routing Switch Series
MPLS
Command Reference
Part number: 5998-3428
Document version: 6W710-20121130
Legal and notice information
© Copyright 2012 Hewlett-Packard Development Company, L.P.
No part of this documentation may be reproduced or transmitted in any form or by any means without prior written consent of Hewlett-Packard Development Company, L.P.
The information contained herein is subject to change without notice.
HEWLETT-PACKARD COMPANY MAKES NO WARRANTY OF ANY KIND WITH REGARD TO THIS MATERIAL, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Hewlett-Packard shall not be liable for errors contained herein or for incidental or consequential damages in connection with the furnishing, performance, or use of this material.
The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein.

Contents

Basic MPLS commands ············································································································································································ 1
display mpls forwarding ilm ·························································································································································· 1 display mpls forwarding nhlfe ······················································································································································ 2 display mpls interface ······································································································································································· 4 display mpls label ··············································································································································································· 5 display mpls lsp ··················································································································································································· 6 display mpls lsp statistics ······························································································································································ 10 display mpls nid ················································································································································································ 11 display mpls summary ···································································································································································· 12 display mpls statistics ····································································································································································· 13 mpls enable ························································································································································································ 15 mpls label advertise ········································································································································································ 16 mpls lsr-id ···························································································································································································· 17 mpls mtu ······························································································································································································ 17 mpls ttl expiration enable ····························································································································································· 18 mpls ttl propagate ··········································································································································································· 19
Static LSP commands ············································································································································································· 21
display mpls static-lsp ···································································································································································· 21 static-lsp egress ················································································································································································ 21 static-lsp ingress ··············································································································································································· 22 static-lsp transit················································································································································································· 23
LDP commands ························································································································································································ 25
accept-label ························································································································································································ 25 advertise-label ··················································································································································································· 26 backoff ·································································································································································································· 27 display mpls ldp discovery ··························································································································································· 28 display mpls ldp fec········································································································································································· 30 display mpls ldp interface ····························································································································································· 33 display mpls ldp lsp ········································································································································································· 34 display mpls ldp parameter ························································································································································· 35 display mpls ldp peer ····································································································································································· 36 display mpls ldp summary ···························································································································································· 40 graceful-restart ·················································································································································································· 41 graceful-restart timer ······································································································································································ 42 label-distribution ·············································································································································································· 43 loop-detect ························································································································································································· 44 lsp-trigger ···························································································································································································· 45 lsr-id ······································································································································································································· 46 maxhops ······························································································································································································· 47 md5-authentication ········································································································································································ 48 mpls ldp ······························································································································································································· 49 mpls ldp enable ················································································································································································ 49 mpls ldp timer ··················································································································································································· 50 mpls ldp transport-address ·························································································································································· 52 pv-limit ································································································································································································· 53 reset mpls ldp ···················································································································································································· 54 session protection ············································································································································································ 55
i
targeted-peer ····················································································································································································· 56 vpn-instance ······················································································································································································· 57
MPLS L3VPN commands ······································································································································································ 59
description (VPN instance view) ················································································································································· 59 display bgp group vpnv4 ······························································································································································ 59 display bgp peer vpnv4 ································································································································································· 61 display bgp routing-table ipv4 unicast inlabel ···················································································································· 64 display bgp routing-table ipv4 unicast outlabel ················································································································· 65 display bgp routing-table vpnv4 ··············································································································································· 66 display bgp routing-table vpnv4 advertise-info ·················································································································· 71 display bgp routing-table vpnv4 as-path-acl ······················································································································· 72 display bgp routing-table vpnv4 community-list ··············································································································· 73 display bgp routing-table vpnv4 inlabel ································································································································ 74 display bgp routing-table vpnv4 outlabel ····························································································································· 75 display bgp routing-table vpnv4 peer ····································································································································· 76 display bgp routing-table vpnv4 statistics ····························································································································· 78 display ip vpn-instance ·································································································································································· 79 domain-id ···························································································································································································· 80 export route-policy ·········································································································································································· 81 ext-community-type ······································································································································································· 82 import route-policy ········································································································································································· 83 ip binding vpn-instance ································································································································································· 84 ip vpn-instance (system view) ····················································································································································· 85 ipv4-family (VPN instance view) ················································································································································· 86 ipv4-family vpnv4 ············································································································································································· 86 nesting-vpn ························································································································································································· 87 peer next-hop-invariable ······························································································································································ 88 peer upe ······························································································································································································· 89 peer upe route-policy ····································································································································································· 89 policy vpn-target ·············································································································································································· 90 refresh bgp vpnv4 ············································································································································································ 91 reserve-vlan (VPN instance view)··············································································································································· 92 reset bgp vpnv4 ················································································································································································ 93 route-distinguisher (VPN instance view) ································································································································ 94 route-tag ······························································································································································································ 95 routing-table limit ············································································································································································ 96 rr-filter ··································································································································································································· 97 tnl-policy (VPN instance view/IPv4 VPN view/IPv6 VPN view) ······················································································ 98 vpn popgo ··························································································································································································· 99 vpn-instance-capability simple ················································································································································ 100 vpn-target (VPN instance view/IPv4 VPN view/IPv6 VPN view)················································································· 100
IPv6 MPLS L3VPN commands ························································································································································· 103
display bgp group vpnv6 ··························································································································································· 103 display bgp peer vpnv6 ······························································································································································ 104 display bgp routing-table vpnv6 ············································································································································ 108 display bgp routing-table vpnv6 advertise-info ··············································································································· 111 display bgp routing-table vpnv6 as-path-acl ···················································································································· 112 display bgp routing-table vpnv6 community-list ············································································································ 113 display bgp routing-table vpnv6 inlabel ····························································································································· 115 display bgp routing-table vpnv6 outlabel ·························································································································· 116 display bgp routing-table vpnv6 peer ·································································································································· 117 display bgp routing-table vpnv6 statistics ·························································································································· 118 ipv6-family (VPN instance view) ·············································································································································· 119
ii
ipv6-family vpnv6 ·········································································································································································· 120 policy vpn-target ··········································································································································································· 120 refresh bgp vpnv6 ········································································································································································· 121 reset bgp vpnv6 ············································································································································································· 122 rr-filter ································································································································································································ 122
MPLS L2VPN commands ··································································································································································· 124
ac interface ······················································································································································································· 124 connection ······················································································································································································· 125 control-word enable ···································································································································································· 126 description ······················································································································································································· 127 display l2vpn ldp ··········································································································································································· 127 display l2vpn forwarding ···························································································································································· 129 display l2vpn interface ································································································································································ 132 display l2vpn pw ············································································································································································ 133 display l2vpn pw-class ································································································································································ 135 display l2vpn service-instance ················································································································································· 136 display l2vpn xconnect-group ················································································································································· 138 encapsulation ·················································································································································································· 139 l2vpn enable ···················································································································································································· 140 mtu ······································································································································································································ 141 peer ····································································································································································································· 142 pw-class ····························································································································································································· 143 pw-type ····························································································································································································· 144 service-instance ············································································································································································· 145 shutdown ·························································································································································································· 146 xconnect-group ············································································································································································· 146
MPLS OAM commands ······································································································································································ 148
ping mpls ipv4 ················································································································································································ 148 tracert mpls ipv4 ············································································································································································ 150
Index ·········································································································································································································· 152
iii

Basic MPLS commands

The switch operates in IRF or standalone (the default) mode. For more information about IRF, see IRF Configuration Guide.

display mpls forwarding ilm

Use display mpls forwarding ilm to display Incoming Label Map (ILM) entries.
Syntax
In standalone mode:
display mpls forwarding ilm [ label ] slot slot-number
In IRF mode:
display mpls forwarding ilm [ label ] chassis chassis-number slot slot-number
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
label: Displays the ILM entry with the specified incoming label. The value range for the incoming label is 16 to 1000000. If you do not specify an incoming label, the command displays information about all ILM entries on the specified card.
slot slot-number: Specifies a card by its slot number. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The
chassis-number argument specifies the ID of the IRF member device, and the slot-number argument specifies the number of the slot that holds the card. (In IRF mode.)
Usage guidelines
An ILM entry records the label operation type, outgoing label, and other forwarding information. After an LSR receives a labeled packet, it identifies the ILM entry that matches the top label of the packet, performs the specified label operation, and forwards the packet.
Examples
# Display the ILM entry with incoming label 30.
<Sysname> display mpls forwarding ilm 30 Flags: T - Forwarded through a tunnel N - Forwarded through the outgoing interface to the nexthop IP address B - Backup forwarding information A - Active forwarding information
1
InLabel Oper VRF Flag SwapLabel Forwarding Info
-------------------------------------------------------------------------------­30 SWAP 0 T 1300 1024
# Display all ILM entries.
<Sysname> display mpls forwarding ilm Total ILM entries: 3
Flags: T - Forwarded through a tunnel N - Forwarded through the outgoing interface to the nexthop IP address B - Backup forwarding information A - Active forwarding information
InLabel Oper VRF Flag SwapLabel Forwarding Info
-------------------------------------------------------------------------------­30 SWAP 0 T 1300 1024 1279 POP 0 - - ­1407 SWAP 0 NA 1271 GE3/0/3 50.2.0.2 NB 1270 Tun0 0.0.0.0
Table 1 Command output
Field Description
Total ILM entries Total number of ILM entries.
InLabel Incoming label.
Operation type:
Oper
POP—Pops the label.
POPGO—Pops the label and forwards the packet to another tunnel.
SWAP—Swaps the label.
VRF Index of a VPN instance.
Forwarding flag:
T—Forwarded through a tunnel.
Flag
N—Forwarded through the outgoing interface to the nexthop IP
address.
B—Backup forwarding information.
A—Active forwarding information.
SwapLabel Outgoing label value.
Forwarding information:
When the forwarding flag is N, the forwarding information records the
Forwarding Info
outgoing interface and the next hop.
When the forwarding flag is T, the forwarding information records the
NID.

display mpls forwarding nhlfe

Use display mpls forwarding nhlfe to display Next Hop Label Forwarding Entry (NHLFE) entries.
2
Syntax
In standalone mode:
display mpls forwarding nhlfe [ nid ] slot slot-number
In IRF mode:
display mpls forwarding nhlfe [ nid ] chassis chassis-number slot slot-number
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
nid: Displays the NHLFE entry with the specified NID. The value range for the NID is 0 to 1000000. If you do not specify an NID, the command displays information about all NHLFE entries on the specified card.
slot slot-number: Specifies a card by its slot number. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The
chassis-number argument specifies the ID of the IRF member device, and the slot-number argument specifies the number of the slot that holds the card. (In IRF mode.)
Usage guidelines
An NHLFE entry records label forwarding information, such as the outgoing label and outgoing interface. NHLFE entries are mainly used to add multiple labels to packets. To add multiple labels to a packet, an LSR first obtains the bottom label and NID in the matching FIB or ILM entry, and then obtains the outer label in the NHLFE entry identified by the NID.
Examples
# Display the NHLFE entry with NID 2048.
<Sysname> display mpls forwarding nhlfe 2048 Flags: T - Forwarded through a tunnel N - Forwarded through the outgoing interface to the nexthop IP address B - Backup forwarding information A - Active forwarding information
NID Tnl-Type Flag OutLabel Forwarding Info
-------------------------------------------------------------------------------­2048 LSP NA 2025 GE3/0/2 10.11.112.26
# Display all NHLFE entries.
<Sysname> display mpls forwarding nhlfe Total NHLFE entries: 5
Flags: T - Forwarded through a tunnel N - Forwarded through the outgoing interface to the nexthop IP address
3
B - Backup forwarding information A - Active forwarding information
NID Tnl-Type Flag OutLabel Forwarding Info
-------------------------------------------------------------------------------­10 - TA - 2049 20 - TA - 2050 2048 LSP NA 2025 GE3/0/2 10.11.112.26 2049 LSP NA 3024 GE3/0/2 10.11.112.26 TB 3026 20 2050 LSP NA 3025 GE3/0/1 10.11.113.26
Table 2 Command output
Field Description
Total NHLFE entries Total number of NHLFE entries.
NID NHLFE entry index.
Tnl-Type
Flag
OutLabel Outgoing label.
Forwarding Info

display mpls interface

Use display mpls interface to display MPLS interface information, including the interface name, interface status, and interface MPLS MTU.
Syntax
Tunnel type: LSP, GRE, or CRLSP.
If the tunnel type is an invalid value, this field displays a hyphen (-).
Forwarding flag:
T—Forwarded through a tunnel.
N—Forwarded through the outgoing interface to the nexthop IP
address.
B—Backup forwarding information.
A—Active forwarding information.
Forwarding information:
When the forwarding flag is N, the forwarding information records the
outgoing interface and the next hop.
When the forwarding flag is T, the forwarding information records the
NID.
display mpls interface [ interface-type interface-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
4
mdc-operator
Parameters
interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, the command displays MPLS information for all MPLS-enabled interfaces.
Examples
# Displays all MPLS interfaces.
<Sysname> display mpls interface Interface Status MPLS MTU GE3/0/1 Up 1514 GE3/0/2 Up 1514
The MPLS MTU of an interface is in bytes.
Related commands
mpls enable
mpls mtu

display mpls label

Use display mpls label to display MPLS label usage information.
Syntax
display mpls label { label-value1 [ to label-value2 ] | all }
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
label-value1: Specifies a label in the range of 16 to 1000000. If used with the label-value2 argument, the label-value1 argument represents the start label of a label range.
to label-value2: Specifies the end label in the range of 16 to 1000000. If you specify a label range by using the label-value1 argument and the to label-value2 option, the command displays usage information for the specified range of labels.
all: Specifies all labels.
Examples
# Display the usage information of labels 900 through 902.
<Sysname> display mpls label 900 to 902 Label Owner State 900 - Idle 901 - Idle 902 LDP Alloc
5
Table 3 Command output
Field Description
Label Label value.
Owner
State

display mpls lsp

Use display mpls lsp to display LSP information.
Syntax
display mpls lsp [ egress | in-label label-value | ingress | outgoing-interface interface-type
interface-number | protocol { bgp | ldp | local | rsvp-te | static | static-cr } | transit ] [ vpn-instance vpn-instance-name ] [ ipv4-dest mask-length | ipv6 [ ipv6-dest prefix-length ] ] [ verbose ]
Views
Any view
Predefined user roles
Protocol that is using the label. Possible values include LDP, BGP, RSVP, and L2VPN.
Usage state of the label:
Idle—The label is idle.
Alloc—The label has been allocated.
Pending—The label has been released but is still used by an
LSP entry.
Inuse—The label has been allocated and used by an LSP entry.
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
egress: Displays the LSPs taking the current LSR as the egress.
in-label label-value: Displays the LSPs using the specified label as the incoming label. The value
range for the label-value argument is 0 to 1000000.
ingress: Displays the LSPs taking the current LSR as the ingress.
outgoing-interface interface-type interface-number: Displays the LSPs using the specified interface
as the outgoing interface. The interface-type interface-number argument specifies an interface by its type and number.
protocol: Displays the LSPs established by a specific protocol.
bgp: Displays BGP LSPs.
Ldp: Displays LDP LSPs.
local: Displays the direct LSP.
rsvp-te: Displays CR-LSPs established by RSVP-TE. The switch does not support this keyword.
6
static: Displays static LSPs.
static-cr: Displays static CR-LSPs. The switch does not support this keyword.
transit: Displays the LSPs taking the current LSR as a transit LSR.
vpn-instance vpn-instance-name: Displays LSPs for the specified VPN. The vpn-instance-name is a
case-sensitive string of 1 to 31 characters. If you do not specify this option, the command displays LSPs for the public network.
ipv4-dest mask-length: Displays the IPv4 LSP for a FEC specified by an IPv4 address and a mask length. The value range for the mask length is 0 to 32.
ipv6: Displays IPv6 LSP information. If you do not specify this keyword, the command displays IPv4 LSP information.
ipv6-dest prefix-length: Displays the IPv6 LSP for a FEC specified by an IPv6 address and a prefix length. The value range for the prefix length is 0 to 128.
verbose: Displays detailed LSP information. If you do not specify this keyword, the command displays brief LSP information.
Usage guidelines
If no parameters are specified, the command displays brief information for all LSPs. If you specify only the verbose keyword, the command displays detailed information for all LSPs.
Examples
# Display brief information for all IPv4 LSPs.
<Sysname> display mpls lsp FEC Proto In/Out Label Interface/Out NHLFE
100.100.100.100/24 LDP -/1049 Vlan20 Backup -/1050 Vlan21
100.100.100.10/24 LDP -/1051 Vlan22 Backup -/1050 Vlan21
100.100.100.10/24 LDP -/1049 Vlan30
101.100.100.10/24 LDP 1026/1049 Vlan20
102.100.100.10/24 LDP 1027/- -
103.100.100.10/24 LDP 1028/1049 Tunnel10
110.100.100.20/24 BGP -/1049 Vlan20
111.100.100.10/24 BGP 2028/1049 Vlan20
112.100.100.10/24 BGP 2029/- Vlan20
113.100.100.10/24 BGP 2030/1049 NHLFE1500
114.100.100.10/24 BGP 2031/1050 Tunnel100
100.100.100.100 Local -/- Vlan20
101.101.101.101/32 Static -/100 Vlan20
- Static 100/200 Vlan20
- Static 101/- Vlan20
200.200.200.200/64000/64000 RSVP -/1030 Vlan10
201.200.200.200/64000/64000 RSVP 1024/1031 Vlan10
202.200.200.200/64000/64000 RSVP 1025/- -
150.140.150.100/64001/0 StaticCR -/1000 Vlan10
- StaticCR 50/1001 Vlan10
- StaticCR 51/- -
7
Table 4 Command output
Field Description
Forwarding equivalence class:
IP address/mask—Classifies FECs by destination address.
IP address—Classifies FECs by next hop.
IP address/Out Label—Classifies FECs by next hop and outgoing
FEC
label.
Ingress LSR ID/Tunnel ID/LSP ID—RSVP TE FEC.
A hyphen (-)—The LSP is a static transit LSP, static egress LSP,
static transit CR-LSP, or static egress CR-LSP.
Backup—If the LSP is a backup LSP of the previous LSP, this field
displays "Backup."
Label distribution protocol:
LDP.
BGP.
Proto
RSVP.
Static.
StaticCR—Static CR-LSP.
Local—The LSP is a direct LSP.
In/Out Label Incoming label/outgoing label.
Outgoing interface name or NHLFE entry index.
Interface/Out NHLFE
NHLFEnumber specifies the outer LSP that carries the current LSP. The outer LSP is that matches the NHLFE entry with an NID of number.
# Display IPv6 LSP information.
<Sysname> display mpls lsp ipv6 FEC : 100:100:100:100:100:100:100:100/128 Protocol : BGP In-Label : 2050 Out-Label: 10003 Out-Interface: Vlan10 BkLabel : 10004 BkInterface : Vlan20
Table 5 Command output
Field Description
Forwarding equivalence class:
IP address/mask—Classifies FECs by destination address.
IP address—Classifies FECs by next hop.
FEC
IP address/Out Label—Classifies FECs by next hop and outgoing
label.
Ingress LSR ID/Tunnel ID/LSP ID—RSVP TE FEC.
A hyphen (-)—The LSP is a static transit LSP, static egress LSP,
static transit CR-LSP, or static egress CR-LSP.
8
Field Description
Label distribution protocol:
LDP.
BGP.
Protocol
RSVP.
Static.
StaticCR—Static CR-LSP.
Local—Direct LSP.
BkLabel Outgoing label of the backup LSP.
BkInterface Outgoing interface of the backup LSP.
# Display detailed information for all LSPs.
<Sysname> display mpls lsp verbose Destination : 56.10.10.2 FEC : 56.10.10.2/32 Protocol : LDP LSR Type : Egress Service : - In-Label : 1024 State : Active
Destination : 56.10.10.4 FEC : 56.10.10.2/32 Protocol : LDP LSR Type : Transit Service : - In-Label : 1026 Path ID : 0x40000000.1 State : Active Out-Label : 1800 Nexthop : 10.1.1.2 Out-Interface: Vlan10 BkLabel : 1900 BkNexthop : 20.1.1.2 BkInteface : Vlan20
Destination : 56.10.10.4 FEC : 56.10.10.2/32 Protocol : LDP LSR Type : Ingress Service : - NHLFE ID : 2000 State : Active Out-Label : 1800 Nexthop : 10.1.1.2 Out-Interface: Vlan10
9
Table 6 Command output
Field Description
Destination LSP destination address.
Forwarding equivalence class:
IP address/mask—Classifies FECs by destination address.
IP address—Classifies FECs by next hop.
FEC
IP address/Out Label—Classifies FECs by next hop and outgoing
label.
Ingress LSR ID/Tunnel ID/LSP ID—RSVP TE FEC.
A hyphen (-)—The LSP is a static transit LSP, s t a t ic e g r e s s L S P, s t at ic
transit CR-LSP, or static egress CR-LSP.
Label distribution protocol:
LDP.
BGP.
Proto
RSVP.
Static.
StaticCR—Static CR-LSP.
Local—Direct LSP.
LSR type:
LSR Type
Ingress—The current LSR is the ingress node of the LSP.
Transit—The current LSR is a transit node of the LSP.
Egress—The current LSR is the egress node of the LSP.
Service Service deployed on the LSP.
Forwarding path. The value is in the format of 0xnn.m, where nn
Path ID
NHLFE ID NHLFE entry index.
Outgoing NID Index of the NHLFE entry for the outer tunnel.
State
represents the NHLFE group ID of the outer LSPs that carry the current LSP, and m represents the sequence number of the equivalence path.
LSP state:
Active—The LSP is in use.
Inactive—The LSP is idle.
BkLabel Outgoing label of the backup LSP.
BkNexthop Next hop address of the backup LSP.
BkInterface Outgoing interface of the backup LSP.
Related commands

display mpls lsp statistics

display mpls lsp statistics
Use display mpls lsp statistics to display LSP statistics.
Syntax
display mpls lsp statistics
10
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Examples
# Display LSP statistics.
<Sysname> display mpls lsp statistics LSP Type Ingress/Transit/Egress Active Static LSP 0/0/0 0/0/0 Static CRLSP 0/0/0 0/0/0 LDP LSP 2/2/1 2/2/1 RSVP CRLSP 0/0/0 0/0/0 BGP LSP 0/0/0 0/0/0 Local LSP 2/0/0 2/0/0
----------------------------------------------------­Total 4/2/1 4/2/1
Table 7 Command output
Field Description
LSP Type
Total Total number of LSPs.
Ingress Number of LSPs that take the local device as the ingress node.
Transit Number of LSPs that take the local device as a transit node.
Egress Number of LSPs that take the local device as the egress node.
Active Number of active LSPs of a specific type.

display mpls nid

Use display mpls nid to display the NID usage information.
LSP types:
Static LSP.
Static CRLSP.
LDP LSP.
Local LSP (direct LSP).
RSVP CRLSP.
BGP LSP.
Syntax
display mpls nid [ nid-value1 [ to nid-value2 ] ]
11
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
nid-value1: Specifies an NID in the range of 0 to 1000000. If used with the nid-value2 argument, the nid-value1 argument represents the start NID of an NID range.
to nid-value2: Specifies the end NID in the range of 0 to 1000000. If you specify an NID range by using the nid-value1 argument and the to nid-value2 option, the command displays the usage information for the specified range of NIDs.
Usage guidelines
If you do not specify any parameter, the command displays the usage information of all NIDs.
Examples
# Display the usage information of NIDs 1028 through 1500.
<Sysname> display mpls nid 1028 to 1500 NID alloc state: '.' means not used, '$' means used
1028 :...$.... ........ ........ ........ ........ ........ ........ ........
1092 :........ ........ ........ ........ ........ ........ ........ ........
1156 :........ ........ ........ ........ ........ ........ ........ ........
1220 :........ ........ ........ ........ ........ ........ ........ ........
1284 :........ ........ ........ ........ ........ ........ ........ ........
1348 :........ ........ ........ ........ ........ ........ ........ ........
1412 :........ ........ ........ ........ ........ ........ ........ ........
1476 :........ ........ ........ .

display mpls summary

Use display mpls summary to display MPLS summary information.
Syntax
display mpls summary
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
12
Examples
# Display MPLS summary information.
<Sysname> display mpls summary Memory State : Normal MPLS LSR ID : 2.2.2.2 Egress Label Type: Implicit-null Labels: Range Idle 16-1023 1008 1024-13311 12288 65536-69631 4096 131072-139263 8192 Protocols: Type State BGP Normal Static Normal
Table 8 Command output
Field Description
Memory state:
Normal—The memory is normal.
Memory State
Minor—The memory has a minor alarm.
Severe—The memory has a severe alarm.
Critical—The memory has a critical alarm.
Egress Label Type
Labels Label information.
Range Label range.
Idle Number of idle labels in the label range.
Protocols Running label distribution protocols and the related information.
Type Protocol type: LDP, BGP, RSVP, Static, Static CRLSP, or TE.
State

display mpls statistics

Use display mpls statistics to display MPLS forwarding statistics for each LSP, such as the number of packets processed and dropped in the inbound and outbound directions.
Syntax
Label type that the egress assigns to the penultimate hop:
Implicit-null.
Explicit-null.
Non-null.
Label distribution protocol running status:
Normal.
Recover—The protocol is in the GR process.
display mpls statistics { all | lsp-index index }
13
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
all: Displays MPLS forwarding statistics for all LSPs.
lsp-index index: Displays MPLS forwarding statistics for the specified LSP. The index argument
represents the index of an LSP, in the range of 1 to 4294967295.
Usage guidelines
To use this command to view MPLS forwarding statistics for LSPs, you must first enable MPLS forwarding statistics for LSPs by using the mpls statistics command. Otherwise, the statistics are all
0.
Examples
# Display MPLS forwarding statistics for all LSPs.
<Sysname> display mpls statistics all Statistics for LSP (LSP index: 9218): Inbound: Octets : 0 Packets : 0 Errors : 0 Discards : 0 Start Time : 2006/05/20 15:52:30 End Time : 2006/05/20 15:52:30 Outbound: Octets : 0 Packets : 0 Errors : 0 Discards : 0 Start Time : 0000/00/00 00:00:00 End Time : 0000/00/00 00:00:00 Statistics for LSP (LSP index: 9219): Inbound: Octets : 0 Packets : 0 Errors : 0 Discards : 0 Start Time : 0000/00/00 00:00:00 End Time : 0000/00/00 00:00:00 Outbound: Octets : 0 Packets : 0
14
Errors : 0 Discards : 0 Start Time : 2006/05/20 15:52:30 End Time : 2006/05/20 15:52:30
Table 9 Command output
Field Description
Statistics for LSP (LSP index: index) MPLS forwarding statistics for the LSP identified by the index.
Inbound Inbound direction.
Outbound Outbound direction.
Octets Bytes of packets processed.
Packets Number of packets processed.
Errors Number of errors.
Discards Number of packets discarded.
Start Time Start time of the statistics.
End Time End time of the statistics.
NOTE:
On an ingress node, no statistics are collected in the inbound direction and the start
time and end time for inbound statistics are both 0.
On an egress node, no statistics are collected in the outbound direction and the start
time and end time for outbound statistics are both 0.
Related commands
mpls statistics

mpls enable

Use mpls enable to enable MPLS on an interface.
Use undo mpls enable to disable MPLS on an interface.
Syntax
mpls enable
undo mpls enable
Default
MPLS is disabled on an interface.
Views
Interface view
Predefined user roles
network-admin
mdc-admin
15
Usage guidelines
Execute this command on all interfaces that need to perform MPLS forwarding.
Examples
# Enable MPLS on VLAN-interface 2.
<Sysname> System-view [Sysname] interface vlan-interface 2 [Sysname-Vlan-interface2] mpls enable
Related commands
display mpls interface

mpls label advertise

Use mpls label advertise to specify the type of label the egress will advertise to the penultimate hop.
Use undo mpls label advertise to restore the default.
Syntax
mpls label advertise { explicit-null | implicit-null }
undo mpls label advertise
Default
As an egress, the device advertises an implicit null label to the penultimate hop.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
explicit-null: Specifies the egress to advertise an explicit null label of 0 to the penultimate hop.
implicit-null: Specifies the egress to advertise an implicit null label of 3 to the penultimate hop.
Usage guidelines
If the penultimate hop supports PHP, HP recommends that you configure the egress to advertise an implicit null label to the penultimate hop. If you want to simplify packet forwarding on the egress but keep labels in packets for the egress to determine QoS policies, you can configure the egress to advertise an explicit null label to the penultimate hop.
As a penultimate hop, the device allows the egress to advertise to the penultimate hop an implicit null label or an explicit null label.
The mpls label advertise command takes effect only for the LSPs established after the command is executed. To apply the new setting to LSPs established before the command is executed, delete and then re-establish those LSPs:
To re-establish LDP LSPs, execute the reset mpls ldp command to reset the LDP session.
16
To re-establish BGP LSPs, delete the routes corresponding to the BGP LSPs, and then
redistribute the routes.
Examples
# Configure the egress device to advertise an explicit null label to the penultimate hop.
<Sysname> system-view [Sysname] mpls label advertise explicit-null
Related commands
reset mpls ldp

mpls lsr-id

Use mpls lsr-id to configure an LSR ID for the local LSR.
Use undo mpls lsr-id to delete the LSR ID of the local LSR.
Syntax
mpls lsr-id lsr-id
undo mpls lsr-id
Default
An LSR has no LSR ID.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
lsr-id: Specifies an ID for identifying the LSR, in dotted decimal notation.
Usage guidelines
HP recommends that you use the address of a loopback interface on the LSR as the LSR ID.
Examples
# Configure the LSR ID as 3.3.3.3 for the local node.
<Sysname> system-view [Sysname] mpls lsr-id 3.3.3.3
Related commands
lsr-id

mpls mtu

Syntax
Use mpls mtu to configure the MPLS MTU for an interface.
Use undo mpls mtu to restore the default.
mpls mtu value
17
undo mpls mtu
Default
The MPLS MTU of an interface is not configured. Fragmentation for MPLS packets is based on the MTU of the interface, and the length of a fragment does not include that of the MPLS label. Thus, after an MPLS label is inserted into a fragment, the length of the MPLS fragment may exceed the interface MTU.
Views
Interface view
Predefined user roles
network-admin
mdc-admin
Parameters
value: Specifies the MPLS MTU of the interface, in the range of 46 to 65535 bytes.
Usage guidelines
This command is effective only when MPLS is enabled on the interface.
If the MPLS MTU is larger than the interface MTU, data forwarding may fail.
Examples
# Set the MPLS MTU of VLAN-interface 2 to 1000 bytes.
<Sysname> system-view [Sysname] interface vlan-interface 2 [Sysname-Vlan-interface2] mpls enable [Sysname-Vlan-interface2] mpls mtu 1000
Related commands
display mpls interface

mpls ttl expiration enable

Use mpls ttl expiration enable to enable sending of MPLS TTL-expired messages.
Use undo mpls ttl expiration enable to disable the function.
Syntax
mpls ttl expiration enable
undo mpls ttl expiration enable
Default
The MPLS TTL-expired messages sending function is enabled.
Views
System view
Predefined user roles
network-admin
mdc-admin
18
Usage guidelines
The mpls ttl expiration enable command enables an LSR to generate an ICMP TTL-expired message upon receiving an MPLS packet with TTL being 1. If the MPLS packet has only one label, the LSR sends the ICMP TTL-expired message back to the source through IP routing. If the MPLS packet has multiple labels, the LSR forwards the ICMP TTL-expired message along the LSP of the MPLS packet to the egress, which then sends the message back to the source.
Examples
# Disable the MPLS TTL-expired messages sending function.
<Sysname> system-view [Sysname] undo mpls ttl expiration enable

mpls ttl propagate

Use mpls ttl propagate to enable TTL propagation.
Use undo mpls ttl propagate to disable TTL propagation.
Syntax
mpls ttl propagate { public | vpn }
undo mpls ttl propagate { public | vpn }
Default
TTL propagation is enabled for public network packets and disabled for VPN packets.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
public: Specifies public network packets.
vpn: Specifies VPN packets.
Usage guidelines
When TTL propagation is enabled, MPLS copies the IP TTL to the label TTL for packets entering the MPLS network, and copies the label TTL to the IP TTL for packets leaving the MPLS network. If you enable TTL propagation on both the ingress and egress, the IP tracert facility can show the real path in the MPLS network.
When TTL propagation is disabled, MPLS sets the label TTL to 255 for packets entering the MPLS network, and pops the label for packets leaving the MPLS network, without copying the label TTL value to the IP TTL. The IP tracert facility cannot show the real path in the MPLS network.
Within an MPLS network, TTL is always copied between the labels of an MPLS packet. The mpls ttl propagate command affects only the propagation between IP TTL and label TTL.
HP recommends setting the same TTL processing mode on all LSRs of an LSP.
To enable TTL propagation for a VPN, you must enable it on all PE devices in the VPN, so that you can get the same traceroute result (hop count) from those PEs.
19
Examples
# Enable TTL propagation for VPN packets.
<Sysname> system-view [Sysname] mpls ttl propagate vpn
20

Static LSP commands

display mpls static-lsp

Use display mpls static-lsp to display static LSP information.
Syntax
display mpls static-lsp [ lsp-name lsp-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
lsp-name lsp-name: Specifies a static LSP by its name, a case-sensitive string of 1 to 15 characters.
If you do not specify a static LSP, the command displays information about all static LSPs.
Examples
# Display information about all static LSPs.
<Sysname> display mpls static-lsp Total: 4 Name FEC In/Out Label Nexthop/Out Interface State egress123 -/- 16/NULL - Up ingress123 202.118.224.132/32 NULL/1022 100.100.100.19 Down transit123 -/- 32/1022 100.100.100.17 Down transit124 -/- 34/1020 GE3/0/1 Down
Table 10 Command output
Field Description
Total Total number of static LSPs.
Name Name of the static LSP.
FEC Forwarding equivalence class—IP prefix and the prefix length.
In/Out Label Incoming label/outgoing label.

static-lsp egress

Use static-lsp egress to configure a static LSP on the egress node.
Use undo static-lsp egress to delete a static LSP on the egress node.
21
Syntax
static-lsp egress lsp-name in-label in-label
undo static-lsp egress lsp-name
Default
No static LSP exists on the device.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
lsp-name: Specifies a name for the static LSP, a case-sensitive string of 1 to 15 characters.
in-label in-label: Specifies an incoming label, which can be 0, 3, or a value in the range of 16 to
1023.
Examples
# Configure a static LSP on the egress node: specify the LSP's name as bj-sh and incoming label as
233.
<Sysname> system-view [Sysname] static-lsp egress bj-sh in-label 233
Related commands
display mpls static-lsp

static-lsp ingress

Use static-lsp ingress to configure a static LSP on the ingress node.
Use undo static-lsp ingress to delete a static LSP on the ingress node.
Syntax
static-lsp ingress lsp-name destination dest-addr { mask | mask-length } { nexthop next-hop-addr | outgoing-interface interface-type interface-number } out-label out-label
undo static-lsp ingress lsp-name
Default
No static LSP exists on the device.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
lsp-name: Specifies a name for the static LSP, a case-sensitive string of 1 to 15 characters.
22
destination dest-addr: Specifies a destination IP address for the LSP.
mask: Specifies the mask of the destination IP address.
mask-length: Specifies the mask length of the destination address, in the range of 0 to 32.
nexthop next-hop-addr: Specifies a next hop address.
outgoing-interface interface-type interface-number: Specifies an outgoing interface by its type and
number. You can specify an outgoing interface only in a point-to-point network.
out-label out-label: Specifies an outgoing label, which can be 0, 3, or a value in the range of 16 to
1023.
Usage guidelines
The next hop or outgoing interface specified for the LSP must be consistent with the next hop or outgoing interface of the optimal route destined for the specified address. If you configure a static IP route for the LSP, be sure to specify the same next hop or outgoing interface for the static route and the static LSP.
You must enable MPLS on the outgoing interface of the static LSP.
Examples
# Configure a static LSP on the ingress node: specify the LSP's name as bj-sh, destination address as 202.25.38.1/24, next hop address as 202.55.25.33, and outgoing label as 237.
<Sysname> system-view [Sysname] static-lsp ingress bj-sh destination 202.25.38.1 24 nexthop 202.55.25.33
out-label 237
Related commands
display mpls static-lsp

static-lsp transit

Use static-lsp transit to configure a static LSP on a transit node.
Use undo static-lsp transit to delete a static LSP on a transit node.
Syntax
static-lsp transit lsp-name in-label in-label { nexthop next-hop-addr | outgoing-interface interface-type interface-number } out-label out-label
undo static-lsp transit lsp-name
Default
No static LSP exists on the device.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
lsp-name: Specifies a name for the static LSP, a case-sensitive string of 1 to 15 characters.
23
in-label in-label: Specifies an incoming label in the range of 16 to 1023.
nexthop next-hop-addr: Specifies a next hop address.
outgoing-interface interface-type interface-number: Specifies an outgoing interface by its type and
number. You can specify an outgoing interface only in a point-to-point network.
out-label out-label: Specifies an outgoing label, which can be 0, 3, or a value in the range of 16 to
1023.
Usage guidelines
You must enable MPLS on the outgoing interface of the static LSP.
Examples
# Configure a static LSP on the transit node: specify the LSP's name as bj-sh, 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 in-label 123 nexthop 202.34.114.7 out-label 253
Related commands
display mpls static-lsp
24

LDP commands

accept-label

Use accept-label to configure a label acceptance policy.
Use undo accept-label to remove the label acceptance policy.
Syntax
accept-label peer peer-lsr-id prefix-list prefix-list-name
undo accept-label peer peer-lsr-id
Default
No label acceptance policy is configured. LDP accepts all label mappings from all peers.
Views
LDP view, LDP-VPN instance view
Predefined user roles
network-admin
mdc-admin
Parameters
peer peer-lsr-id: Specifies an LDP peer by its LSR ID.
prefix-list prefix-list-name: Specifies an IP prefix list by its name, a case-sensitive string of 1 to 63
characters.
Usage guidelines
Using the label acceptance policy, LDP accepts only the FEC-label mappings whose prefixes are permitted by the specified IP prefix list from the specified peer.
This feature enables you to control the number of label mappings received from peers.
If you change the label acceptance policy to accept the previously denied label mappings from a specific peer, for example, by using the undo accept-label command or by changing the IP prefix list, you must execute the reset mpls ldp command to reset the LDP session with the specified peer to apply the new policy.
Using a label advertisement policy on an LSR or using a label acceptance policy on its upstream LSR can achieve the same purpose. HP recommends using the label advertisement policy to reduce network load.
Examples
# Configure a label acceptance policy to accept only the FEC-label mappings containing prefixes
10.1.1.0/24 and 10.2.1.0/24 from the LDP peer 1.1.1.9.
<Sysname> system-view [Sysname] ip prefix-list prefix-from-RTA index 1 permit 10.1.1.0 24 [Sysname] ip prefix-list prefix-from-RTA index 2 permit 10.2.1.0 24 [Sysname] mpls ldp
25
Loading...
+ 128 hidden pages