> 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/non-optimal-intra-area-routing.md).

# Non-Optimal Intra-Area routing

Load **isis.non-optimal.intra-area.cfg**

```
#IOS-XE
config replace flash:isis.non-optimal.intra-area.cfg

#IOS-XR
configure
load bootflash:isis.non-optimal.intra-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%2FRmTIQKC1bg0kiO7wyAS5%2Fimage.png?alt=media&amp;token=5e47e3a4-5053-430b-a419-be81aa01d14c" alt=""><figcaption></figcaption></figure>

R1 is now connected to both R3 and R4.

Shutdown the R1-R3 link and do a traceroute to 1.1.1.1 from R3. Traffic is from R3 to R1 is flowing to R2, R4 and then R1. Explain the issue and find a way to fix it so that traffic takes the path R3-R4-R1.

## Answer <a href="#a8bf7ef8-c36c-4125-9dd9-152e8f195e07" id="a8bf7ef8-c36c-4125-9dd9-152e8f195e07"></a>

```
#R3, R4
interface GigabitEthernet2.34
 no isis circuit-type level-2-only
```

## Explanation <a href="#id-459e7d25-7be6-4cdf-9b32-6fa4448d4e16" id="id-459e7d25-7be6-4cdf-9b32-6fa4448d4e16"></a>

The reason for this non-optimal routing is because the R3-R4 link is level-2-only. Routers prefer intra-area routes over inter-area routes. This means an L1 route is preferred over an L2 route. Even though R3 and R4 are in the same area, they only have an L2 adjacency. The route to 1.1.1.1 via R4 is an L2 route, which although a shorter metric, loses against the higher metric L1 route via R2.

<div align="left"><figure><img src="https://3072390383-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkUz2C3GqnZcWhoVL6jfk%2Fuploads%2FGC0EfJiWQVPaT1MiYozv%2Fimage.png?alt=media&amp;token=4abe7fcc-afeb-4532-8cc6-68e2baebc72b" alt=""><figcaption></figcaption></figure></div>

When we allow the R3-R4 adjacency to be both L1/L2 (which it would be by default, when you remove the **level-2-only** circuit-type), R3 now has a L1 path via R4.

<div align="left"><figure><img src="https://3072390383-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkUz2C3GqnZcWhoVL6jfk%2Fuploads%2FciHsLSrGuDvtPqHxSDEz%2Fimage.png?alt=media&amp;token=7dcc946e-dc4c-4a02-91b0-73ec43d2a826" alt=""><figcaption></figcaption></figure></div>

In OSPF, this problem manifests itself as whether to put a link in either area 0 or area 1 (for example). There is a trade off between using either one. Either you will use the link for intra-area paths to area 0 or area 1 but never both. However, with ISIS, we can form both an L1 and L2 adjacency which results in no trade off. In OSPF, we now have the recent multi-area interface configuration which allows an interface to participate in two areas at once (**ip ospf multi-area**).
