display mpls ldp discovery

Use display mpls ldp discovery to display LDP discovery information.

Syntax

display mpls ldp discovery [ vpn-instance vpn-instance-name ] [ interface interface-type interface-number | peer peer-lsr-id | targeted-peer ipv4-address ] [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

vpn-instance vpn-instance-name: Displays LDP discovery information for the specified MPLS L3VPN instance. The vpn-instance-name argument represents the VPN instance name, a case-sensitive string of 1 to 31 characters. If you do not specify a VPN instance, this command displays LDP discovery information for the public network.

interface interface-type interface-number: Displays information about basic discovery that uses the specified interface to send Link Hellos. The interface-type interface-number argument represents the interface type and number.

peer peer-lsr-id: Displays information about both basic and extended discovery mechanisms that have discovered the specified LDP peer. The peer-lsr-id argument represents the LSR ID of the LDP peer.

targeted-peer: Displays information about extended discovery that has sent Targeted Hellos to the specified LDP peer.

ipv4-address: Specifies the IPv4 address of the LDP peer.

verbose: Displays detailed LDP discovery information. If you do not specify this keyword, the command displays brief LDP discovery information.

Usage guidelines

If you do not specify the interface, peer, or targeted-peer keyword, this command displays all LDP IPv4 basic and extended discovery information.

Examples

# Display brief LDP IPv4 discovery information for the public network.

<Sysname> display mpls ldp discovery
     Type: L - Link Hello, T - Targeted Hello
Discovery Source              Hello Sent/Rcvd       Peer LDP ID
(L) Vlan10                    83/80                 100.100.100.18:0
                                                    200.100.100.18:0
(T) 100.100.100.18            23/20                 100.100.100.18:0

Table 10: Command output

Field

Description

Type

Type of LDP discovery:

  • L—Basic discovery, which sends Link Hellos to discover peers.

  • T—Extended discovery, which sends Targeted Hellos to discover peers.

Discovery Source

Discovery source.

  • If the LDP discovery type is L, this field displays the interface that discovers the peer.

  • If the LDP discovery type is T, this field displays the IPv4 address of the peer.

Hello Sent/Rcvd

Number of hellos sent to the peer/number of hellos received from the peer.

Peer LDP ID

LDP identifier of the LDP peer.

# Display detailed LDP IPv4 discovery information for the public network.

<Sysname> display mpls ldp discovery verbose
Link Hellos:
  Interface Vlan-interface10
    Hello Interval   : 5000 ms            Hello Sent/Rcvd  : 83/160
    Transport Address: 100.100.100.17
    Peer LDP ID      : 100.100.100.18:0
      Source Address : 202.118.224.18     Transport Address: 100.100.100.18
      Hello Hold Time: 15 sec (Local: 15 sec, Peer: 15 sec)
    Peer LDP ID      : 100.100.100.20:0
      Source Address : 202.118.224.20     Transport Address: 100.100.100.20
      Hello Hold Time: 15 sec (Local: 15 sec, Peer: 15 sec)

Targeted Hellos:
  100.100.100.17 -> 100.100.100.18 (Active, Passive)
    Hello Interval   : 15000 ms           Hello Sent/Rcvd  : 23/20
    Transport Address: 100.100.100.17
    Peer LDP ID      : 100.100.100.18:0
      Source Address : 100.100.100.18     Transport Address: 100.100.100.18
      Hello Hold Time: 45 sec (Local: 45 sec, Peer: 45 sec)
  100.100.100.17 -> 100.100.100.20 (Active, Passive)
    Hello Interval   : 15000 ms           Hello Sent/Rcvd  : 23/22
    Transport Address: 100.100.100.17
    Peer LDP ID      : 100.100.100.20:0
      Source Address : 100.100.100.20     Transport Address: 100.100.100.20
      Hello Hold Time: 45 sec (Local: 45 sec, Peer: 45 sec) 

Table 11: Command output

Field

Description

Link Hellos

Information about basic discovery that sends Link Hellos on interfaces.

In a non-point-to-point network, an interface might discover multiple peers.

Interface

Interface using basic discovery.

Hello Interval

Hello interval in milliseconds.

Hello Sent/Rcvd

Number of Hellos sent or received on the interface.

Transport Address

Local transport address.

Peer LDP ID

LDP identifier of the LDP peer.

Source Address

Source IP address of received Hello messages.

Destination Address

Destination IP address of received Hello messages.

Transport Address

Transport address in the received Hello messages—the transport address of the LDP peer.

Hello Hold Time

Hello hold time in seconds.

  • Local—Local hello hold time.

  • Peer—Peer hello hold time.

The negotiated hello hold time is the smaller value of the local and peer hold time values.

Targeted Hellos

Information about extended LDP discovery that sends Targeted Hellos to peers.

100.100.100.17 -> 100.100.100.18 (Active, Passive)

  • The address before -> (100.100.100.17 in this example) is the local IP address.

  • The address after -> (100.100.100.18 in this example) is the peer IP address.

  • (Active) indicates that the local LSR is the Targeted Hello sender.

  • (Passive) indicates that the local LSR is the Targeted Hello receiver.

  • (Active, Passive) indicates that the local LSR is both the Targeted Hello sender and receiver.