LDP Show Commands
This chapter provides an alphabetized reference for each of the LDP commands. It includes the following commands:
show debugging ldp
Use this command to display the status of the debugging of the LDP system.
Command Syntax
show debugging ldp
Parameter
None
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
The following is a sample output from the show debugging ldp command.
#show debugging ldp
LDP debugging status:
LDP event debugging is on
LDP packet debugging is on
LDP finite state machine debugging is on
LDP pdu hexdump debugging is on
LDP downstream state machine debugging is on
LDP upstream state machine debugging is on
LDP trunk state machine debugging is on
LDP QoS debugging is on
LDP CSPF debugging is on
LDP VC USM debugging is on
LDP VC DSM debugging is on
LDP NSM debugging is on
LDP Advertise-labels debugging is on
#
Table 2-34 explains the show command output fields.
Table 2-34: show debugging ldp output fields details
Field | Description |
---|
LDP debugging status | Status of the LDP debugging protocol. |
show ldp
Use this command to display basic LDP attributes defined for the current LSR.
Command Syntax
show ldp
Parameter
None
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The following is a sample output from the show ldp command displaying basic LDP attributes.
#show ldp
Router ID : 20.1.1.1
LDP Version : 1
Global Merge Capability : Merge Capable
Label Advertisement Mode : Downstream Unsolicited
Label Retention Mode : Liberal
Label Control Mode : Independent
Instance Loop Detection : On
Instance Hop Count Limit : 255
Instance Path Vec Count : 255
Request Retry : Off
Propagate Release : Disabled
Graceful Restart : Disabled
Hello Interval : 5
Targeted Hello Interval : 15
Hold time : 15
Targeted Hold time : 45
Keepalive Interval : 10
Keepalive Timeout : 30
Request retry Timeout : 5
Transport Address data :
Labelspace 0 : 20.1.1.1 (in use)
Import BGP routes : No
#
Table 2-35 explains the show command output fields.
Table 2-35: show ldp output fields details:
Field | Description |
---|
Router ID | Router identifier in IP address format for this system. |
LDP Version | Details of Link Layer Discovery Protocol (LLDP) version. |
Global Merge Capability | Used to override the default merge capability setting of all the interfaces for the current LSR. |
Label Advertisement Mode | Used to set the label advertisement mode for an interface for the current LSR to either downstream-on-demand (label is sent only when requested) or downstream-unsolicited (label is sent unrequested). |
Label Retention Mode | Used for all labels exchanged via the given interface. |
Label Control Mode | LSR generates a local label for a FEC which the router learned from routing table independently from other LSRs. |
Loop Detection | Used to enable loop detection on the current LSR. |
Loop Detection Count | Indicates the loop detection hop count. |
Request Retry | Enables the LSR to send a maximum of five label requests. |
Propagate Release | Used to propagate the release of labels to downstream routers. |
Hello Interval | Sets the interval for sending unicast hello packets to peers. |
Targeted Hello Interval | Sets the interval for sending unicast hello packets to targeted peers. |
Hold time | Sets the time-out value to peers. |
Targeted Hold time | Sets the time-out value that is the time that the router waits before rejecting an adjacency with targeted peers. |
Keepalive Interval | Used to set the interval for sending keep-alive messages to the peer in order to maintain a session. |
Keepalive Timeout | Time-out value for rejecting a session with a peer. |
Request retry Timeout | Used to set the interval between retries. |
Targeted Hello Receipt | Status of the hello receipt. |
Transport Address | The transport address is the address used for the TCP session over which LDP is running. |
Transport Interface | Interface is used for the TCP session over which LDP is running. |
Import BGP routes | Used to import BGP routes into LDP. |
show ldp adjacency
Use this command to display all the adjacencies for the current LSR.
Command Syntax
show ldp adjacency
Parameter
None
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
The following is a sample output from the show ldp adjacency command displaying all the adjacencies for this LSR.
#show ldp adjacency
Remote-Address Local-Address Mode Intf-Name Holdtime LDP-Identifier
11.11.11.11 12.0.1.20 Targeted ge11 45 11.11.11.11:0
33.33.33.33 11.0.1.20 Targeted ge9 45 33.33.33.33:0
44.44.44.44 20.0.1.20 Targeted xe14 45 44.44.44.44:0
11.0.1.10 11.0.1.20 Interface ge9 15 33.33.33.33:0
12.0.1.10 12.0.1.20 Interface ge11 15 11.11.11.11:0
20.0.1.10 20.0.1.20 Interface xe14 15 44.44.44.44:0
Table 2-36 explains the show command output fields.
Table 2-36: show ldp adjacency output fields details
Field | Description |
---|
Remote Address | IP address of the interface. |
Local Address | Local address of the LDP adjacency. |
Interface Name | Name of the interface. |
Hold time | Sets the time-out value to peers. |
LDP ID | LDP identifier for this protocol. |
show ldp advertise-labels
Use this command to display the IP access list of LDP advertise-labels.
Command Syntax
show ldp advertise-labels
Parameter
None
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
The following is a sample output from the show ldp advertise-labels command.
#show ldp advertise-labels
Advertisement spec:
Prefix list = pfx1; Peer plist = pfx1
Prevent the distribution of any assigned labels
Table 2-37 explains the show command output fields.
Table 2-37: show ldp advertise-labels output fields details
Field | Description |
---|
Advertisement spec | Details of the advertisement spec. |
Prefix list | The label is advertised to all peers permitted by the peer plist. |
Peer plist | The prefix list permits the prefix and there is a peer plist. |
show ldp downstream
Use this command to display the status of all downstream sessions and the label information exchanged.
Command Syntax
show ldp downstream
Parameter
None
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3 and was updated in OcNOS version 5.1.
Example
The following is an output from the show ldp downstream command showing the status of all downstream sessions.
When LDP LFA FRR in not enabled:
#show ldp downstream
Session peer 44.1.1.1:
FEC Nexthop Addr State Label Req.ID Attr
192.168.254.0/24 connected Established impl-null 0
33.1.1.1/32 10.0.4.1 Established 24323 0
10.0.4.0/31 connected Established impl-null 0
10.0.2.0/31 connected Established 24322 0
44.1.1.1/32 10.0.4.1 Established impl-null 0
10.0.3.0/31 10.0.4.1 Established impl-null 0
Session peer 22.1.1.1:
FEC Nexthop Addr State Label Req.ID Attr
192.168.254.0/24 connected Established impl-null 0
10.0.3.0/31 connected Established 24323 0
10.0.1.0/31 connected Established impl-null 0
33.1.1.1/32 10.0.1.1 Established 24324 0
22.1.1.1/32 10.0.1.1 Established impl-null 0
10.0.2.0/31 10.0.1.1 Established impl-null 0
When LDP LFA FRR in enabled:
#show ldp downstream
Codes: P - Primary route, B - Backup route
Session peer 44.1.1.1:
FEC Nexthop Addr State Label Req.ID Attr Code
192.168.254.0/24 connected Established impl-null 0
33.1.1.1/32 10.0.4.1 Established 24323 0 P
33.1.1.1/32 10.0.4.1 Established 24323 0 B
10.0.4.0/31 connected Established impl-null 0
10.0.2.0/31 connected Established 24322 0
10.0.2.0/31 10.0.4.1 Established 24322 0 B
44.1.1.1/32 10.0.4.1 Established impl-null 0 P
10.0.3.0/31 10.0.4.1 Established impl-null 0 P
Codes: P - Primary route, B - Backup route
Session peer 22.1.1.1:
FEC Nexthop Addr State Label Req.ID Attr Code
192.168.254.0/24 connected Established impl-null 0
10.0.3.0/31 connected Established 24323 0
10.0.3.0/31 10.0.1.1 Established 24323 0 B
10.0.1.0/31 connected Established impl-null 0
33.1.1.1/32 10.0.1.1 Established 24324 0 P
33.1.1.1/32 10.0.1.1 Established 24324 0 B
22.1.1.1/32 10.0.1.1 Established impl-null 0 P
10.0.2.0/31 10.0.1.1 Established impl-null 0 P
Table 2-38 explains the show command output fields.
Table 2-38: show ldp downstream output fields details
Field | Description |
Session peer | Used to group and apply the configuration of general session commands to groups of neighbors that share common session configuration elements. |
FEC | Displays the Forward Equivalency Class (FEC) for this entry. |
Nexthop addr | Displays the IP address of the next hop. |
State | Displays the current status of the ldp. |
Label | Details of the ldp downstream labels. |
Req.ID | Request identifier for the protocol. |
Attr | The attribute is used to sent to a customer router. |
Code | Show if an entry is principal or backup. |
show ldp fec
Use the following command to display all FECs (Forwarding Equivalence Classes) known to this LSR.
Command Syntax
show ldp fec
show ldp fec (prefix)
show mpls ldp fec
show mpls ldp fec (prefix|)
Parameter
prefix
Display prefix FEC information.
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3 and was updated in OcNOS version 5.1.
Example
When LDP LFA FRR in not enabled:
#show ldp fec
LSR codes : E/N - LSR is egress/non-egress for this FEC,
L - LSR received a label for this FEC,
> - LSR will use this route for the FEC
FEC Code Session Out Label ELC Nexthop Addr
10.0.1.0/31 NL 22.1.1.1 impl-null No connected
E > non-existent none No connected
10.0.2.0/31 NL 44.1.1.1 24322 No no nexthop
NL> 22.1.1.1 impl-null No 10.0.1.1
10.0.3.0/31 NL 22.1.1.1 24323 No no nexthop
NL> 44.1.1.1 impl-null No 10.0.4.1
10.0.4.0/31 NL 44.1.1.1 impl-null No connected
E > non-existent none No connected
11.1.1.1/32 E > non-existent none No connected
22.1.1.1/32 NL> 22.1.1.1 impl-null No 10.0.1.1
33.1.1.1/32 NL> 44.1.1.1 24323 No 10.0.4.1
NL> 22.1.1.1 24324 No 10.0.1.1
44.1.1.1/32 NL> 44.1.1.1 impl-null No 10.0.4.1
192.168.254.0/24 NL 22.1.1.1 impl-null No connected
NL 44.1.1.1 impl-null No connected
E > non-existent none No connected
When LDP LFA FRR in enabled:
#show ldp fec
LSR codes : E/N - LSR is egress/non-egress for this FEC,
L - LSR received a label for this FEC,
P - Primary route, B - LFA Backup route,
R - Remote LFA Backup route,
> - LSR will use this route for the FEC
FEC Code Session Out Label ELC Nexthop Addr
10.0.1.0/31 NL 22.1.1.1 impl-null No connected
E > non-existent none No connected
10.0.2.0/31 NLB> 44.1.1.1 24322 No 10.0.4.1
NLP> 22.1.1.1 impl-null No 10.0.1.1
10.0.3.0/31 NLB> 22.1.1.1 24323 No 10.0.1.1
NLP> 44.1.1.1 impl-null No 10.0.4.1
10.0.4.0/31 NL 44.1.1.1 impl-null No connected
E > non-existent none No connected
11.1.1.1/32 E > non-existent none No connected
22.1.1.1/32 NLP> 22.1.1.1 impl-null No 10.0.1.1
33.1.1.1/32 NLP> 44.1.1.1 24323 No 10.0.4.1
NLB> 44.1.1.1 24323 No 10.0.4.1
NLP> 22.1.1.1 24324 No 10.0.1.1
NLB> 22.1.1.1 24324 No 10.0.1.1
44.1.1.1/32 NLP> 44.1.1.1 impl-null No 10.0.4.1
1.1.1.1/32 NL 1.1.1.1 impl-null No no nexthop
NLP> 3.3.3.3 24320 No 30.1.1.1
NLB> 3.3.3.3 24320 No 30.1.1.1
NLP> 2.2.2.2 24320 No 20.1.1.1
NLB> 2.2.2.2 24320 No 20.1.1.1
2.2.2.2/32 NLR> 1.1.1.1 24324 No 1.1.1.1
(via 30.1.1.1,label 24320)
NLP> 2.2.2.2 impl-null No 20.1.1.1
192.168.254.0/24 NL 22.1.1.1 impl-null No connected
NL 44.1.1.1 impl-null No connected
E > non-existent none No connected
Table 2-39 shows the codes at the end of each route entry that indicate where the route originated.
Table 2-39: Origin Codes
Origin Code | Description | Comments |
E/N | Egress/Non-egress | LSR is egress/non-egress for this FEC. |
L | LSR | LSR received a label for this FEC. |
> | | LSR will use this route for the FEC. |
P | Primary route | When LDP LFA FRR is enabled |
B | LFA Backup route | When LDP LFA FRR is enabled |
R | Remote LFA Backup route | When LDP LFA FRR is enabled |
Table 2-40 explains the show command output fields.
Table 2-40: show ldp fec output fields details
Field | Description |
FEC | Displays the Forward Equivalency Class (FEC) for this entry. |
Session | Reports the current session state. |
Out Label | Label received from downstream neighbor for route. |
ELC | Displays if route has ELC |
Nexthop addr | Displays the IP address of the next hop. |
show ldp igp sync
Use the following command to display the LDP synchronization status.
Command Syntax
show ldp igp sync
show mpls ldp igp sync
Parameter
None
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#show ldp igp sync
eth1
LDP configured; LDP-IGP Synchronization enabled.
Sync status: sync achieved
Delay timer: Not Configured , Not Running
show ldp inter-area-fecs
Use this command to show all FECs using the LPM-based mapping procedure.
Command Syntax
show ldp inter-area-fecs
show ldp inter-area-fecs (ipv4|ipv6|) (count)
Parameter
ipv4
IPv4 FECs
ipv6
IPv6 FECs
count
Count of FECs
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 4.0 and the command was updated in OcNOS version 4.1.
Example
#show ldp inter-area-fecs
LSR codes : E/N - LSR is egress/non-egress for this FEC,
L - LSR received a label for this FEC,
> - LSR will use this route for the FEC
Code FEC Session Out Label Nexthop Addr
Matching RIB prefix - 1.1.1.0
NL> 1.1.1.1/32 33.33.33.33 52485 11.11.11.1
NL> 1.1.1.2/32 33.33.33.33 52486 11.11.11.1
#show ldp inter-area-fecs count
------------------------
Num. IPv4 FEC(s) : 9
------------------------
------------------------
Num. IPv6 FEC(s) : 0
------------------------
------------------------
Total Num. FEC(s): 9
------------------------
#show ldp inter-area-fecs ipv4 count
------------------------
Num. IPv4 FEC(s) : 9
------------------------
#show ldp inter-area-fecs ipv6 count
------------------------
Num. IPv6 FEC(s) : 0
------------------------
show ldp inter-area-fecs prefix
Use this command to show all LDP inter-area FECs by prefix.
Use parameter count to show FEC count for each prefix.
Command Syntax
show ldp inter-area-fecs prefix (A.B.C.D/M|X:X::X:X/M) count
Parameter
A.B.C.D/M
IP prefix <network>/<length>, e.g., 35.0.0.0/8
X:X::X:X/M
IPv6 prefix <network>/<length>, e.g., 3ffe::/16
count
Count of FECs
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced in OcNOS version 4.1.
Examples
#show ldp inter-area-fecs prefix 4.4.4.0/30
LSR codes : E/N - LSR is egress/non-egress for this FEC,
L - LSR received a label for this FEC,
> - LSR will use this route for the FEC
FEC Code Session Out Label ELC Nexthop Addr
Matching RIB prefix - 4.4.4.0/30
4.4.4.1/32 NL> 1.1.1.1 24970 No 12.1.1.1
NL> 3.3.3.3 24329 No 23.1.1.2
4.4.4.2/32 NL> 1.1.1.1 24971 No 12.1.1.1
NL> 3.3.3.3 24330 No 23.1.1.2
4.4.4.3/32 NL> 1.1.1.1 24972 No 12.1.1.1
NL> 3.3.3.3 24331 No 23.1.1.2
#show ldp inter-area-fecs prefix 4.4.4.0/30 count
Matching RIB prefix - 4.4.4.0/30
------------------------
Num. IPv4 FEC(s): 3
------------------------
#show ldp inter-area-fecs prefix 3ffe::/16
LSR codes : E/N - LSR is egress/non-egress for this FEC,
L - LSR received a label for this FEC,
> - LSR will use this route for the FEC
FEC Code Session Out Label ELC Nexthop Addr
#show ldp inter-area-fecs prefix 3ffe::/16 count
show ldp interface
Table 2-41: show ldp fec output fields details
Field | Description |
---|
FEC | Displays the Forward Equivalency Class (FEC) for this entry. |
Session | Reports the current session state. |
Out Label | Label received from downstream neighbor for route. |
Nexthop addr | Displays the IP address of the next hop. |
Use this command to display the list of all interfaces on the current LSR, and to indicate whether a given interface is label-switching or not.
Command Syntax
show ldp interface
show ldp interface IFNAME
Parameter
IFNAME
Displays the name of the interface.
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The following output displays a list of all interfaces on the LSR.
#show ldp interface
Interface LDP Identifier Label-switching Merge Capability
eth0 10.10.0.11:0 Disabled N/A
lo 10.10.0.11:0 Disabled N/A
eth1 10.10.0.11:0 Enabled Merge capable
eth2 10.10.0.11:0 Enabled Merge capable
vmnet1 10.10.0.11:0 Disabled N/A
The following is a sample output from the show ldp interface IFNAME command displaying information about the specified interface eth1.
#show ldp interface eth1
Status : Enabled
Primary IP Address : 192.168.3.4
Interface Type : Ethernet
Label Merge Capability : Merge Capable
Hello Interval : 5
Targeted Hello Interval : 15
Hold Time : 15
Targeted Hold Time : 45
Keepalive Interval : 10
Keepalive Timeout : 30
Advertisement Mode : Downstream On Demand
Label Retention Mode : Liberal
Administrative Groups : myGroup
Table 2-42 explains the show command output fields.
Table 2-42: show ldp interface output fields details
Field | Description |
---|
Interface | Name of the interface. |
LDP Identifier | LDP identifier for this protocol. |
Label-switching | Status of the label-switching on interface .. |
Merge Capability | Used to override the default merge capability setting of all the interfaces. |
Status | Status of the ldp interface. |
Primary IP Address | Address of the primary Internet protocol in the interface. |
Interface Type | Type of interface. |
Label Merge Capability | Used to override the default merge capability setting of all the interfaces for the label. |
Hello Interval | Sets the interval for sending unicast hello packets to peers. |
Targeted Hello Interval | Sets the interval for sending unicast hello packets to targeted peers. |
Hold time | Sets the time-out value to peers. |
Targeted Hold time | Sets the time-out value that is the time that the router waits before rejecting an adjacency with targeted peers. |
Keepalive Interval | Used to set the interval for sending keep-alive messages to the peer in order to maintain a session. |
Keepalive Timeout | Time-out value for rejecting a session with a peer. |
Label Advertisement Mode | Used to set the label advertisement mode for an interface for the current LSR to either downstream-on-demand (label is sent only when requested) or downstream-unsolicited (label is sent unrequested). |
Label Retention Mode | Used for all labels exchanged via the given interface. |
Administrative Groups | Administrative group to be used for links. |
show ldp lsp
Use this command to display LDP LSP and, optionally, advertise-label information.
Command Syntax
show ldp lsp
show ldp lsp prefix detail
show ldp lsp (prefix|detail)
Parameter
prefix
Displays advertise-label information in addition to LDP LSP information.
detail
Displays advertise-label information in addition to LDP LSP information.
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3. and was updated in OcNOS version 5.1.
Example
The following is a sample output from the show ldp lsp prefix detail command displaying LDP LSP prefix information with advertise-label information.
When LDP LFA FRR in not enabled:
#show ldp lsp
DOWNSTREAM LSP :
FEC Nexthop Addr State Label Req.ID Attr
10.0.1.0/31 connected Established impl-null 0
10.0.1.0/31 connected Established none 0 None
10.0.2.0/31 connected Established 24322 0
10.0.2.0/31 10.0.1.1 Established impl-null 0
10.0.3.0/31 connected Established 24323 0
10.0.3.0/31 10.0.4.1 Established impl-null 0
10.0.4.0/31 connected Established impl-null 0
10.0.4.0/31 connected Established none 0 None
11.1.1.1/32 connected Established none 0 None
22.1.1.1/32 10.0.1.1 Established impl-null 0
33.1.1.1/32 10.0.4.1 Established 24323 0
33.1.1.1/32 10.0.1.1 Established 24324 0
44.1.1.1/32 10.0.4.1 Established impl-null 0
192.168.254.0/24 connected Established impl-null 0
192.168.254.0/24 connected Established impl-null 0
192.168.254.0/24 connected Established none 0 None
UPSTREAM LSP :
FEC State Label Req.ID Attr
10.0.1.0/31 Established impl-null 0 None
10.0.1.0/31 Established impl-null 0 None
10.0.2.0/31 Established 24320 0 None
10.0.3.0/31 Established 24321 0 None
10.0.4.0/31 Established impl-null 0 None
10.0.4.0/31 Established impl-null 0 None
11.1.1.1/32 Established impl-null 0 None
11.1.1.1/32 Established impl-null 0 None
22.1.1.1/32 Established 24322 0 None
44.1.1.1/32 Established 24324 0 None
192.168.254.0/24 Established impl-null 0 None
192.168.254.0/24 Established impl-null 0 None
When LDP LFA FRR in enabled:
#show ldp lsp
DOWNSTREAM LSP :
FEC Nexthop Addr State Label Req.ID Attr Code
10.0.1.0/31 connected Established impl-null 0
10.0.1.0/31 connected Established none 0 None
10.0.2.0/31 connected Established 24322 0
10.0.2.0/31 10.0.4.1 Established 24322 0 B
10.0.2.0/31 10.0.1.1 Established impl-null 0 P
10.0.3.0/31 connected Established 24323 0
10.0.3.0/31 10.0.1.1 Established 24323 0 B
10.0.3.0/31 10.0.4.1 Established impl-null 0 P
10.0.4.0/31 connected Established impl-null 0
10.0.4.0/31 connected Established none 0 None
11.1.1.1/32 connected Established none 0 None
22.1.1.1/32 10.0.1.1 Established impl-null 0 P
33.1.1.1/32 10.0.4.1 Established 24323 0 P
33.1.1.1/32 10.0.4.1 Established 24323 0 B
33.1.1.1/32 10.0.1.1 Established 24324 0 P
33.1.1.1/32 10.0.1.1 Established 24324 0 B
44.1.1.1/32 10.0.4.1 Established impl-null 0
192.168.254.0/24 connected Established impl-null 0
192.168.254.0/24 connected Established impl-null 0
192.168.254.0/24 connected Established none 0 None
UPSTREAM LSP :
FEC State Label Req.ID Attr
10.0.1.0/31 Established impl-null 0 None
10.0.1.0/31 Established impl-null 0 None
10.0.2.0/31 Established 24320 0 None
10.0.3.0/31 Established 24321 0 None
10.0.4.0/31 Established impl-null 0 None
10.0.4.0/31 Established impl-null 0 None
11.1.1.1/32 Established impl-null 0 None
11.1.1.1/32 Established impl-null 0 None
22.1.1.1/32 Established 24322 0 None
44.1.1.1/32 Established 24324 0 None
192.168.254.0/24 Established impl-null 0 None
192.168.254.0/24 Established impl-null 0 None
Table 2-43 explains the show command output fields.
Table 2-43: show ldp lsp output fields details
Field | Description |
Session peer | Used to group and apply the configuration of general session commands to groups of neighbors that share common session configuration elements. |
FEC | Displays the Forward Equivalency Class (FEC) for this entry. |
Nexthop addr | Displays the IP address of the next hop. |
State | Displays the current status of the ldp. |
Label | Details of the ldp downstream labels. |
Req.ID | Request identifier for the protocol. |
Attr | The attribute is used to sent to a customer router. |
Code | Show if an entry is principal or backup. |
show ldp mpls-l2-circuit
Use this command to display summarized Layer-2 Virtual Circuit information about all MPLS virtual circuits configured on the current LSR. When the Virtual Circuit ID is specified, this command displays summarized information for the Virtual Circuit matching the specified ID only.
Command Syntax
show ldp mpls-l2-circuit
show ldp mpls-l2-circuit <1-4294967295>
show ldp mpls-l2-circuit detail
show ldp mpls-l2-circuit count
show ldp mpls-l2-circuit <1-4294967295> detail
Parameter
<1-4294967295>
Indicates the virtual circuit ID.
detail
Displays detailed LDP information.
count
Count of PWs from LDP standpoint.
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
The following is a sample output of this command displaying summarized information of VID 1000:
#show ldp mpls-l2-circuit 1000
Transport Client VC Trans Local Remote Destination
VC ID Binding State Type VC Label VC Label Address
1000 eth2 UP ethernet 640 640 192.168.0.80
#show ldp mpls-l2-circuit
Transport Client VC Trans Local Remote Destination
VC ID Binding State Type VC Label VC Label Address
1000 eth2 UP ethernet 640 640 192.168.0.80
2000 eth3 UP ethernet 641 648 192.168.0.80
3000 eth4 UP ethernet 642 645 192.168.0.90
The following is a sample output of this command when using the detail parameter:
#show ldp mpls-l2-circuit detail
vcid: 100, type: ethernet, local groupid: 4, remote groupid: 4 (vc is up)
destination: 10.0.0.2, Peer LDP Ident: 10.0.0.2
Local label: 53120, remote label: 53120
Access IF: eth3, Network IF: eth4
Local MTU: 1500, Remote MTU: 1500
Local Control Word: 0, Remote Control Word: 0
Local PW Status Capability : enabled
Remote PW Status Capability : enabled
Current PW Status TLV : enabled
Local PW Status :
Not Forwarding
Remote PW Status :
Not Forwarding
Standby
Table 2-44 explains the show command output fields.
Table 2-44: show ldp mpls-l2-circuit output fields details
Field | Description |
---|
Transport VC ID | Transport VC identifier for the protocol. |
Client Binding | Show whether the interface is client bound and (if bound) with which client. |
VC State | State of the VC. |
Trans Type | Type of transmit. |
Local VC Label | Incoming VC label details. |
Remote VC Label | Outgoing VC label details. |
Destination Address | Destination IP address for the protocol. |
VCid | Address for the VC. |
Type | Type of Ethernet interface. |
local groupid | Address for the local group. |
remote groupid | Address for the remote group. |
destination | Destination IP address. |
Peer LDP Ident | Identification for the peer LDP. |
Local label | Number of Local label |
remote label | Number remote label. |
Access IF | Map the access port. |
Network IF | Map the network port in the interface. |
Local MTU | Number of local MTU., Remote MTU - Number of local MTU. |
Local Control Word | Number of local control word. |
Remote Control Word | Number of local control word. |
Local PW Status Capability | PW Status capability of Local end of PW. |
Remote PW Status Capability | PW Status capability of Remote end of PW. |
Current PW Status TLV | A data structure used to encode optional information in a data communications protocol. |
Local PW Status | PW Status of Local end of PW. |
Remote PW Status | PW Status of Remote end of PW. |
show ldp rlfa-routes
Use this command to display LDP remote LFA routes.
Command Syntax
show ldp rlfa-routes
Parameter
None
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced in OcNOS version 5.1.
Example
#show ldp rlfa-routes
Fec Primary-NH Backup-NH rLFA-Addr Out-Intf Outer-label Inner-label
2.2.2.2 20.1.1.1 30.1.1.1 1.1.1.1 xe5 24320 24324
3.3.3.3 30.1.1.1 20.1.1.1 1.1.1.1 xe12 24320 24325
show ldp routes
Use this command to display LDP routes.
Command Syntax
show ldp routes
Parameter
None
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3 and was updated in OcNOS version 5.1.
Example
When LDP LFA FRR in not enabled:
#show ldp routes
Prefix Addr Nexthop Addr Intf
10.0.1.0/31 0.0.0.0 eth2
10.0.2.0/31 10.0.1.1 eth2
10.0.4.1 eth1
10.0.3.0/31 10.0.4.1 eth1
10.0.1.1 eth2
10.0.4.0/31 0.0.0.0 eth1
11.1.1.1/32 0.0.0.0 lo
22.1.1.1/32 10.0.1.1 eth2
33.1.1.1/32 10.0.1.1 eth2
10.0.4.1 eth1
44.1.1.1/32 10.0.4.1 eth1
192.168.254.0/24 0.0.0.0 eth0
When LDP LFA FRR in enabled:
#show ldp routes
Prefix Addr Nexthop Addr Intf Backup Addr Backup Intf
10.0.1.0/31 0.0.0.0 eth2 - -
10.0.2.0/31 10.0.1.1 eth2 10.0.4.1 eth1
10.0.3.0/31 10.0.4.1 eth1 10.0.1.1 eth2
10.0.4.0/31 0.0.0.0 eth1 - -
11.1.1.1/32 0.0.0.0 lo - -
22.1.1.1/32 10.0.1.1 eth2 - -
33.1.1.1/32 10.0.1.1 eth2 10.0.4.1 eth1
10.0.4.1 eth1 10.0.1.1 eth2
44.1.1.1/32 10.0.4.1 eth1 - -
192.168.254.0/24 0.0.0.0 eth0 - -
Table 2-45 explains the show command output fields.
Table 2-45: show ldp routes output fields details
Prefix Addr | Details of the network address prefix. |
Nexthop Addr | Displays the IP address of the next hop. |
Intf | Displays an interface name. |
Backup Addr | Displays the IP address of the backup next hop. |
Backup Intf | Displays a backup interface name. |
show ldp session
Use this command to display sessions established between this LSR and other LSRs.
Command Syntax
show ldp session
show ldp session A.B.C.D
show ldp session X:X::X:X
show mpls ldp session
show mpls ldp session A.B.C.D
show mpls ldp session X:X::X:X
Parameter
A.B.C.D
IPv4 address of the peer.
X:X::X:X
IPv6 address of the peer.
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#show ldp session 192.168.3.5
Session state : OPERATIONAL
Session role : Passive
TCP Connection : Established
IP Address for TCP : 192.168.3.5
Interface being used : eth1
Peer LDP ID : 10.10.0.18:0
Peer Password : mypwd
Authentication type: MD5
Adjacencies : 192.168.3.5
192.168.4.5
Advertisement mode : Downstream Unsolicited
Label retention mode : Liberal
Graceful Restart : Capable
Reconnect Timeout : 120
Recovery Timeout (max) : 120
Recovery Timeout [negotiated] : 0 [120]
Keepalive Timeout : 30
Reconnect Interval : 15
Address List received : 192.168.3.5
192.168.4.5
Received Labels : Fec Label Maps To
IPV4:10.10.0.0/24 impl-null none
IPV4:192.168.3.0/24 impl-null none
IPV4:192.168.4.0/24 impl-null none
IPV4:192.168.5.0/24 impl-null none
Sent Labels : Fec Label Maps To
IPV4:10.10.0.0/24 impl-null none
IPV4:192.168.3.0/24 impl-null none
IPV4:192.168.4.0/24 impl-null none
Table 2-46 explains the show command output fields.
Table 2-46: show ldp session output fields details
Field | Description |
---|
Session state | Reports the current session state. |
Session role | Displays the status of the session role. |
TCP Connection | Details of the TCP connection. |
IP Address for TCP | Transmission control protocol IP address for the network. |
Interface | Name of interface used in the network. |
Peer LDP ID | Identifier for the peer LDP. |
Peer Password | Credential details for the neighbor. |
Authentication type | Type of authentication. |
Adjacencies | IP address for the neighbor adjacencies. |
Advertisement mode | Details of the advertisement mode. |
Label retention mode | Details of the label retention mode. |
Graceful Restart | Indicates if the peer session is “Capable” or “Not Capable”. |
Reconnect Timeout | The amount of time the router keeps the labels until session re-connection, the value is the lower value between local and remote neighbor-liveness timer. It appears when the session is GR capable. |
Recovery Timeout (max) | Indicates the amount of time for the recovery session to send the initialization message to the peer, according to the local max-recovery timer. It appears when the session is GR capable. |
Recovery Timeout [negotiated] | Indicates the actual timer value and the initial amount of time to recovery session (between brackets) that is negotiated with the peer to the lower value between local and remote values. Negotiated value 0 indicates the labels are not preserved after session disconnection. It appears when the session is GR capable. |
Keepalive Interval | Used to set the interval for sending keep-alive messages to the peer in order to maintain a session. |
Keepalive Timeout | Time-out value for rejecting a session with a peer. |
Address List received | List of address that is received from neighbor. |
Received Labels | Number of labels received from neighbor session. |
Sent Labels | Number of labels transmitted to neighbor session. |
show ldp statistics
Use this command to display LDP statistics.
Command Syntax
show ldp statistics
Parameter
None
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
The following is a sample output from the show ldp statistics command.
#show ldp statistics
=======================================================
LSR ID = 0.0.0.0:0 : TARGETED PEER: 10.10.10.10
=======================================================
PacketType Total
Sent Received
Notification 0 0
Hello 0 0
Initialization 0 0
Keepalive 0 0
Address 0 0
Address Withdraw 0 0
Label Mapping 0 0
Label Request 0 0
Label Withdraw 0 0
Label Release 0 0
Request Abort 0 0
=======================================================
#
Table 2-47 explains the show command output fields.
Table 2-47: show ldp statistics output fields details
Field | Description |
---|
LSR ID | Identifier of the LSR. |
Targeted Peer | Targeted LDP neighbor can improve the label convergence time compared to the convergence time with directly connected LDP peers when there are flapping links. |
Packet Type | Type of packet in the interface that has been received or transmitted to the neighbors. |
Total | Number of total packets that has been received and transmitted. |
show ldp statistics advertise-labels
Use this command to display the count per each operation filtered by an advertisement list.
Command Syntax
show ldp statistics advertise-labels
Parameter
None
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
The following is a sample output from the show ldp statistics advertise-labels command.
#show ldp statistics advertise-labels
Advertisement spec:
Prefix list = pfx1; Peer plist = pfx1
Deny : Label Mapping = 2
Label Request = 0
Prevent the distribution of any assigned labels
Deny : Label Mapping = 9
Label Request = 3
#
Table 2-48 explains the show command output fields.
Table 2-48: show ldp statistics advertise-labels output fields details
Field | Description |
---|
Advertisement spec | Details of the advertisement spec. |
Prefix list | It is an ordered list and entries are evaluated in order of increasing sequence number. |
Peer plist | The peer keyword enables the device to receive time requests and used to synchronize itself to the servers specified in the access list. |
Label Mapping | Number of label mapping that is denied. |
Label Request | Number of label request that is denied. |
show ldp targeted-peers
Use this command to display the list of targeted peers configured on the current LSR.
Command Syntax
show ldp targeted-peers
Parameter
None
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
The following is a sample output from the show ldp targeted-peers command.
#show ldp targeted-peers
IP Address Interface
192.168.201.2 eth1
Table 2-49 explains the show command output fields.
Table 2-49: show ldp targeted-peers output fields details
Field | Description |
---|
IP Address | Internet protocol address for the interface. |
Interface | Name of the interface. |
show ldp upstream
Use this command to display the status of all upstream sessions and label information exchanged.
Command Syntax
show ldp upstream
Parameter
None
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
The following is a sample output of the show ldp upstream command showing the status of all upstream sessions.
#show ldp upstream
Session peer 1.1.1.1:
FEC State Label Req.ID Attr
60.0.0.0/24 Established 52486 0 None
4.4.4.4/32 Established 52484 0 None
50.0.0.0/24 Established 52483 0 None
40.0.0.0/24 Established impl-null 0 None
30.0.0.0/24 Established impl-null 0 None
20.0.0.0/24 Established impl-null 0 None
10.0.2.0/24 Established impl-null 0 None
5.5.5.5/32 Established 52482 0 None
3.3.3.3/32 Established 52481 0 None
2.2.2.2/32 Established impl-null 0 None
Session peer 3.3.3.3:
FEC State Label Req.ID Attr
60.0.0.0/24 Established 52487 0 None
4.4.4.4/32 Established 52485 0 None
1.1.1.1/32 Established 52480 0 None
40.0.0.0/24 Established impl-null 0 None
30.0.0.0/24 Established impl-null 0 None
20.0.0.0/24 Established impl-null 0 None
10.0.2.0/24 Established impl-null 0 None
2.2.2.2/32 Established impl-null 0 None
Session peer 4.4.4.4:
FEC State Label Req.ID Attr
50.0.0.0/24 Established 52483 0 None
40.0.0.0/24 Established impl-null 0 None
30.0.0.0/24 Established impl-null 0 None
20.0.0.0/24 Established impl-null 0 None
10.0.2.0/24 Established impl-null 0 None
3.3.3.3/32 Established 52481 0 None
2.2.2.2/32 Established impl-null 0 None
1.1.1.1/32 Established 52480 0 None
Table 2-50 explains the show command output fields.
Table 2-50: show ldp upstream output fields details
Field | Description |
---|
Session peer | Details of the session peers. |
FEC | Displays the Forward Equivalency Class (FEC) for this entry. |
State | Reports the current session state. |
Label | Number of Label received from upstream neighbor for route. |
Req.ID | Requested session identifier for the protocol. |
Attr | The attribute is used to sent packets to a customer router. |
show ldp vpls
Use this command to display information about all VPLS instances. Specify the VPLS ID to display information about a specific VPLS instance.
Command Syntax
show ldp vpls <1-4294967295> (count|)
show ldp vpls count
show ldp vpls detail
show ldp vpls (no-vc|)
Parameter
<1-4294967295>
Display the VPLS identifier.
count
Display VPLS count from LDP standpoint.
detail
Display detailed LDP VPLS information.
no-vc
Specify not display L2VC information.
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
The following is a sample output of the show ldp vpls command displaying information about all VPLS instances.
#show ldp vpls
VPLS-ID Peer Address State Type Label-Sent Label-Rcvd
1 192.168.0.80 Up vpls 16 640
1 192.168.0.90 Up vpls 18 642
2 192.168.0.80 Up vpls 19 641
2 192.168.0.90 Up vpls 17 643
The following is an output of the show ldp vpls detail command:
#show ldp vpls detail
VPLS Identifier : 1
Peer IP : 192.168.0.80
VC State : UP
VC Type : vpls
VC Label Sent : 16
VC Label Received : 640
VPLS Identifier : 1
Peer IP : 192.168.0.90
VC State : UP
VC Type : vpls
VC Label Sent : 18
VC Label Received : 642
VPLS Identifier : 2
Peer IP : 192.168.0.80
VC State : UP
VC Type : vpls
VC Label Sent : 19
VC Label Received : 641
The following is a sample output of show ldp vpls count displaying information about total, active and inactive VPLS instances from LDP.
#show ldp vpls count
-------------------------------
Total VPLS instances : 2
Active VPLS instances : 2
Inactive VPLS instances : 0
-------------------------------
Table 2-51 explains the show command output fields.
Table 2-51: show ldp vpls output fields details
Field | Description |
---|
VPLS-ID | Identification details of the VPLS. |
Peer Addr | IP address of the peer device. |
State | Reports the current session state. |
Type | Type of protocol in network. |
Label-Sent | Number of packets transmitted to neighbor. |
Label-Rcvd | Number of packets received from neighbor. |
Total VPLS instances | Number of total VPLS instance in the protocol. |
Active VPLS instances | Number of active VPLS instance. |
Inactive VPLS instances | Number of inactive VPLS instance. |
show mpls ldp discovery
Use this command to display the sources for locally generated LDP Discovery Hello PDUs, and to indicate whether an interface is label-switching.
Command Syntax
show mpls ldp discovery
show mpls ldp discovery IFNAME
Parameter
IFNAME
Interface name.
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#show mpls ldp discovery
Interface LDP Identifier Label-switching Merge Capability
eth0 10.10.0.11:0 Disabled N/A
lo 10.10.0.11:0 Disabled N/A
eth1 10.10.0.11:0 Enabled Merge capable
eth2 10.10.0.11:0 Enabled Merge capable
vmnet1 10.10.0.11:0 Disabled N/A
Table 2-52 explains the show command output fields.
Table 2-52: show ldp discovery output fields details
Field | Description |
---|
Interface | Name of the interface. |
LDP Identifier | LDP identifier for this protocol. |
Label-switching | Status of the label-switching on interface. |
Merge Capability | Used to override the default merge capability setting of all the interfaces. |
show mpls ldp neighbor
Use this command to display LDP neighbor information.
Command Syntax
show mpls ldp neighbor
show mpls ldp neighbor detail
Parameter
detail
Details for adjacencies.
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#show mpls ldp neighbor detail
IP Address Interface Name Holdtime LDP ID
192.168.3.5 eth1 15 10.10.0.18:0
192.168.4.5 eth2 15 10.10.0.18:0
Table 2-53 explains the show command output fields.
Table 2-53: show mpls ldp neighbor output fields
Field | Description |
---|
IP Address | Address of the interface. |
Interface Name | Name of the interface. |
Holdtime | The amount of time this device waits between SPFs. |
LDP ID | Local label space ID. The first four bytes of an LDP ID is a platform IP address called the LDP router ID. The last two bytes are called the local label space ID. |
show mpls ldp parameter
Use this command to display LDP configuration parameters.
Command Syntax
show mpls ldp parameter
Parameter
None
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#show mpls ldp parameter
Router ID : 0.0.0.0
LDP Version : 1
Global Merge Capability : Merge Capable
Label Advertisement Mode : Downstream Unsolicited
Label Retention Mode : Liberal
Label Control Mode : Independent
Instance Loop Detection : Off
Request Retry : Off
Propagate Release : Disabled
Graceful Restart : Disabled
Hello Interval : 5
Targeted Hello Interval : 15
Hold time : 15
Targeted Hold time : 45
Keepalive Interval : 10
Keepalive Timeout : 30
Request retry Timeout : 5
Transport Address data :
Labelspace 0 : 192.168.201.2 (not in use)
Import BGP routes : No
Table 2-54 explains the show command output fields.
Table 2-54: show mpls ldp parameters output fields
Field | Description |
---|
Router ID | A preferred interface address for LDP router. |
LDP Version | Latest LDP version details. |
Global Merge Capability | Override the default merge capability setting of all the interfaces. |
Label Advertisement mode | Label advertisement mode details in the interface. |
Label retention mode | Label retention mode details in the interface. |
Label Control Mode | Controls the mode used for handling label binding requests on interfaces. |
Instance Loop Detection | Disables the LDP optional loop detection mechanism. |
Request Retry | Request causes the target peer to respond with targeted Hello messages. |
Propagate Release | Propagate release is disabled in the interface. |
Graceful Restart | Graceful Restart (GR) is a mechanisms to prevent routing protocol re-convergence during a processor switchover. Hello Interval - Hello interval sets the interval for sending unicast hello packets to peers. |
Targeted Hello Interval | Targeted hello interval sets the interval for sending unicast hello packets to targeted peers. |
Hold time | Hold time sets the time-out value to peers. |
Targeted Hold time | Time-out value is the time that the router waits before rejecting an adjacency with targeted peers. |
Keepalive Interval | Keepalive interval sets the interval for sending keep-alive messages to the peer in order to maintain a session. |
Keepalive Timeout | Time-out value for rejecting a session with a peer. |
Request retry Timeout | Request for the maximum retry duration (the number of retries times the length of the timeout). |
Transport Address data | Transport address advertised in LDP Discovery Hello messages sent on an interface. |
Label space | Label used in a label binding is allocated from a set of possible labels called a label space. |
Import BGP routes | The BGP Support for IP Prefix Import from Global Table into a VRF Table feature introduces the capability to import IPv4 unicast prefixes from the global routing table into a Virtual Private Network (VPN) routing/forwarding (VRF) instance table using an import route map. |