# SR LAN Adjacency SID (Walkthrough)

## ISIS

A LAN segment has been setup between R1, R2, and R3. R3 has been elected DIS.

Each router on the LAN advertises a **LAN-ADJ-SID**, one per node on the LAN. Each LAN-ADJ-SID sub TLV is attached to the Extended IS Reachability TLV which identifies the adjacency with the pseudonode.

<div align="left"><figure><img src="https://3072390383-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkUz2C3GqnZcWhoVL6jfk%2Fuploads%2FiVjG01tKrFxZ0hjtz1oE%2Fimage.png?alt=media&#x26;token=a6f21a65-e905-4a4c-9d25-7d34f7558b13" alt=""><figcaption></figcaption></figure></div>

We can also see this using the same **show adjacency** command. As usual, both a FRR and non-FRR Adj-SID are allocated:

<div align="left"><figure><img src="https://3072390383-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkUz2C3GqnZcWhoVL6jfk%2Fuploads%2FVZnSZlz71HTC56lMSviE%2Fimage.png?alt=media&#x26;token=dc61a2d6-dfe7-447a-8e39-a95b078c123a" alt=""><figcaption></figcaption></figure></div>

This allows SR to operate on a LAN somewhat as if the LAN was a collection of p2p links. This is because, on a LAN, the router only advertises an adjacency with the pseudonode. However, with SR, we have a LAN-ADJ-SID per node on the LAN.

The DIS does not advertise any SR information:

<div align="left"><figure><img src="https://3072390383-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkUz2C3GqnZcWhoVL6jfk%2Fuploads%2FroYASGfq6EAND1xWJUWO%2Fimage.png?alt=media&#x26;token=6cc913df-5c7a-4e27-be3a-b8bd3774ce90" alt=""><figcaption></figcaption></figure></div>

Note that while a FRR-eligible Adj-SID is allocated, these are not TI-LFA protected.

## OSPF <a href="#id-2559adb8-7a23-41a3-aaaa-1bca12db8e0e" id="id-2559adb8-7a23-41a3-aaaa-1bca12db8e0e"></a>

The OSPF LAN-Adj-SID works slightly differently. Each node advertises a normal Adj-SID with the DR, but a LAN-Adj-SID with each BDR/DROTHER.

For example, R3 is the DR. R1 advertises a LAN Adj-SID for R2, and a regular Adj SID for R1:

<div align="left"><figure><img src="https://3072390383-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkUz2C3GqnZcWhoVL6jfk%2Fuploads%2FJ1jBDagu1Hk2AcUKIwaC%2Fimage.png?alt=media&#x26;token=056d5d3b-667e-4a81-b4dd-27f102eaf72b" alt=""><figcaption></figcaption></figure></div>

The DR will have a LAN-Adj-SID with all nodes on the LAN:

<div align="left"><figure><img src="https://3072390383-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkUz2C3GqnZcWhoVL6jfk%2Fuploads%2FMZyH2Tl4OhtBU4KtmrnK%2Fimage.png?alt=media&#x26;token=79e9828f-7f00-42ad-b92f-eda160df8606" alt=""><figcaption></figcaption></figure></div>
