LDP/IGP Sync (ISIS)
Load isis.cfg
Configure LDP authentication for XR2 on XR1, using pass LDP1920. Do not configure XR2.
Configure LDP authentication for R6 on XR1, using pass LDP619. Do not configure R6.
Configure LDP for all routers using autoconfig under ISIS
Configure LDP sync so that all traffic from R1 to XR2 is always sent over R5-XR1 instead of R6-XR1 when LDP is not between R6-XR1.
Configure the XR1-R6 link so that the IGP waits for LDP to be up for 20 seconds before reducing the metric.
Configure ISIS for wide-style metrics on all routers.
Answer
Explanation
MPLS LDP/IGP sync for ISIS works very much the same as OSPF. The one small difference is that the max link metric for wide metrics is not (max-1), instead it is (max-2). This is because 16777215 has a special meaning in ISIS, which is that the link should be completely excluded from the graph. So instead, 16777214 is used as the “max metric.”
Also, note that when enabling LDP sync for ISIS on IOS-XR, we must apply this to each interface individually. This is a bit cumbersome. You could use an apply-group instead.
Verification
Currently, XR1 is not in sync with R6 or XR20 due to the LDP auth mismatch. We can verify this on XR1 using show mpls ldp igp sync.
There are alternative routes to all prefixes, except for XR2’s loopback. XR2 is essentially a stub router. Notice that the metric is (max-2), not (max-1). The LDP/IGP sync feature will never make prefixes unreachable, it just discourages the use of links by setting the metric value as high as possible.
16777215 (max-1) has a special meaning in ISIS, which is that the link should be considered unusable. IOS-XR allows us to set this metric manually using “maximum” and warns us that all routers will exclude this link from their SPF.
If we set this, the metric will still be 16777214 since LDP is not sync’ed yet. (Essentially, the rule is: If LDP is not synced, metric=(max-2)). If we bring up LDP on XR2, we can cause XR2 to become unreachable due to this (max-1) metric value on the link.
Now the prefix to 20.20.20.20/32 is not even present in the RIB:
Moving on to R6-XR1. Just like with OSPF, the ISIS interface metric for R6-XR1 is still configured as 10, so that is the value shown in the ISIS show output on XR1:
However, if we inspect the database, we see that the metric is actually (max-2) right now. Note that the link type is broadcast, and XR1 is the DIS.
Let’s bring up the R6-XR1 LDP session and verify that the sync delay works on IOS-XR.
Last updated