# Conditional ATT Bit

Load **isis.inter.area.cfg**

```
#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%2FXzMjLtro0rCaNxQoTCPa%2Fimage.png?alt=media&#x26;token=189ff671-f892-46dc-9a56-005f1454da33" alt=""><figcaption></figcaption></figure>

Configure R4 so that it only sets the attached bit for area 49.1234 when the prefix 200.200.200.200/32 is present in the routing table.

## Answer <a href="#id-454e6e1c-2128-4020-b825-74b7579f92ec" id="id-454e6e1c-2128-4020-b825-74b7579f92ec"></a>

```
#R4
ip prefix-list LO200 permit 200.200.200.200/32
!
route-map ISIS_ATT
 match ip add prefix LO200
!
router isis
 set-attached-bit route-map ISIS_ATT
```

## Explanation <a href="#bbe83d2a-5b28-4a1c-84b3-53d3aa5344ce" id="bbe83d2a-5b28-4a1c-84b3-53d3aa5344ce"></a>

The ISIS command **set-attached-bit** provides a way to control when the router sets the ATT bit in its L1 LSP.

Currently the prefix 200.200.200.200/32 is not present in the RIB, so R4 clears the ATT bit from its LSP. We can verify this on any L1 router in the area.

<figure><img src="https://3072390383-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkUz2C3GqnZcWhoVL6jfk%2Fuploads%2Fc1jBrZ5yiJpOxQUyWP1D%2Fimage.png?alt=media&#x26;token=0bb53720-4ca5-466f-a45c-47d39207dde0" alt=""><figcaption></figcaption></figure>

If we inject 200.200.200.200/32 on any router, for example XR2, R4 should begin setting the ATT bit again.

```
#XR2
int lo200
 ip add 200.200.200.200/32
!
router isis 1
 int lo200
  passive
  add ipv4 
```

On R4, the route-map now evaluates to “True,” so the attached bit is set again:

<div align="left"><figure><img src="https://3072390383-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkUz2C3GqnZcWhoVL6jfk%2Fuploads%2FMBdyAOZTXaTAaHUW1AOT%2Fimage.png?alt=media&#x26;token=1d9310d6-26c9-4793-8a8b-0140162d276e" alt=""><figcaption></figcaption></figure></div>
