38
Resetting LDP sessions
Changes to LDP session parameters take effect only on new LDP sessions. To apply the changes to
an existing LDP session, you must reset all LDP sessions by executing the
reset mpls ldp
command.
Execute the
reset mpls ldp
command in user view.
Task Command
Remarks
Reset LDP
sessions.
reset mpls ldp
[
vpn-instance
vpn-instance-name
] [
peer
peer-id
]
If you specify the
peer
keyword, this
command resets the LDP session to the
specified peer without validating the
session parameter changes.
Enabling SNMP notifications for LDP
This command enables generating SNMP notifications for LDP upon LDP session changes, as
defined in RFC 3815. For LDP event notifications to be sent correctly, you must also configure SNMP
on the device. For more information about SNMP configuration, see the network management and
monitoring configuration guide for the device.
To enable SNMP notifications for LDP:
Step Command Remarks
1.
Enter system view.
system-view
N/A
2.
Enable SNMP
notifications for LDP.
snmp-agent trap enable ldp
By default, SNMP notifications for
LDP are enabled.
Displaying and maintaining LDP
Execute
display
commands in any view.
Task Command
Display LDP discovery information.
display mpls ldp discovery
[
vpn-instance
vpn-instance-name
]
[ [
interface
interface-type interface-number
|
peer
peer-lsr-id
]
[
ipv6
] | [
targeted-peer
{
ipv4-address
|
ipv6-address
} ] ]
[
verbose
]
Display LDP FEC-label mapping
information.
display mpls ldp fec
[
vpn-instance
vpn-instance-name
]
[
ipv4-address mask-length
|
ipv6-address prefix-length
| [
ipv6
]
[
summary
] ]
Display LDP-IGP synchronization
information.
display mpls ldp igp sync
[
interface
interface-type
interface-number
]
Display LDP interface information.
display mpls ldp interface
[
vpn-instance
vpn-instance-name
]
[
interface-type interface-number
] [
ipv6
]
Display LDP LSP information.
display mpls ldp lsp
[
vpn-instance
vpn-instance-name
]
[
ipv4-address mask-length
|
ipv6-address prefix-length
|
ipv6
]
Display LDP running parameters.
display mpls ldp parameter
[
vpn-instance
vpn-instance-name
]
Display LDP peer and session
information.
display mpls ldp peer
[
vpn-instance
vpn-instance-name
]
[
peer-lsr-id
] [
verbose
]