debugging mpls ldp discovery

Function

The debugging mpls ldp discovery command enables all LDP peer discovery debugging functions and displays debugging information.

The undo debugging mpls ldp discovery command disables the LDP peer discovery debugging functions.

By default, the debugging function is disabled.

Format

debugging mpls ldp discovery { interface [ interface-type interface-num | interface-name ] | peer [ peer-id ] }

debugging mpls ldp discovery { error | events | job }

debugging mpls ldp discovery { socket [ peer-id ] [ send | receive ] | partner } [ packet ]

debugging mpls ldp discovery partner session-manager control-information [ packet ]

undo debugging mpls ldp discovery { interface [ interface-type interface-num | interface-name ] | peer [ peer-id ] }

undo debugging mpls ldp discovery { all | error | events | job }

undo debugging mpls ldp discovery { socket [ peer-id ] [ send | receive ] | partner } [ packet ]

undo debugging mpls ldp discovery partner session-manager control-information [ packet ]

Parameters

Parameter Description Value
interface interface-type interface-num

Displays debugging information about a specified interface.

-

interface-name

Specifies the interface name.

-

peer

Enables or disables the LDP peer debugging.

-

peer-id

Displays debugging information about an LDP peer with a specified LSR ID.

The value is in dotted decimal notation.

error

Displays error debugging information.

-

events

Displays event debugging information.

-

job

Displays job debugging information.

-

socket

Displays socket debugging information.

-

send

Enables or disables the socket function for sent packets.

-

receive

Enables or disables the socket function for received packets.

-

partner

Displays partner debugging information.

-

packet

Enables or disables the packet debugging.

-

session-manager

Enables the debugging function for communication between the LDP peer management module and LDP session management module.

-

control-information

Enables the debugging function for control information exchanged between the LDP session management module and other module.

-

all

Disables all debugging functions.

-

Views

User view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
mpls-ldp debug

Usage Guidelines

Usage Scenario

To view information about LDP peer discovery packets, run the debugging mpls ldp discovery command. The debugging information helps check whether the packet format is correct and whether the packets are transmitted properly if LDP session negotiation fails.

Example

# Enable partner debugging of the LDP peer discovery module.
<HUAWEI> debugging mpls ldp discovery partner packet
# Enable socket debugging of the LDP peer discovery module.
<HUAWEI> debugging mpls ldp discovery socket packet
# Enable interface debugging of the LDP peer discovery module.
<HUAWEI> debugging mpls ldp discovery interface GigabitEthernet 0/1/0
# Enable event debugging of the LDP peer discovery module.
<HUAWEI> debugging mpls ldp discovery events
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >