# Autoroute Announce Absolute Metric

Load **mpls.te.autoroute.announce.metric.xr.init.cfg**

```
#IOS-XE
config replace flash:mpls.te.base.config.with.isis.cfg

#IOS-XR
configure
load bootflash:mpls.te.base.config.with.isis.cfg
commit replace
```

Setup a dynamic TE tunnel from XR11 to CSR9. Configure autoroute annouce so that R8, R1, R4, and R9 are only reachable via the tunnel interface. But make sure that all destinations have the same exact IGP cost in the RIB.

## Answer <a href="#id-5ea03718-fb2d-4da7-b0fc-e6123da48732" id="id-5ea03718-fb2d-4da7-b0fc-e6123da48732"></a>

The autoroute annouce absolute metric knob sets the static metric for the tunnel, and also uses this same metric for any destinations beyond the tunnel. Destinations beyond the tunnel do not increment in IGP cost.

```
#XRv11
int tunnel-te0
 autoroute announce metric absolute 19
```

<div align="left"><figure><img src="/files/5yRXxXTygOFtzCziyVKD" alt=""><figcaption></figcaption></figure></div>

Note that this metric change happens *after* SPF has fully run. So for example, if we set this to 21, then the tunnel will not be used to get to R1, R4, and R8, even though those routes have a total IGP cost of 30. Additionally, the tunnel will not be used to R9 since the tunnel cost (21) is higher than the IGP cost to R9 (20).

```
#XRv11
int tunnel-te0
 autoroute announce metric absolute 21
```

<div align="left"><figure><img src="/files/E9g79NJ0D2FtjCmnkqcr" alt=""><figcaption></figcaption></figure></div>

Interestingly, setting this to 20 also removes any ECMP paths. This is because the IGP paths have a higher cost than the TE paths once the **metric absolute** command adjusts the TE paths from 30 down to 20.

```
#XRv11
int tunnel-te0
 autoroute announce metric absolute 20
```

<div align="left"><figure><img src="/files/rk4IaXy22F9sEfxHzfLd" alt=""><figcaption></figcaption></figure></div>

Compare this to simply using **autoroute announce** with the default metric of 20:

```
#XRv11
int tunnel-te0
 autoroute announce
  no metric absolute 20
```

<div align="left"><figure><img src="/files/ls0KEQEzPtVsJ0QRpLSH" alt=""><figcaption></figcaption></figure></div>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ccie-sp.gitbook.io/ccie-spv5.1-labs/labs/mpls-te/autoroute-announce-absolute-metric.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
