clear mpls ldp neighbor

Use this command to reset an LDP session with the specified or all neighbors.

Syntax

clear mpls ldp neighbor [vrf vrf-name] {ip-address | all}

Parameters

vrf vrf-name (Optional) Specifies the name of the VRF to which the command will be applied
ip-address Specifies the neighbor IP address associated with the session to be cleared.
all Specifies that all LDP sessions for this router context are cleared.

Defaults

  • If the VRF option is not specified, the global router context is applied to this command.

Mode

Global router or named VRF global configuration mode.

Examples

This example shows how to reset all LDP sessions for VRF vpnA:

System(rw)->router vpnA
System(su-vpnA)->configure
System(su-vpnA-config)->clear mpls ldp neighbor vrf vpnA all
System(su-vpnA-config)->