Resetting LDP neighbors

The LDP sessions are automatically reestablished when at least one "hello" adjacency exists with the neighbor, and LDP configuration remains unchanged.

Enter the clear mpls ldp neighbor command to terminate an LDP session.
device# clear mpls ldp neighbor 10.234.123.64
In this example, both the link and targeted LDP sessions on neighbor 10.234.123.64 are terminated. When the all option is specified instead of a peer address, all LDP sessions on the device are reset.

When the session re-establishes, the session-specific information is re-learned from its peer:

  • LDP downstream and upstream label database displayed by the show mpls ldp database command.
  • LDP label switched path displayed by the show mpls ldp path command.
  • LDP peer displayed by the show mpls ldp peer command
  • LDP created MPLS tunnels displayed by the show mpls ldp tunnel command.
  • LDP FECs learned from the resetting neighbor sessions displayed by the show mpls ldp fec command. FECs are not cleared immediately but are marked that no LDP session exists.