[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]

Configuring Multiple-Instance LDP

To configure multiple instances of LDP, you must perform the following tasks:

Configuring a Master LDP Instance

The master LDP instance is configured at the [edit protocols] hierarchy level:

[edit]
protocols {
ldp {
apply-groups group-name;
deaggregate | no-deaggregate;
egress-policy policy-name;
explicit-null;
export policy-name;
import policy-name;
interface interface-name {
disable;
hello-interval seconds;
hold-time seconds;
deaggregate | no-deaggregate;
transport-address (interface | loopback);
}
keepalive-interval seconds;
keepalive-timeout seconds;
no-forwarding;
preference preference;
traceoptions {
file filename <replace> <size size> <files number> <no-stamp>
<(world-readable | no-world-readable)>;
flag flag <flag-modifier> <disable>;
}
track-igp-metric;
traffic-statistics {
file;
interval;
}
transport-address (interface | loopback);
}
}

Configuring a VRF-Based LDP Instance

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.


[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]