debugging mpls ldp session (socket and partner)

Function

The debugging mpls ldp session command enables debugging functions of the MPLS LDP session management module and displays debugging information.

The undo debugging mpls ldp session command disables the MPLS LDP session debugging functions.

By default, the debugging function is disabled.

Format

debugging mpls ldp session { socket [ peer-id ] [ keepalive | init | label ] [ send | receive ] | partner } [ packet ]

undo debugging mpls ldp session { socket [ peer-id ] [ keepalive | init | label ] [ send | receive ] | partner } [ packet ]

Parameters

Parameter Description Value
socket

Enables or disables the socket debugging.

-

peer-id

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

This value is in dotted decimal notation.

keepalive

Enables or disables the socket function for Keepalive packets.

-

init

Enables or disables the socket function for initialization packets.

-

label

Enables or disables the socket function for label packets.

-

send

Enables or disables the socket function for sent packets.

-

receive

Enables or disables the socket function for received packets.

-

partner

Enables or disables the partner debugging.

-

packet

Enables or disables the packet debugging.

-

Views

User view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
mpls-ldp debug

Usage Guidelines

Usage Scenario

To view LDP session debugging information, run the debugging mpls ldp session 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 the socket debugging of the LDP session module.
<HUAWEI> debugging mpls ldp session socket packet
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >