> For the complete documentation index, see [llms.txt](https://ccie-sp.gitbook.io/ccie-spv5.1-labs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ccie-sp.gitbook.io/ccie-spv5.1-labs/labs/isis/default-route-preference.md).

# Default Route Preference

Load **isis.inter.area.cfg**&#x20;

```
#IOS-XE
config replace flash:isis.inter.area.cfg

#IOS-XR
configure
load bootflash:isis.inter.area.cfg
commit replace
y
```

<figure><img src="https://3072390383-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkUz2C3GqnZcWhoVL6jfk%2Fuploads%2FiTxgc4tnJ7cB7yOsQRJE%2Fimage.png?alt=media&amp;token=8354f8f6-700e-489d-a23d-5ecdfe36d154" alt=""><figcaption></figcaption></figure>

Configure area 49.1234 so that R2 prefers R3 for the default route, and only uses R4 upon loss of R3. Do not use metrics to achieve this.

## Answer <a href="#id-8906312a-d34a-45ad-b14e-45f72cc89965" id="id-8906312a-d34a-45ad-b14e-45f72cc89965"></a>

```
#R3
route-map SET_L1
 set level level-1
!
router isis
 default-information originate route-map SET_L1
```

## Explanation <a href="#id-3bb40c1b-d822-4711-b44b-6d2165b71701" id="id-3bb40c1b-d822-4711-b44b-6d2165b71701"></a>

ISIS allows us to originate a default route just like OSPF. An L1 router will prefer an explicit 0/0 route that is advertised in the area over using the ATT bit.

By default, when a router uses **default-information originate**, the default is only injected into L2. To set L1 only, or L1/L2, we must use a route-map.

```
#R3
route-map SET_L1
 set level level-1
!
router isis
 default-information originate route-map SET_L1
```

R2 now sees an explicit 0/0 route advertised from R3:

<div align="left"><figure><img src="https://3072390383-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkUz2C3GqnZcWhoVL6jfk%2Fuploads%2Fe8mN9LqWb0e9XKV0o5as%2Fimage.png?alt=media&amp;token=43100a55-03ab-464e-9b94-ece126d20c33" alt=""><figcaption></figcaption></figure></div>

Due to this, R2 only uses R3 as its default route:

<div align="left"><figure><img src="https://3072390383-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkUz2C3GqnZcWhoVL6jfk%2Fuploads%2FPttgXbDzUoEw4G3BqHeN%2Fimage.png?alt=media&amp;token=6a23a184-6bf5-4052-b6a1-99f08efad84f" alt=""><figcaption></figcaption></figure></div>

We can see the ISIS RIB still has both 0/0 routes generated from the ATT bit set on R3 and R4, but the explicit 0/0 is preferred and installed:

<div align="left"><figure><img src="https://3072390383-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkUz2C3GqnZcWhoVL6jfk%2Fuploads%2FkFcaswDgCwClw7a3Qqe1%2Fimage.png?alt=media&amp;token=4f107f7d-5251-4f15-a7d2-52fd1eb7ad10" alt=""><figcaption></figcaption></figure></div>
