You can configure a specific instance of LDP by using the ldp statement at the [edit routing-instances routing-instance-name protocols] hierarchy level. This creates an instance of LDP for the particular VRF routing instance. You must specify all the required VRF statements and apply export and import policies to your LDP instance for the configuration to commit properly.
- [edit]
- routing-instances {
-
-
routing-instance-name {
- instance-type vrf;
- interface interface-name;
- route-distinguisher route-distinguisher;
- vrf-import import-policy-name;
- vrf-export export-policy-name;
-
- protocols {
-
- ldp {
- interface all;
- }
- }
- }
- }
Most of the LDP hierarchy levels available in a master instance are also available for specific instances of LDP. However, the no-forwarding option does not work in a VRF-based instance of LDP.
For more information about proper configuration of VRF instances, see the JUNOS VPNs Configuration Guide. For the proper syntax related to policies, see the JUNOS Policy Framework Configuration Guide.