Skip to main content
Version: 7.26

IS-IS

IS-IS (Intermediate System to Intermediate System) is an Interior Gateway Protocol (IGP) that distributes IP routing information inside one autonomous system. It was designed for CLNP and later extended for IP (Integrated IS-IS). RouterOS uses it for IPv4 and IPv6.

IS-IS is a link-state protocol. Each router describes its links and prefixes in a Link State PDU (LSP) and floods it to all routers of the same level. Every router then has the same database and computes the shortest path to each destination from it.

IS-IS routes in two levels. Level 1 (L1) routing runs inside an area. Level 2 (L2) routing connects the areas. A router can take part in L1, in L2 or in both (an L1/L2 router at the edge of an area).

Standards​

  • RFC 1195 Use of OSI IS-IS for Routing in TCP/IP and Dual Environments
  • RFC 5302 Domain-Wide Prefix Distribution with Two-Level IS-IS
  • RFC 5303 Three-Way Handshake for IS-IS Point-to-Point Adjacencies
  • RFC 5305 IS-IS Extensions for Traffic Engineering (only wide metric support)
  • RFC 5308 Routing IPv6 with IS-IS

Terms​

  • IS (Intermediate System) - a router.
  • LSP (Link State PDU) - a router's description of its links, neighbors and prefixes. RouterOS shows the database in /routing/isis/lsp.
  • SPF (shortest path first) - the algorithm that computes routes from the LSP database.
  • Adjacency - a link to a neighbor router after the Hello exchange. RouterOS shows adjacencies in /routing/isis/neighbor.
  • DIS (Designated Intermediate System) - the router that represents a broadcast link in the database and keeps the routers on it synchronized. L1 and L2 elect separate DISs.
  • Level 1 (L1) routing - routing inside an area. L1 routers form adjacencies only with routers of the same area.
  • Level 2 (L2) routing - routing between areas.
  • NSAP (Network Service Access Point) - the address that identifies an IS-IS node.
  • NET (Network Entity Title) - an NSAP address with the last byte set to zero.

Addresses: area and system ID​

IS-IS uses OSI addressing. The NSAP address belongs to the node, not to an interface. It has these parts:

+-----+------+-----------+----+
| AFI | Area | System-ID | NS |
+-----+------+-----------+----+
  • AFI - the first byte, which defines the meaning of the rest of the address.
  • Area ID - two bytes.
  • System ID - six bytes, unique for each router.
  • NS (N-selector) - one byte, always zero for IS-IS.

The address is written in hexadecimal, in groups separated by dots. For example, the NET 49222211112222aded00 is written as 49.2222.1111.2222.aded.00:

  • The first dot follows the AFI (2 characters).
  • The Area ID follows (4 characters).
  • The System ID follows as three groups of 4 characters.
  • The last dot separates the System ID from the N-selector.

RouterOS splits the NET into two instance properties. The AFI and the Area ID (the first three bytes) go into areas, and the System ID goes into system-id. The N-selector is always zero and is not configured.

AFI 49 is the private address space, like the IPv4 private ranges. Some other vendors' routers can require a specific AFI, for example 47 for a classic ISO NSAP address.

Configure IS-IS between two areas​

This example connects three routers. R1 is an L1 router in area 49.0001. R2 is an L1/L2 router: it runs L1 towards R1 in the same area and L2 towards R3. R3 is an L2 router in area 49.0002. R1 and R3 each have a LAN, and every router has a loopback address.

LAN 192.168.1.0/24 LAN 192.168.3.0/24
| |
+------+------+ 10.0.12.0/30 +-------------+ 10.0.23.0/30 +------+------+
| R1 |ether4 ether2| R2 |ether3 ether10| R3 |
| L1, 49.0001 |----------------| L1/L2, |----------------| L2, 49.0002 |
| 10.255.255.1| L1, broadcast | 49.0001 | L2, point-to- | 10.255.255.3|
+-------------+ | 10.255.255.2| point +-------------+
+-------------+

Each router needs an instance in /routing/isis/instance with its area and system ID, and an interface template in /routing/isis/interface-template for each group of interfaces. A template must set levels. Without it, RouterOS refuses the template with levels must be configured. Replace the interface names with your own.

R1, an L1 router. The LAN bridge and the loopback are passive: IS-IS advertises their prefixes but forms no adjacencies on them.

