Use this command to enable LDP as the label distribution protocol.
ipv4 | Specifies IPv4 as the network address type. |
ipv6 | Specifies IPv6 as the network address type. |
graceful-restart | (Optional) Specifies that this LDP entity is restart-capable. |
The MPLS label distribution protocol is disabled by default.
Global router or named VRF global configuration mode.
Specify the IPv4 address type if LDP will be used in an IPv4 network. In an IPv4 network, the related LSR ID is automatically set to the default value. To explicitly set an LSR ID for an IPv4 network use mpls ldp-lsr-id. Specify the IPv6 address type if LDP will be used in an IPv6 network. In an IPv6 network, the related LSR ID must be explicitly set using mpls ldp-lsr-id.
Use the graceful-restart option to configure and notify all LDP peers that this LDP entity is enabled for graceful-restart. Graceful restart must also be enabled for all routing protocols enabled on the router: BGP, OSPF, and IS-IS.
The “no” form of this command disables the LDP MPLS label distribution protocol.
This example shows how to enable LDP MPLS label distribution for an IPv4 network on the VRF vpnA:
System(rw)->router vpnA System(su-vpnA)->configure System(su-vpnA-config)->mpls label-protocol-ldp ipv4 System(su-vpnA-config)->