9 mins read

LDP track-igp-metric

1. Intro

In this post we will demonstrate the impact of LDP track-igp-metric.

The setup is the one from the diagram below, where R1 receives the 3.3.3.0/24 prefix via BGP from R9 and R6. Depending on whether track-igp-metric command is configured or not, R1 will prefer either R9 or R6 to reach 3.3.3.0/24.

2. Initial config

The initial config is the basic one, with LDP activated on the 2 interfaces and the loopback:

We can see the remote loopbacks in the inet.3 table. By default, the LDP routes have a metric of 1 – because there is no metric in LDP FEC.

3. No track-igp-metric configured

The LDP default metric 1 will have an impact on the 3.3.3.0/24 prefix.

We want to use the 17.0.0.9 router for routing to 3.3.3.0/24, because it is closer to R1, but this is not happening at the moment:

4. Configure track-igp-metric

With the track-igp-metric knob configured, R1 will use the IGP metric also in LDP.

BGP will see that LDP metric, will compare, so it will use the 17.0.0.9 for routing to 3.3.3.0/24.

Note: The track-igp-metric command has only local significance. It will not impact the metric on any other router.


External Resources:

Leave a Reply

Your email address will not be published. Required fields are marked *