/ip/address
add address=10.255.255.1/32 interface=lo
add address=10.0.12.1/30 interface=ether4
add address=192.168.1.1/24 interface=bridge
/routing/isis/instance
add name=isis1 afi=ip areas=49.0001 system-id=0000.0000.0001
/routing/isis/interface-template
add instance=isis1 interfaces=ether4 levels=l1
add instance=isis1 interfaces=lo,bridge levels=l1 passive

R2, the L1/L2 router. The link to R1 runs L1 and the link to R3 runs L2 as a point-to-point link. The loopback is advertised at both levels.

/ip/address
add address=10.255.255.2/32 interface=lo
add address=10.0.12.2/30 interface=ether2
add address=10.0.23.1/30 interface=ether3
/routing/isis/instance
add name=isis1 afi=ip areas=49.0001 system-id=0000.0000.0002
/routing/isis/interface-template
add instance=isis1 interfaces=ether2 levels=l1
add instance=isis1 interfaces=ether3 levels=l2 ptp
add instance=isis1 interfaces=lo levels=l1,l2 passive

R3, an L2 router in another area:

/ip/address
add address=10.255.255.3/32 interface=lo
add address=10.0.23.2/30 interface=ether10
add address=192.168.3.1/24 interface=bridge
/routing/isis/instance
add name=isis1 afi=ip areas=49.0002 system-id=0000.0000.0003
/routing/isis/interface-template
add instance=isis1 interfaces=ether10 levels=l2 ptp
add instance=isis1 interfaces=lo,bridge levels=l2 passive

Check that it works​

On R2, both neighbors are up:

[admin@R2] > /routing/isis/neighbor/print
Flags: D - DYNAMIC
0 D instance=isis1 interface=ether2 level-type=l1 snpa=92:E8:17:7B:46:CC
srcid="0000.0000.0001" state=up

1 D instance=isis1 interface=ether3 snpa=C6:A7:13:F6:0B:71
srcid="0000.0000.0003" state=up

The LSP database on R2 holds the L1 LSPs of area 49.0001 and the L2 LSPs of R2 and R3. The LSP ID is the system ID, a pseudonode byte and a fragment number. 0000.0000.0001.01-00 is the pseudonode LSP that R1 sends as the DIS of the broadcast link to R2.

[admin@R2] > /routing/isis/lsp/print proplist=level,lsp-id,sequence
Flags: D - DYNAMIC
0 D level=l1 lsp-id="0000.0000.0001.00-00" sequence=0x2

1 D level=l1 lsp-id="0000.0000.0001.01-00" sequence=0x1

2 D level=l1 lsp-id="0000.0000.0002.00-00" sequence=0x3

3 D level=l2 lsp-id="0000.0000.0002.00-00" sequence=0x5

4 D level=l2 lsp-id="0000.0000.0003.00-00" sequence=0x2

R3 has routes to R1's LAN, the link between R1 and R2 and the loopbacks of R1 and R2, all through R2. R2 advertises the L1 prefixes of its area in its L2 LSP and adds the cost of the path to them. The route to 10.0.23.0/30 is not active because R3 has a connected route to it:

[admin@R3] > /ip/route/print where is-is
Flags: D - DYNAMIC; A - ACTIVE; i - IS-IS
Columns: DST-ADDRESS, GATEWAY, ROUTING-TABLE, DISTANCE
DST-ADDRESS GATEWAY ROUTING-TABLE DISTANCE
DAi 10.0.12.0/30 10.0.23.1%ether10 main 115
D i 10.0.23.0/30 10.0.23.1%ether10 main 115
DAi 10.255.255.1/32 10.0.23.1%ether10 main 115
DAi 10.255.255.2/32 10.0.23.1%ether10 main 115
DAi 192.168.1.0/24 10.0.23.1%ether10 main 115

The LANs of R1 and R3 reach each other:

[admin@R3] > /ping 192.168.1.1 src-address=192.168.3.1 count=3
SEQ HOST SIZE TTL TIME STATUS
0 192.168.1.1 56 63 2ms306us
1 192.168.1.1 56 63 861us
2 192.168.1.1 56 63 1ms970us
sent=3 received=3 packet-loss=0% min-rtt=861us avg-rtt=1ms712us
max-rtt=2ms306us

An interface template is a broadcast link unless it has the ptp switch. On a broadcast link the routers elect a DIS for each level. The interface with the highest priority wins (bcast.l1.priority, bcast.l2.priority, default 64). With equal priorities, the interface with the highest MAC address wins. The DIS sends a pseudonode LSP for the link, sends Hellos every second and sends a complete sequence number PDU (CSNP) every 10 seconds, which lets the other routers find and request LSPs they are missing.

