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-1 explains the show command output fields.
Table 2-1: 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-2 explains the show command output fields.
Table 2-2: 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-3 explains the show command output fields.
Table 2-3: 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 = prefix1; Peer plist = peer1
Deny : Label Mapping = 1
Label Request = 0
Table 2-4 explains the show command output fields.
Table 2-4: 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.
Example
The following is an output from the show ldp downstream command showing the status of all downstream sessions.
#show ldp downstream
Session peer 1.1.1.1:
FEC Nexthop Addr State Label Req.ID Attr
20.0.0.0/24 connected Established impl-null 0
10.0.2.0/24 connected Established impl-null 0
1.1.1.1/32 20.0.0.1 Established impl-null 0
Session peer 3.3.3.3:
FEC Nexthop Addr State Label Req.ID Attr
60.0.0.0/24 connected Established 52481 0
50.0.0.0/24 30.0.0.2 Established impl-null 0
30.0.0.0/24 connected Established impl-null 0
10.0.2.0/24 connected Established impl-null 0
5.5.5.5/32 30.0.0.2 Established 52480 0
3.3.3.3/32 30.0.0.2 Established impl-null 0
Session peer 4.4.4.4:
FEC Nexthop Addr State Label Req.ID Attr
50.0.0.0/24 connected Established 52483 0
40.0.0.0/24 connected Established impl-null 0
10.0.2.0/24 connected Established impl-null 0
5.5.5.5/32 40.0.0.2 Established 52480 0
60.0.0.0/24 40.0.0.2 Established impl-null 0
4.4.4.4/32 40.0.0.2 Established impl-null 0
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-5 explains the show command output fields.
Table 2-5: 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. |
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.
Example
#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 Nexthop Addr
1.1.1.1/32 NL> 1.1.1.1 impl-null 20.0.0.1
2.2.2.2/32 E > non-existent none connected
3.3.3.3/32 NL> 3.3.3.3 impl-null 30.0.0.2
4.4.4.4/32 NL> 4.4.4.4 impl-null 40.0.0.2
5.5.5.5/32 NL> 4.4.4.4 impl-null 40.0.0.2
NL> 3.3.3.3 impl-null 30.0.0.2
20.0.0.0/24 NL 1.1.1.1 impl-null invalid
E > non-existent none connected
30.0.0.0/24 NL 3.3.3.3 impl-null invalid
E > non-existent none connected
40.0.0.0/24 NL 4.4.4.4 impl-null invalid
E > non-existent none connected
50.0.0.0/24 NL 4.4.4.4 impl-null invalid
NL> 3.3.3.3 impl-null 30.0.0.2
60.0.0.0/24 NL> 4.4.4.4 impl-null 40.0.0.2
NL 3.3.3.3 impl-null invalid
Table 2-6 shows the codes at the end of each route entry that indicate where the route originated.
Table 2-6: 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. |
Table 2-7 explains the show command output fields.
Table 2-7: 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. |
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-SP version 4.0. and the command was updated in OcNOS-SP version 4.1.
Examples
#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-SP 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-8: 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-9 explains the show command output fields.
Table 2-9: 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.
Example
The following is a sample output from the show ldp lsp prefix detail command displaying LDP LSP prefix information with advertise-label information.
#show ldp lsp prefix detail
Advertisement spec:
Prefix acl = pfx1; Peer acl = pfx1
Prevent the distribution of any assigned labels
FEC IPV4:1.1.1.0/30 -> 0.0.0.0
Downstream state: Established Label: impl-null RequestID: 0 Peer: 50.50.50.50
Attr:
Advert acl(s): Prevent the distribution of any assigned labels
FEC IPV4:3.3.3.0/30 -> 0.0.0.0
Advert acl(s): Prevent the distribution of any assigned labels
FEC IPV4:10.30.0.0/24 -> 0.0.0.0
Downstream state: Established Label: impl-null RequestID: 0 Peer: 50.50.50.50
Attr:
Advert acl(s): Prevent the distribution of any assigned labels
FEC IPV4:50.50.50.50/32 -> 1.1.1.1
Advert acl(s): Prefix acl = pfx1; Peer acl = pfx1
FEC IPV4:55.55.55.55/32 -> 3.3.3.2
Advert acl(s): Prevent the distribution of any assigned labels
FEC IPV4:169.254.0.0/16 -> 0.0.0.0
Downstream state: Established Label: impl-null RequestID: 0 Peer: 50.50.50.50
Attr:
Advert acl(s): Prevent the distribution of any assigned labels
Table 2-10 explains the show command output fields.
Table 2-10: show ldp lsp output fields details
Field | Description |
---|
Advertisement spec | Details of the advertisement spec. |
Prefix acl | The label is advertised to all peers permitted by the peer acl. |
Peer acl | The prefix acl permits the prefix and there is a peer acl. |
Downstream state | Details of the downstream state. |
Established Label | LSP established by the Downstream on Demand method of label distribution. |
Req.ID | Request identifier for the protocol. |
Peer | Details of the peer. |
Attr | The attribute is used to sent packets to a customer router. |
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-11 explains the show command output fields.
Table 2-11: 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 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.
Example
#show ldp routes
Prefix: 0.0.0.0/0 Nexthop: 10.0.2.2 IFINDEX: 2
Prefix: 1.1.1.1/32 Nexthop: 20.0.0.1 IFINDEX: 3
Prefix: 2.2.2.2/32 Nexthop: 0.0.0.0 IFINDEX: 1
Prefix: 3.3.3.3/32 Nexthop: 30.0.0.2 IFINDEX: 4
Prefix: 4.4.4.4/32 Nexthop: 40.0.0.2 IFINDEX: 5
Prefix: 5.5.5.5/32 Nexthop: 30.0.0.2 IFINDEX: 4
Nexthop: 40.0.0.2 IFINDEX: 5
Prefix: 20.0.0.0/24 Nexthop: 0.0.0.0 IFINDEX: 3
Prefix: 30.0.0.0/24 Nexthop: 0.0.0.0 IFINDEX: 4
Prefix: 40.0.0.0/24 Nexthop: 0.0.0.0 IFINDEX: 5
Prefix: 50.0.0.0/24 Nexthop: 30.0.0.2 IFINDEX: 4
Prefix: 60.0.0.0/24 Nexthop: 40.0.0.2 IFINDEX: 5
Table 2-12 explains the show command output fields.
Table 2-12: show ldp routes output fields details
Field | Description |
---|
Prefix | Details of the network address prefix. |
Nexthop | Displays the IP address of the next hop. |
IFINDEX | Displays an interface index. |
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-13 explains the show command output fields.
Table 2-13: 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-14 explains the show command output fields.
Table 2-14: 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 acl = pfx1; Peer acl = pfx1
Deny : Label Mapping = 2
Label Request = 0
Prevent the distribution of any assigned labels
Deny : Label Mapping = 9
Label Request = 3
#
Table 2-15 explains the show command output fields.
Table 2-15: show ldp statistics advertise-labels output fields details
Field | Description |
---|
Advertisement spec | Details of the advertisement spec. |
Prefix acl | It is an ordered list and entries are evaluated in order of increasing sequence number. |
Peer acl | 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-16 explains the show command output fields.
Table 2-16: 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-17 explains the show command output fields.
Table 2-17: 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-18 explains the show command output fields.
Table 2-18: 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-19 explains the show command output fields.
Table 2-19: 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-20 explains the show command output fields.
Table 2-20: 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-21 explains the show command output fields.
Table 2-21: 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. |