A point-to-point link (ptp) has no DIS and no pseudonode LSP. Use it on links with exactly two routers, such as a /30 between two routers. Both ends need the same link type: a link with ptp at one end only has no adjacency.

The ptp.hello-3way switch adds the three-way handshake of RFC 5303 to the point-to-point Hellos. It is off by default. With the switch on at both ends, /routing/isis/interface shows 3way-state=up. With the switch on at one end only, the adjacency still comes up and that end shows 3way-state=down.

ptp, passive and ptp.hello-3way are switches: write the name to turn them on and the name with ! to turn them off (ptp, !ptp). ptp=yes is not accepted.

Passive interfaces​

A template with passive advertises the prefixes of its interfaces but sends no Hellos and forms no adjacencies. Use it for loopbacks and for LANs without other IS-IS routers. The prefixes of passive interfaces are advertised with the metric 0.

Levels and areas​

  • levels on a template sets which levels run on its interfaces: l1, l2 or l1,l2. The instance has no level setting: a router runs the levels that its templates set.
  • Two routers form an adjacency only at a level both ends run. A link with levels=l1 at one end and levels=l2 at the other has no adjacency.
  • An L1 adjacency forms only between routers of the same area. Routers in different areas connect at L2.
  • An L1/L2 router advertises the L1 prefixes of its area in its L2 LSP, with the cost of the path to them added.

Metrics​

Each interface has a metric for each level: ptp.l1.metric and ptp.l2.metric on point-to-point links, bcast.l1.metric and bcast.l2.metric on broadcast links. The default is 20.

metric-type on the instance selects the TLVs that carry the metrics:

  • old - narrow metrics only (TLVs 2 and 128).
  • wide - wide metrics only (TLVs 22 and 135).
  • both - both. A router with no metric-type set sends both.

Default route​

l1.originate-default and l2.originate-default advertise a default route (0.0.0.0/0) at that level:

  • always - the router always advertises the default route.
  • if-installed - the router advertises it only while it has an active default route of its own.
  • never - the router does not advertise it.

A router with no value set does not advertise a default route. For example, R2 can give the L1 routers of its area a default route:

/routing/isis/instance
set [find name=isis1] l1.originate-default=always

R1 then has a default route through R2. An IS-IS route has the distance 115, so a default route with a lower distance, here the one from R1's DHCP client, stays active:

[admin@R1] > /ip/route/print where dst-address=0.0.0.0/0
Flags: D - DYNAMIC; A - ACTIVE; i - IS-IS, d - DHCP
Columns: DST-ADDRESS, GATEWAY, ROUTING-TABLE, DISTANCE
DST-ADDRESS GATEWAY ROUTING-TABLE DISTANCE
DAd 0.0.0.0/0 198.51.100.1 main 1
D i 0.0.0.0/0 10.0.12.2%ether4 main 115

Redistribution​

l1.redistribute and l2.redistribute advertise routes of other sources (static, connected, OSPF, BGP and others) at that level. For example, R3 advertises a static route at L2:

/ip/route
add dst-address=172.16.0.0/16 blackhole
/routing/isis/instance
set [find name=isis1] l2.redistribute=static

R2 learns it through IS-IS:

[admin@R2] > /ip/route/print where dst-address=172.16.0.0/16
Flags: D - DYNAMIC; A - ACTIVE; i - IS-IS
Columns: DST-ADDRESS, GATEWAY, ROUTING-TABLE, DISTANCE
DST-ADDRESS GATEWAY ROUTING-TABLE DISTANCE
DAi 172.16.0.0/16 10.0.23.2%ether3 main 115

Route filters​

in-filter-chain runs the IS-IS routes through a routing filter chain before the router installs them. The filter changes only this router's routing table: the LSPs are still flooded, so other routers keep the routes. The rule syntax is described in Route Selection and Filtering.

For example, R2 does not install R3's LAN:

/routing/filter/rule
add chain=isis-in rule="if (dst == 192.168.3.0/24) { reject; }"
add chain=isis-in rule="accept"
/routing/isis/instance
set [find name=isis1] in-filter-chain=isis-in

The route stays in /routing/route with the F (filtered) flag and is not installed in /ip/route:

[admin@R2] > /routing/route/print where dst-address=192.168.3.0/24
Flags: F - FILTERED; i - ISIS
Columns: DST-ADDRESS, GATEWAY, AFI, ROUTING-TABLE, DISTANCE, SCOPE,
TARGET-SCOPE, IMMEDIATE-GW
DST-ADDRESS GATEWAY AFI ROUT DIS SC TA IMMEDIATE-GW
Fi 192.168.3.0/24 10.0.23.2%ether3 ip main 115 20 10 10.0.23.2%ether3

IPv6​

afi selects the address families of the instance: ip, ipv6 or both (afi=ip,ipv6). One instance carries both families over the same adjacencies. IPv6 routes use the neighbor's link-local address as the gateway. To add IPv6 to the example, add a loopback address on each router (fd00:255::1/128 on R1, fd00:255::2/128 on R2, fd00:255::3/128 on R3) and enable the family. On R2:

/ipv6/address
add address=fd00:255::2/128 interface=lo advertise=no
/routing/isis/instance
set [find name=isis1] afi=ip,ipv6

R2 then has IPv6 routes to the loopbacks of R1 and R3:

[admin@R2] > /ipv6/route/print where dst-address in fd00:255::/64
Flags: D - DYNAMIC; A - ACTIVE; c - CONNECT, i - IS-IS
Columns: DST-ADDRESS, GATEWAY, ROUTING-TABLE, DISTANCE
DST-ADDRESS GATEWAY ROUTING-TABLE DISTANCE
DAi fd00:255::1/128 fe80::90e8:17ff:fe7b:46cc%ether2 main 115
DAc fd00:255::2/128 lo main 0
DAi fd00:255::3/128 fe80::c4a7:13ff:fef6:b71%ether3 main 115

Connect to a Cisco router​

A Cisco router joins the same IS-IS domain with a NET whose area matches the RouterOS areas of its L1 neighbors (in this configuration 49.2222) and ip router isis on each interface that runs IS-IS:

interface Loopback0
ip address 10.255.255.162 255.255.255.255
ip router isis
!
interface GigabitEthernet1
ip address dhcp
ip router isis
negotiation auto
!
router isis
net 49.2222.1111.2222.aded.00

On point-to-point links, see the troubleshooting entry about the three-way handshake.

Monitor IS-IS​

The body of an LSP lists its contents: areas, the protocols (nlpid), the IS neighbors (is-reach, is-reach-ext) and the prefixes with their metrics (ip-reach, ip-reach-ext, ip6-reach). R1's LSP as R2 sees it:

[admin@R2] > /routing/isis/lsp/print where lsp-id="0000.0000.0001.00-00"
Flags: D - DYNAMIC
0 D instance=isis1 level=l1 lsp-id="0000.0000.0001.00-00" age=1020
checksum=0x43DC sequence=0x2 body=
areas: 4901
nlpid: IP
is-reach:
0000.0000.0001.01 20
ip-reach:
10.0.12.0/30 20
10.255.255.1 0
192.168.1.0/24 0
is-reach-ext:
0000.0000.0001.01 20
ip-reach-ext:
10.0.12.0/30 20
10.255.255.1 0
192.168.1.0/24 0

Technical details​

  • Timers. Hellos are sent every 3 seconds. The DIS of a broadcast link sends them every second. The hold time a router announces is its Hello interval multiplied by the Hello multiplier (10): 30 seconds, and 10 seconds for the DIS. The DIS sends a CSNP every 10 seconds. A point-to-point link sends CSNPs when the adjacency comes up. The interval for partial sequence number PDUs (PSNP), which acknowledge and request LSPs, is 2 seconds. The timers and metrics in use appear in /routing/isis/interface.
  • LSP lifetime. LSPs are sent with a remaining lifetime of 1200 seconds.
  • Instance changes. Changing a property of an instance restarts the instance: its adjacencies come up again and the routes are calculated again.
  • Firewall. IS-IS packets are not IP packets, so the IP firewall does not filter them.

Troubleshooting​

No adjacency​

  • At L1, check that both routers have the same area in areas.
  • Check that both ends of the link run the same level (levels).
  • Check that both ends use the same link type: ptp at both ends or at neither.

IS-IS does not work and the log shows "invalid 3way tlv"​

The neighbor most likely does not follow the three-way handshake for point-to-point links of RFC 5303. For example, on Cisco you must enable isis three-way-handshake ietf on the interface to have the 15-byte TLV.

Reference​