summaryrefslogtreecommitdiffstats
path: root/doc/developer/northbound/ppr-mpls-basic-test-topology.rst
blob: cedb795da997c852da9332121fc030c7fe15ed1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
Table of Contents
~~~~~~~~~~~~~~~~~

-  `Software <#software>`__
-  `Topology <#topology>`__
-  `Configuration <#configuration>`__

   -  `CLI <#configuration-cli>`__
   -  `YANG <#configuration-yang>`__

-  `Verification - Control Plane <#verification-cplane>`__
-  `Verification - Forwarding Plane <#verification-fplane>`__

Software
~~~~~~~~

The FRR PPR implementation for IS-IS is available here:
https://github.com/opensourcerouting/frr/tree/isisd-ppr-sr

Topology
~~~~~~~~

In this topology we have an IS-IS network consisting of 12 routers. CE1
and CE2 are the consumer edges, connected to R11 and R14, respectively.
Three hosts are connected to the CEs using only static routes.

Router R11 advertises 6 PPR TLVs: \* **IPv6 prefixes 6000:1::1/128 and
6000:2::1/128:** {R11 - R21 - R22 - R23 - R14} (IPv6 Node Addresses). \*
**MPLS SR Prefix-SIDs 500 and 501:** {R11 - R21 - R22 - R23 - R14} (SR
Prefix-SIDs). \* **MPLS SR Prefix-SIDs 502 and 503:** {R11 - R21 - R31 -
R32 - R41 - R33 - R34 - R23 - R14} (SR Prefix-SIDs)

PBR rules are configured on R11 and R14 to route the traffic between
Host 1 and Host 3 using the first PPR tunnel, whereas all other traffic
between CE1 and CE2 uses the second PPR tunnel.

Additional information: \* Addresses in the 4000::/16 range refer to
interface addresses, where the last hextet corresponds to the node ID.
\* Addresses in the 5000::/16 range refer to loopback addresses, where
the last hextet corresponds to the node ID. \* Addresses in the
6000::/16 range refer to PPR-ID addresses.

::

   +-------+       +-------+                                                 +-------+
   |       |       |       |                                                 |       |
   | HOST1 |       | HOST2 |                                                 | HOST3 |
   |       |       |       |                                                 |       |
   +---+---+       +---+---+                                                 +---+---+
       |               |                                                         |
       |fd00:10:1::/64 |                                                         |
       +-----+  +------+                                           fd00:20:1::/64|
             |  |fd00:10:2::/64                                                  |
             |  |                                                                |
           +-+--+--+                                                         +---+---+
           |       |                                                         |       |
           |  CE1  |                                                         |  CE2  |
           |       |                                                         |       |
           +---+---+                                                         +---+---+
               |                                                                 |
               |                                                                 |
               |fd00:10:0::/64                                     fd00:20:0::/64|
               |                                                                 |
               |                                                                 |
           +---+---+             +-------+             +-------+             +---+---+
           |       |4000:101::/64|       |4000:102::/64|       |4000:103::/64|       |
           |  R11  +-------------+  R12  +-------------+  R13  +-------------+  R14  |
           |       |             |       |             |       |             |       |
           +---+---+             +--+-+--+             +--+-+--+             +---+---+
               |                    | |                   | |                    |
               |4000:104::/64       | |4000:106::/64      | |4000:108::/64       |
               +---------+ +--------+ +--------+ +--------+ +--------+ +---------+
                         | |4000:105::/64      | |4000:107::/64      | |4000:109::/64
                         | |                   | |                   | |
                      +--+-+--+             +--+-+--+             +--+-+--+
                      |       |4000:110::/64|       |4000:111::/64|       |
                      |  R21  +-------------+  R22  +-------------+  R23  |
                      |       |             |       |             |       |
                      +--+-+--+             +--+-+--+             +--+-+--+
                         | |                   | |                   | |
                         | |4000:113::/64      | |4000:115::/64      | |4000:117::/64
               +---------+ +--------+ +--------+ +--------+ +--------+ +---------+
               |4000:112::/64       | |4000:114::/64      | |4000:116::/64       |
               |                    | |                   | |                    |
           +---+---+             +--+-+--+             +--+-+--+             +---+---+
           |       |4000:118::/64|       |4000:119::/64|       |4000:120::/64|       |
           |  R31  +-------------+  R32  +-------------+  R33  +-------------+  R34  |
           |       |             |       |             |       |             |       |
           +-------+             +---+---+             +---+---+             +-------+
                                     |                     |
                                     |4000:121::/64        |
                                     +----------+----------+
                                                |
                                                |
                                            +---+---+
                                            |       |
                                            |  R41  |
                                            |       |
                                            +-------+

Configuration
~~~~~~~~~~~~~

PPR TLV processing needs to be enabled on all IS-IS routers using the
``ppr on`` command. The advertisements of all PPR TLVs is done by router
R11.

CLI configuration
^^^^^^^^^^^^^^^^^

.. code:: yaml

   ---

   routers:

     host1:
       links:
         eth-ce1:
           peer: [ce1, eth-host1]
       frr:
         zebra:
         staticd:
         config: |
           interface eth-ce1
            ipv6 address fd00:10:1::1/64
           !
           ipv6 route ::/0 fd00:10:1::100

     host2:
       links:
         eth-ce1:
           peer: [ce1, eth-host2]
       frr:
         zebra:
         staticd:
         config: |
           interface eth-ce1
            ipv6 address fd00:10:2::1/64
           !
           ipv6 route ::/0 fd00:10:2::100

     host3:
       links:
         eth-ce2:
           peer: [ce2, eth-host3]
       frr:
         zebra:
         staticd:
         config: |
           interface eth-ce2
            ipv6 address fd00:20:1::1/64
           !
           ipv6 route ::/0 fd00:20:1::100

     ce1:
       links:
         eth-host1:
           peer: [host1, eth-ce1]
         eth-host2:
           peer: [host2, eth-ce1]
         eth-rt11:
           peer: [rt11, eth-ce1]
       frr:
         zebra:
         staticd:
         config: |
           interface eth-host1
            ipv6 address fd00:10:1::100/64
           !
           interface eth-host2
            ipv6 address fd00:10:2::100/64
           !
           interface eth-rt11
            ipv6 address fd00:10:0::100/64
           !
           ipv6 route ::/0 fd00:10:0::11 label 16501

     ce2:
       links:
         eth-host3:
           peer: [host3, eth-ce2]
         eth-rt14:
           peer: [rt14, eth-ce2]
       frr:
         zebra:
         staticd:
         config: |
           interface eth-host3
            ipv6 address fd00:20:1::100/64
           !
           interface eth-rt14
            ipv6 address fd00:20:0::100/64
           !
           ipv6 route ::/0 fd00:20:0::14 label 16500

     rt11:
       links:
         lo:
           mpls: yes
         lo-ppr:
         eth-ce1:
           peer: [ce1, eth-rt11]
           mpls: yes
         eth-rt12:
           peer: [rt12, eth-rt11]
           mpls: yes
         eth-rt21:
           peer: [rt21, eth-rt11]
           mpls: yes
       shell: |
         # GRE tunnel for preferred packets (PPR)
         ip -6 tunnel add tun-ppr mode ip6gre remote 6000:2::1 local 6000:1::1 ttl 64
         ip link set dev tun-ppr up
         # PBR rules
         ip -6 rule add from fd00:10:1::/64 to fd00:20:1::/64 iif eth-ce1 lookup 10000
         ip -6 route add default dev tun-ppr table 10000
       frr:
         zebra:
         staticd:
         isisd:
         config: |
           interface lo-ppr
            ipv6 address 6000:1::1/128
           !
           interface lo
            ip address 10.0.0.11/32
            ipv6 address 5000::11/128
            ipv6 router isis 1
           !
           interface eth-ce1
            ipv6 address fd00:10:0::11/64
           !
           interface eth-rt12
            ipv6 address 4000:101::11/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt21
            ipv6 address 4000:104::11/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           ipv6 route fd00:10::/32 fd00:10:0::100
           !
           ppr group PPR_IPV6
            ppr ipv6 6000:1::1/128 prefix 5000::11/128 metric 50
             pde ipv6-node 5000::14/128
             pde ipv6-node 5000::23/128
             pde ipv6-node 5000::22/128
             pde ipv6-node 5000::21/128
             pde ipv6-node 5000::11/128
            !
            ppr ipv6 6000:2::1/128 prefix 5000::14/128 metric 50
             pde ipv6-node 5000::11/128
             pde ipv6-node 5000::21/128
             pde ipv6-node 5000::22/128
             pde ipv6-node 5000::23/128
             pde ipv6-node 5000::14/128
            !
           !
           ppr group PPR_MPLS_1
            ppr mpls 500 prefix 5000::11/128
             pde prefix-sid 14
             pde prefix-sid 23
             pde prefix-sid 22
             pde prefix-sid 21
             pde prefix-sid 11
            !
            ppr mpls 501 prefix 5000::14/128
             pde prefix-sid 11
             pde prefix-sid 21
             pde prefix-sid 22
             pde prefix-sid 23
             pde prefix-sid 14
            !
           !
           ppr group PPR_MPLS_2
            ppr mpls 502 prefix 5000::11/128
             pde prefix-sid 14
             pde prefix-sid 23
             pde prefix-sid 34
             pde prefix-sid 33
             pde prefix-sid 41
             pde prefix-sid 32
             pde prefix-sid 31
             pde prefix-sid 21
             pde prefix-sid 11
            !
            ppr mpls 503 prefix 5000::14/128
             pde prefix-sid 11
             pde prefix-sid 21
             pde prefix-sid 31
             pde prefix-sid 32
             pde prefix-sid 41
             pde prefix-sid 33
             pde prefix-sid 34
             pde prefix-sid 23
             pde prefix-sid 14
            !
           !
           router isis 1
            net 49.0000.0000.0000.0011.00
            is-type level-1
            topology ipv6-unicast
            segment-routing on
            segment-routing prefix 5000::11/128 index 11 no-php-flag
            ppr on
            ppr advertise PPR_IPV6
            ppr advertise PPR_MPLS_1
            ppr advertise PPR_MPLS_2
           !

     rt12:
       links:
         lo:
           mpls: yes
         eth-rt11:
           peer: [rt11, eth-rt12]
           mpls: yes
         eth-rt13:
           peer: [rt13, eth-rt12]
           mpls: yes
         eth-rt21:
           peer: [rt21, eth-rt12]
           mpls: yes
         eth-rt22:
           peer: [rt22, eth-rt12]
           mpls: yes
       frr:
         zebra:
         isisd:
         config: |
           interface lo
            ip address 10.0.0.12/32
            ipv6 address 5000::12/128
            ipv6 router isis 1
           !
           interface eth-rt11
            ipv6 address 4000:101::12/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt13
            ipv6 address 4000:102::12/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt21
            ipv6 address 4000:105::12/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt22
            ipv6 address 4000:106::12/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           router isis 1
            net 49.0000.0000.0000.0012.00
            is-type level-1
            topology ipv6-unicast
            segment-routing on
            segment-routing prefix 5000::12/128 index 12 no-php-flag
            ppr on
           !

     rt13:
       links:
         lo:
           mpls: yes
         eth-rt12:
           peer: [rt12, eth-rt13]
           mpls: yes
         eth-rt14:
           peer: [rt14, eth-rt13]
           mpls: yes
         eth-rt22:
           peer: [rt22, eth-rt13]
           mpls: yes
         eth-rt23:
           peer: [rt23, eth-rt13]
           mpls: yes
       frr:
         zebra:
         isisd:
         config: |
           interface lo
            ip address 10.0.0.13/32
            ipv6 address 5000::13/128
            ipv6 router isis 1
           !
           interface eth-rt12
            ipv6 address 4000:102::13/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt14
            ipv6 address 4000:103::13/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt22
            ipv6 address 4000:107::13/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt23
            ipv6 address 4000:108::13/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           router isis 1
            net 49.0000.0000.0000.0013.00
            is-type level-1
            topology ipv6-unicast
            segment-routing on
            segment-routing prefix 5000::13/128 index 13 no-php-flag
            ppr on
           !

     rt14:
       links:
         lo:
           mpls: yes
         lo-ppr:
         eth-ce2:
           peer: [ce2, eth-rt14]
           mpls: yes
         eth-rt13:
           peer: [rt13, eth-rt14]
           mpls: yes
         eth-rt23:
           peer: [rt23, eth-rt14]
           mpls: yes
       shell: |
         # GRE tunnel for preferred packets (PPR)
         ip -6 tunnel add tun-ppr mode ip6gre remote 6000:1::1 local 6000:2::1 ttl 64
         ip link set dev tun-ppr up
         # PBR rules
         ip -6 rule add from fd00:20:1::/64 to fd00:10:1::/64 iif eth-ce2 lookup 10000
         ip -6 route add default dev tun-ppr table 10000
       frr:
         zebra:
         staticd:
         isisd:
         config: |
           interface lo-ppr
            ipv6 address 6000:2::1/128
           !
           interface lo
            ip address 10.0.0.14/32
            ipv6 address 5000::14/128
            ipv6 router isis 1
           !
           interface eth-ce2
            ipv6 address fd00:20:0::14/64
           !
           interface eth-rt13
            ipv6 address 4000:103::14/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt23
            ipv6 address 4000:109::14/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           ipv6 route fd00:20::/32 fd00:20:0::100
           !
           router isis 1
            net 49.0000.0000.0000.0014.00
            is-type level-1
            topology ipv6-unicast
            segment-routing on
            segment-routing prefix 5000::14/128 index 14 no-php-flag
            ppr on
           !

     rt21:
       links:
         lo:
           mpls: yes
         eth-rt11:
           peer: [rt11, eth-rt21]
           mpls: yes
         eth-rt12:
           peer: [rt12, eth-rt21]
           mpls: yes
         eth-rt22:
           peer: [rt22, eth-rt21]
           mpls: yes
         eth-rt31:
           peer: [rt31, eth-rt21]
           mpls: yes
         eth-rt32:
           peer: [rt32, eth-rt21]
           mpls: yes
       frr:
         zebra:
         isisd:
         config: |
           interface lo
            ip address 10.0.0.21/32
            ipv6 address 5000::21/128
            ipv6 router isis 1
           !
           interface eth-rt11
            ipv6 address 4000:104::21/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt12
            ipv6 address 4000:105::21/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt22
            ipv6 address 4000:110::21/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt31
            ipv6 address 4000:112::21/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt32
            ipv6 address 4000:113::21/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           router isis 1
            net 49.0000.0000.0000.0021.00
            is-type level-1
            topology ipv6-unicast
            segment-routing on
            segment-routing prefix 5000::21/128 index 21 no-php-flag
            ppr on
           !

     rt22:
       links:
         lo:
           mpls: yes
         eth-rt12:
           peer: [rt12, eth-rt22]
           mpls: yes
         eth-rt13:
           peer: [rt13, eth-rt22]
           mpls: yes
         eth-rt21:
           peer: [rt21, eth-rt22]
           mpls: yes
         eth-rt23:
           peer: [rt23, eth-rt22]
           mpls: yes
         eth-rt32:
           peer: [rt32, eth-rt22]
           mpls: yes
         eth-rt33:
           mpls: yes
           peer: [rt33, eth-rt22]
       frr:
         zebra:
         isisd:
         config: |
           interface lo
            ip address 10.0.0.22/32
            ipv6 address 5000::22/128
            ipv6 router isis 1
           !
           interface eth-rt12
            ipv6 address 4000:106::22/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt13
            ipv6 address 4000:107::22/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt21
            ipv6 address 4000:110::22/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt23
            ipv6 address 4000:111::22/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt32
            ipv6 address 4000:114::22/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt33
            ipv6 address 4000:115::22/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           router isis 1
            net 49.0000.0000.0000.0022.00
            is-type level-1
            topology ipv6-unicast
            segment-routing on
            segment-routing prefix 5000::22/128 index 22 no-php-flag
            ppr on
           !

     rt23:
       links:
         lo:
           mpls: yes
         eth-rt13:
           peer: [rt13, eth-rt23]
           mpls: yes
         eth-rt14:
           peer: [rt14, eth-rt23]
           mpls: yes
         eth-rt22:
           peer: [rt22, eth-rt23]
           mpls: yes
         eth-rt33:
           peer: [rt33, eth-rt23]
           mpls: yes
         eth-rt34:
           peer: [rt34, eth-rt23]
           mpls: yes
       frr:
         zebra:
         isisd:
         config: |
           interface lo
            ip address 10.0.0.23/32
            ipv6 address 5000::23/128
            ipv6 router isis 1
           !
           interface eth-rt13
            ipv6 address 4000:108::23/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt14
            ipv6 address 4000:109::23/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt22
            ipv6 address 4000:111::23/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt33
            ipv6 address 4000:116::23/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt34
            ipv6 address 4000:117::23/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           router isis 1
            net 49.0000.0000.0000.0023.00
            is-type level-1
            topology ipv6-unicast
            segment-routing on
            segment-routing global-block 20000 27999
            segment-routing prefix 5000::23/128 index 23 no-php-flag
            ppr on
           !

     rt31:
       links:
         lo:
           mpls: yes
         eth-rt21:
           peer: [rt21, eth-rt31]
           mpls: yes
         eth-rt32:
           peer: [rt32, eth-rt31]
           mpls: yes
       frr:
         zebra:
         isisd:
         config: |
           interface lo
            ip address 10.0.0.31/32
            ipv6 address 5000::31/128
            ipv6 router isis 1
           !
           interface eth-rt21
            ipv6 address 4000:112::31/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt32
            ipv6 address 4000:118::31/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           router isis 1
            net 49.0000.0000.0000.0031.00
            is-type level-1
            topology ipv6-unicast
            segment-routing on
            segment-routing prefix 5000::31/128 index 31 no-php-flag
            ppr on
           !

     rt32:
       links:
         lo:
           mpls: yes
         eth-rt21:
           peer: [rt21, eth-rt32]
           mpls: yes
         eth-rt22:
           peer: [rt22, eth-rt32]
           mpls: yes
         eth-rt31:
           peer: [rt31, eth-rt32]
           mpls: yes
         eth-rt33:
           peer: [rt33, eth-rt32]
           mpls: yes
         eth-sw1:
           peer: [sw1, eth-rt32]
           mpls: yes
       frr:
         zebra:
         isisd:
         config: |
           interface lo
            ip address 10.0.0.32/32
            ipv6 address 5000::32/128
            ipv6 router isis 1
           !
           interface eth-rt21
            ipv6 address 4000:113::32/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt22
            ipv6 address 4000:114::32/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt31
            ipv6 address 4000:118::32/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt33
            ipv6 address 4000:119::32/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-sw1
            ipv6 address 4000:121::32/64
            ipv6 router isis 1
            isis hello-multiplier 3
           !
           router isis 1
            net 49.0000.0000.0000.0032.00
            is-type level-1
            topology ipv6-unicast
            segment-routing on
            segment-routing prefix 5000::32/128 index 32 no-php-flag
            ppr on
           !

     rt33:
       links:
         lo:
           mpls: yes
         eth-rt22:
           peer: [rt22, eth-rt33]
           mpls: yes
         eth-rt23:
           peer: [rt23, eth-rt33]
           mpls: yes
         eth-rt32:
           peer: [rt32, eth-rt33]
           mpls: yes
         eth-rt34:
           peer: [rt34, eth-rt33]
           mpls: yes
         eth-sw1:
           peer: [sw1, eth-rt33]
           mpls: yes
       frr:
         zebra:
         isisd:
         config: |
           interface lo
            ip address 10.0.0.33/32
            ipv6 address 5000::33/128
            ipv6 router isis 1
           !
           interface eth-rt22
            ipv6 address 4000:115::33/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt23
            ipv6 address 4000:116::33/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt32
            ipv6 address 4000:119::33/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt34
            ipv6 address 4000:120::33/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-sw1
            ipv6 address 4000:121::33/64
            ipv6 router isis 1
            isis hello-multiplier 3
           !
           router isis 1
            net 49.0000.0000.0000.0033.00
            is-type level-1
            topology ipv6-unicast
            segment-routing on
            segment-routing prefix 5000::33/128 index 33 no-php-flag
            ppr on
           !

     rt34:
       links:
         lo:
           mpls: yes
         eth-rt23:
           peer: [rt23, eth-rt34]
           mpls: yes
         eth-rt33:
           peer: [rt33, eth-rt34]
           mpls: yes
       frr:
         zebra:
         isisd:
         config: |
           interface lo
            ip address 10.0.0.34/32
            ipv6 address 5000::34/128
            ipv6 router isis 1
           !
           interface eth-rt23
            ipv6 address 4000:117::34/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt33
            ipv6 address 4000:120::34/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           router isis 1
            net 49.0000.0000.0000.0034.00
            is-type level-1
            topology ipv6-unicast
            segment-routing on
            segment-routing prefix 5000::34/128 index 34 no-php-flag
            ppr on
           !

     rt41:
       links:
         lo:
           mpls: yes
         eth-sw1:
           peer: [sw1, eth-rt41]
           mpls: yes
       frr:
         zebra:
         isisd:
         config: |
           interface lo
            ip address 10.0.0.41/32
            ipv6 address 5000::41/128
            ipv6 router isis 1
           !
           interface eth-sw1
            ipv6 address 4000:121::41/64
            ipv6 router isis 1
            isis hello-multiplier 3
           !
           router isis 1
            net 49.0000.0000.0000.0041.00
            is-type level-1
            topology ipv6-unicast
            segment-routing on
            segment-routing prefix 5000::41/128 index 41 no-php-flag
            ppr on
           !

   switches:
     sw1:
       links:
         eth-rt32:
           peer: [rt32, eth-sw1]
         eth-rt33:
           peer: [rt33, eth-sw1]
         eth-rt41:
           peer: [rt41, eth-sw1]

   frr:
     #valgrind: yes
     base-config: |
       hostname %(node)
       password 1
       log file %(logdir)/%(node).log
       log commands
       !
       debug zebra rib
       debug isis sr-events
       debug isis ppr
       debug isis events
       debug isis route-events
       debug isis spf-events
       debug isis lsp-gen
       !

..

   NOTE: it’s of fundamental importance to enable MPLS processing on the
   loopback interfaces, otherwise the tail-end routers of the PPR-MPLS
   tunnels will drop the labeled packets they receive.

YANG
^^^^

PPR can also be configured using NETCONF, RESTCONF and gRPC based on the
following YANG models: \*
`frr-ppr.yang <https://github.com/opensourcerouting/frr/blob/isisd-ppr/yang/frr-ppr.yang>`__
\*
`frr-isisd.yang <https://github.com/opensourcerouting/frr/blob/isisd-ppr/yang/frr-isisd.yang>`__

As an example, here’s R11 configuration in the XML format:

.. code:: xml

   <lib xmlns="http://frrouting.org/yang/interface">
     <interface>
       <name>lo-ppr</name>
       <vrf>default</vrf>
     </interface>
     <interface>
       <name>lo</name>
       <vrf>default</vrf>
       <isis xmlns="http://frrouting.org/yang/isisd">
         <area-tag>1</area-tag>
         <ipv6-routing>true</ipv6-routing>
       </isis>
     </interface>
     <interface>
       <name>eth-ce1</name>
       <vrf>default</vrf>
     </interface>
     <interface>
       <name>eth-rt12</name>
       <vrf>default</vrf>
       <isis xmlns="http://frrouting.org/yang/isisd">
         <area-tag>1</area-tag>
         <ipv6-routing>true</ipv6-routing>
         <hello>
           <multiplier>
             <level-1>3</level-1>
             <level-2>3</level-2>
           </multiplier>
         </hello>
         <network-type>point-to-point</network-type>
       </isis>
     </interface>
     <interface>
       <name>eth-rt21</name>
       <vrf>default</vrf>
       <isis xmlns="http://frrouting.org/yang/isisd">
         <area-tag>1</area-tag>
         <ipv6-routing>true</ipv6-routing>
         <hello>
           <multiplier>
             <level-1>3</level-1>
             <level-2>3</level-2>
           </multiplier>
         </hello>
         <network-type>point-to-point</network-type>
       </isis>
     </interface>
   </lib>
   <ppr xmlns="http://frrouting.org/yang/ppr">
     <group>                                    
       <name>PPR_IPV6</name>                    
       <ipv6>                                   
         <ppr-id>6000:1::1/128</ppr-id>        
         <ppr-prefix>5000::11/128</ppr-prefix>
         <ppr-pde>                              
           <pde-id>5000::14/128</pde-id>        
           <pde-id-type>ipv6-node</pde-id-type> 
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>5000::23/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>5000::22/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>5000::21/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>5000::11/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <attributes>
           <ppr-metric>50</ppr-metric>
         </attributes>
       </ipv6>
       <ipv6>
         <ppr-id>6000:2::1/128</ppr-id>
         <ppr-prefix>5000::14/128</ppr-prefix>
         <ppr-pde>
           <pde-id>5000::11/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>5000::21/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>5000::22/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>5000::23/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>5000::14/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <attributes>
           <ppr-metric>50</ppr-metric>
         </attributes>
       </ipv6>
     </group>
     <group>
       <name>PPR_MPLS_1</name>
       <mpls>
         <ppr-id>500</ppr-id>
         <ppr-prefix>5000::11/128</ppr-prefix>
         <ppr-pde>
           <pde-id>14</pde-id>
           <pde-id-type>prefix-sid</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>23</pde-id>
           <pde-id-type>prefix-sid</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>22</pde-id>
           <pde-id-type>prefix-sid</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>21</pde-id>
           <pde-id-type>prefix-sid</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>11</pde-id>
           <pde-id-type>prefix-sid</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
       </mpls>
       <mpls>
         <ppr-id>501</ppr-id>
         <ppr-prefix>5000::14/128</ppr-prefix>
         <ppr-pde>
           <pde-id>11</pde-id>
           <pde-id-type>prefix-sid</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>21</pde-id>
           <pde-id-type>prefix-sid</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>22</pde-id>
           <pde-id-type>prefix-sid</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>23</pde-id>
           <pde-id-type>prefix-sid</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>14</pde-id>
           <pde-id-type>prefix-sid</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
       </mpls>
     </group>
     <group>
       <name>PPR_MPLS_2</name>
       <mpls>
         <ppr-id>502</ppr-id>
         <ppr-prefix>5000::11/128</ppr-prefix>
         <ppr-pde>
           <pde-id>14</pde-id>
           <pde-id-type>prefix-sid</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>23</pde-id>
           <pde-id-type>prefix-sid</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>34</pde-id>
           <pde-id-type>prefix-sid</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>33</pde-id>
           <pde-id-type>prefix-sid</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>41</pde-id>
           <pde-id-type>prefix-sid</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>32</pde-id>
           <pde-id-type>prefix-sid</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>31</pde-id>
           <pde-id-type>prefix-sid</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>21</pde-id>
           <pde-id-type>prefix-sid</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>11</pde-id>
           <pde-id-type>prefix-sid</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
       </mpls>
       <mpls>
         <ppr-id>503</ppr-id>
         <ppr-prefix>5000::14/128</ppr-prefix>
         <ppr-pde>
           <pde-id>11</pde-id>
           <pde-id-type>prefix-sid</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>21</pde-id>
           <pde-id-type>prefix-sid</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>31</pde-id>
           <pde-id-type>prefix-sid</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>32</pde-id>
           <pde-id-type>prefix-sid</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>41</pde-id>
           <pde-id-type>prefix-sid</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>33</pde-id>
           <pde-id-type>prefix-sid</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>34</pde-id>
           <pde-id-type>prefix-sid</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>23</pde-id>
           <pde-id-type>prefix-sid</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>14</pde-id>
           <pde-id-type>prefix-sid</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
       </mpls>
     </group>
   </ppr>
   <isis xmlns="http://frrouting.org/yang/isisd">
     <instance>
       <area-tag>1</area-tag>
       <area-address>49.0000.0000.0000.0011.00</area-address>
       <multi-topology>
         <ipv6-unicast>
         </ipv6-unicast>
       </multi-topology>
       <segment-routing>
         <enabled>true</enabled>
         <prefix-sid-map>
           <prefix-sid>
             <prefix>5000::11/128</prefix>
             <sid-value>11</sid-value>
             <last-hop-behavior>no-php</last-hop-behavior>
           </prefix-sid>
         </prefix-sid-map>
       </segment-routing>
       <ppr>
         <enable>true</enable>
         <ppr-advertise>
           <name>PPR_IPV6</name>
         </ppr-advertise>
         <ppr-advertise>
           <name>PPR_MPLS_1</name>
         </ppr-advertise>
         <ppr-advertise>
           <name>PPR_MPLS_2</name>
         </ppr-advertise>
       </ppr>
     </instance>
   </isis>

Verification - Control Plane
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Verify that R11 has flooded the PPR TLVs correctly to all IS-IS routers:

::

   # show isis database detail 0000.0000.0011
   Area 1:
   IS-IS Level-1 link-state database:
   LSP ID                  PduLen  SeqNumber   Chksum  Holdtime  ATT/P/OL
   debian.00-00         *    980   0x00000003  0x3b69     894    0/0/0
     Protocols Supported: IPv4, IPv6
     Area Address: 49.0000
     MT Router Info: ipv4-unicast
     MT Router Info: ipv6-unicast
     Hostname: debian
     TE Router ID: 10.0.0.11
     Router Capability: 10.0.0.11 , D:0, S:0
       Segment Routing: I:1 V:1, SRGB Base: 16000 Range: 8000
         Algorithm: 0: SPF 0: Strict SPF
     MT Reachability: 0000.0000.0012.00 (Metric: 10) ipv6-unicast
       Adjacency-SID: 16, Weight: 0, Flags: F:1 B:0, V:1, L:1, S:0, P:0
     MT Reachability: 0000.0000.0021.00 (Metric: 10) ipv6-unicast
       Adjacency-SID: 17, Weight: 0, Flags: F:1 B:0, V:1, L:1, S:0, P:0
     IPv4 Interface Address: 10.0.0.11
     Extended IP Reachability: 10.0.0.11/32 (Metric: 10)
     MT IPv6 Reachability: 5000::11/128 (Metric: 10) ipv6-unicast
       Subtlvs:
         SR Prefix-SID Index: 11, Algorithm: 0, Flags: NO-PHP
     MT IPv6 Reachability: 4000:101::/64 (Metric: 10) ipv6-unicast
     MT IPv6 Reachability: 4000:104::/64 (Metric: 10) ipv6-unicast
     PPR: Fragment ID: 0, MT-ID: ipv4-unicast, Algorithm: SPF, F:0 D:0 A:0 U:1
       PPR Prefix: 5000::11/128
       ID: 6000:1::1/128 (Native IPv6)
       PDE: 5000::14/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 5000::23/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 5000::22/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 5000::21/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 5000::11/128 (IPv6 Node Address), L:0 N:1 E:0
       Metric: 50
     PPR: Fragment ID: 0, MT-ID: ipv4-unicast, Algorithm: SPF, F:0 D:0 A:0 U:1
       PPR Prefix: 5000::14/128
       ID: 6000:2::1/128 (Native IPv6)
       PDE: 5000::11/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 5000::21/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 5000::22/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 5000::23/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 5000::14/128 (IPv6 Node Address), L:0 N:1 E:0
       Metric: 50
     PPR: Fragment ID: 0, MT-ID: ipv4-unicast, Algorithm: SPF, F:0 D:0 A:0 U:1
       PPR Prefix: 5000::11/128
       ID: 500 (MPLS)
       PDE: 14 (SR-MPLS Prefix SID), L:0 N:0 E:0
       PDE: 23 (SR-MPLS Prefix SID), L:0 N:0 E:0
       PDE: 22 (SR-MPLS Prefix SID), L:0 N:0 E:0
       PDE: 21 (SR-MPLS Prefix SID), L:0 N:0 E:0
       PDE: 11 (SR-MPLS Prefix SID), L:0 N:1 E:0
     PPR: Fragment ID: 0, MT-ID: ipv4-unicast, Algorithm: SPF, F:0 D:0 A:0 U:1
       PPR Prefix: 5000::14/128
       ID: 501 (MPLS)
       PDE: 11 (SR-MPLS Prefix SID), L:0 N:0 E:0
       PDE: 21 (SR-MPLS Prefix SID), L:0 N:0 E:0
       PDE: 22 (SR-MPLS Prefix SID), L:0 N:0 E:0
       PDE: 23 (SR-MPLS Prefix SID), L:0 N:0 E:0
       PDE: 14 (SR-MPLS Prefix SID), L:0 N:1 E:0
     PPR: Fragment ID: 0, MT-ID: ipv4-unicast, Algorithm: SPF, F:0 D:0 A:0 U:1
       PPR Prefix: 5000::11/128
       ID: 502 (MPLS)
       PDE: 14 (SR-MPLS Prefix SID), L:0 N:0 E:0
       PDE: 23 (SR-MPLS Prefix SID), L:0 N:0 E:0
       PDE: 34 (SR-MPLS Prefix SID), L:0 N:0 E:0
       PDE: 33 (SR-MPLS Prefix SID), L:0 N:0 E:0
       PDE: 41 (SR-MPLS Prefix SID), L:0 N:0 E:0
       PDE: 32 (SR-MPLS Prefix SID), L:0 N:0 E:0
       PDE: 31 (SR-MPLS Prefix SID), L:0 N:0 E:0
       PDE: 21 (SR-MPLS Prefix SID), L:0 N:0 E:0
       PDE: 11 (SR-MPLS Prefix SID), L:0 N:1 E:0
     PPR: Fragment ID: 0, MT-ID: ipv4-unicast, Algorithm: SPF, F:0 D:0 A:0 U:1
       PPR Prefix: 5000::14/128
       ID: 503 (MPLS)
       PDE: 11 (SR-MPLS Prefix SID), L:0 N:0 E:0
       PDE: 21 (SR-MPLS Prefix SID), L:0 N:0 E:0
       PDE: 31 (SR-MPLS Prefix SID), L:0 N:0 E:0
       PDE: 32 (SR-MPLS Prefix SID), L:0 N:0 E:0
       PDE: 41 (SR-MPLS Prefix SID), L:0 N:0 E:0
       PDE: 33 (SR-MPLS Prefix SID), L:0 N:0 E:0
       PDE: 34 (SR-MPLS Prefix SID), L:0 N:0 E:0
       PDE: 23 (SR-MPLS Prefix SID), L:0 N:0 E:0
       PDE: 14 (SR-MPLS Prefix SID), L:0 N:1 E:0

Using the ``show isis ppr`` command, verify that all routers installed
the PPR-IDs for the paths they are part of. Example:

Router RT11
^^^^^^^^^^^

::

   # show isis ppr
    Area  Level  ID                           Prefix        Metric  Position  Status  Uptime    
    --------------------------------------------------------------------------------------------
    1     L1     500 (MPLS)                   5000::11/128  0       Tail-End  Up      00:00:42  
    1     L1     501 (MPLS)                   5000::14/128  0       Head-End  Up      00:00:41  
    1     L1     502 (MPLS)                   5000::11/128  0       Tail-End  Up      00:00:42  
    1     L1     503 (MPLS)                   5000::14/128  0       Head-End  Up      00:00:41  
    1     L1     6000:1::1/128 (Native IPv6)  5000::11/128  50      Tail-End  -       -         
    1     L1     6000:2::1/128 (Native IPv6)  5000::14/128  50      Head-End  Up      00:00:41  

   # show mpls table
    Inbound Label  Type         Nexthop                    Outbound Label  
    -----------------------------------------------------------------------
    16             SR (IS-IS)   fe80::2065:5ff:fe72:d6c5   implicit-null   
    17             SR (IS-IS)   fe80::345f:dfff:fea4:913d  implicit-null   
    16011          SR (IS-IS)   lo                         -               
    16012          SR (IS-IS)   fe80::2065:5ff:fe72:d6c5   16012           
    16013          SR (IS-IS)   fe80::2065:5ff:fe72:d6c5   16013           
    16014          SR (IS-IS)   fe80::2065:5ff:fe72:d6c5   16014           
    16021          SR (IS-IS)   fe80::345f:dfff:fea4:913d  16021           
    16022          SR (IS-IS)   fe80::345f:dfff:fea4:913d  16022           
    16022          SR (IS-IS)   fe80::2065:5ff:fe72:d6c5   16022           
    16023          SR (IS-IS)   fe80::345f:dfff:fea4:913d  16023           
    16023          SR (IS-IS)   fe80::2065:5ff:fe72:d6c5   16023           
    16031          SR (IS-IS)   fe80::345f:dfff:fea4:913d  16031           
    16032          SR (IS-IS)   fe80::345f:dfff:fea4:913d  16032           
    16033          SR (IS-IS)   fe80::345f:dfff:fea4:913d  16033           
    16033          SR (IS-IS)   fe80::2065:5ff:fe72:d6c5   16033           
    16034          SR (IS-IS)   fe80::345f:dfff:fea4:913d  16034           
    16034          SR (IS-IS)   fe80::2065:5ff:fe72:d6c5   16034           
    16041          SR (IS-IS)   fe80::345f:dfff:fea4:913d  16041           
    16500          PPR (IS-IS)  lo                         -               
    16501          PPR (IS-IS)  fe80::345f:dfff:fea4:913d  16501           
    16502          PPR (IS-IS)  lo                         -               
    16503          PPR (IS-IS)  fe80::345f:dfff:fea4:913d  16503           

   # show ipv6 route 6000::/16 longer-prefixes isis
   Codes: K - kernel route, C - connected, S - static, R - RIPng,
          O - OSPFv3, I - IS-IS, B - BGP, N - NHRP, T - Table,
          v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR,
          f - OpenFabric,
          > - selected route, * - FIB route, q - queued route, r - rejected route

   I>* 6000:2::1/128 [115/50] via fe80::345f:dfff:fea4:913d, eth-rt21, 00:00:41

Router RT12
^^^^^^^^^^^

::

   # show isis ppr
    Area  Level  ID                           Prefix        Metric  Position  Status  Uptime  
    ------------------------------------------------------------------------------------------
    1     L1     500 (MPLS)                   5000::11/128  0       Off-Path  -       -       
    1     L1     501 (MPLS)                   5000::14/128  0       Off-Path  -       -       
    1     L1     502 (MPLS)                   5000::11/128  0       Off-Path  -       -       
    1     L1     503 (MPLS)                   5000::14/128  0       Off-Path  -       -       
    1     L1     6000:1::1/128 (Native IPv6)  5000::11/128  50      Off-Path  -       -       
    1     L1     6000:2::1/128 (Native IPv6)  5000::14/128  50      Off-Path  -       -       

   # show mpls table
    Inbound Label  Type        Nexthop                    Outbound Label  
    ----------------------------------------------------------------------
    16             SR (IS-IS)  fe80::60ad:96ff:fe3f:9989  implicit-null   
    17             SR (IS-IS)  fe80::9cd2:25ff:febc:84c4  implicit-null   
    18             SR (IS-IS)  fe80::941c:12ff:fe55:8a12  implicit-null   
    19             SR (IS-IS)  fe80::78a7:59ff:fedc:48b8  implicit-null   
    16011          SR (IS-IS)  fe80::60ad:96ff:fe3f:9989  16011           
    16012          SR (IS-IS)  lo                         -               
    16013          SR (IS-IS)  fe80::9cd2:25ff:febc:84c4  16013           
    16014          SR (IS-IS)  fe80::9cd2:25ff:febc:84c4  16014           
    16021          SR (IS-IS)  fe80::941c:12ff:fe55:8a12  16021           
    16022          SR (IS-IS)  fe80::78a7:59ff:fedc:48b8  16022           
    16023          SR (IS-IS)  fe80::78a7:59ff:fedc:48b8  16023           
    16023          SR (IS-IS)  fe80::9cd2:25ff:febc:84c4  16023           
    16031          SR (IS-IS)  fe80::941c:12ff:fe55:8a12  16031           
    16032          SR (IS-IS)  fe80::78a7:59ff:fedc:48b8  16032           
    16032          SR (IS-IS)  fe80::941c:12ff:fe55:8a12  16032           
    16033          SR (IS-IS)  fe80::78a7:59ff:fedc:48b8  16033           
    16034          SR (IS-IS)  fe80::78a7:59ff:fedc:48b8  16034           
    16034          SR (IS-IS)  fe80::9cd2:25ff:febc:84c4  16034           
    16041          SR (IS-IS)  fe80::78a7:59ff:fedc:48b8  16041           
    16041          SR (IS-IS)  fe80::941c:12ff:fe55:8a12  16041           

   # show ipv6 route 6000::/16 longer-prefixes isis

Router RT13
^^^^^^^^^^^

::

   # show isis ppr
    Area  Level  ID                           Prefix        Metric  Position  Status  Uptime  
    ------------------------------------------------------------------------------------------
    1     L1     500 (MPLS)                   5000::11/128  0       Off-Path  -       -       
    1     L1     501 (MPLS)                   5000::14/128  0       Off-Path  -       -       
    1     L1     502 (MPLS)                   5000::11/128  0       Off-Path  -       -       
    1     L1     503 (MPLS)                   5000::14/128  0       Off-Path  -       -       
    1     L1     6000:1::1/128 (Native IPv6)  5000::11/128  50      Off-Path  -       -       
    1     L1     6000:2::1/128 (Native IPv6)  5000::14/128  50      Off-Path  -       -       

   # show mpls table
    Inbound Label  Type        Nexthop                    Outbound Label  
    ----------------------------------------------------------------------
    16             SR (IS-IS)  fe80::1c70:63ff:fe40:3a35  implicit-null   
    17             SR (IS-IS)  fe80::20:56ff:feff:b218    implicit-null   
    18             SR (IS-IS)  fe80::44c5:3fff:fe1e:f34a  implicit-null   
    19             SR (IS-IS)  fe80::387d:34ff:fe02:87c3  implicit-null   
    16011          SR (IS-IS)  fe80::20:56ff:feff:b218    16011           
    16012          SR (IS-IS)  fe80::20:56ff:feff:b218    16012           
    16013          SR (IS-IS)  lo                         -               
    16014          SR (IS-IS)  fe80::1c70:63ff:fe40:3a35  16014           
    16021          SR (IS-IS)  fe80::387d:34ff:fe02:87c3  16021           
    16021          SR (IS-IS)  fe80::20:56ff:feff:b218    16021           
    16022          SR (IS-IS)  fe80::387d:34ff:fe02:87c3  16022           
    16023          SR (IS-IS)  fe80::44c5:3fff:fe1e:f34a  20023           
    16031          SR (IS-IS)  fe80::387d:34ff:fe02:87c3  16031           
    16031          SR (IS-IS)  fe80::20:56ff:feff:b218    16031           
    16032          SR (IS-IS)  fe80::387d:34ff:fe02:87c3  16032           
    16033          SR (IS-IS)  fe80::44c5:3fff:fe1e:f34a  20033           
    16033          SR (IS-IS)  fe80::387d:34ff:fe02:87c3  16033           
    16034          SR (IS-IS)  fe80::44c5:3fff:fe1e:f34a  20034           
    16041          SR (IS-IS)  fe80::44c5:3fff:fe1e:f34a  20041           
    16041          SR (IS-IS)  fe80::387d:34ff:fe02:87c3  16041           

   # show ipv6 route 6000::/16 longer-prefixes isis

Router RT14
^^^^^^^^^^^

::

   # show isis ppr
    Area  Level  ID                           Prefix        Metric  Position  Status  Uptime    
    --------------------------------------------------------------------------------------------
    1     L1     500 (MPLS)                   5000::11/128  0       Head-End  Up      00:00:46  
    1     L1     501 (MPLS)                   5000::14/128  0       Tail-End  Up      00:00:47  
    1     L1     502 (MPLS)                   5000::11/128  0       Head-End  Up      00:00:46  
    1     L1     503 (MPLS)                   5000::14/128  0       Tail-End  Up      00:00:47  
    1     L1     6000:1::1/128 (Native IPv6)  5000::11/128  50      Head-End  Up      00:00:46  
    1     L1     6000:2::1/128 (Native IPv6)  5000::14/128  50      Tail-End  -       -         

   # show mpls table
    Inbound Label  Type         Nexthop                    Outbound Label  
    -----------------------------------------------------------------------
    16             SR (IS-IS)   fe80::bcb5:99ff:fed7:22ad  implicit-null   
    17             SR (IS-IS)   fe80::4c7b:a1ff:fe66:6ca7  implicit-null   
    16011          SR (IS-IS)   fe80::bcb5:99ff:fed7:22ad  16011           
    16012          SR (IS-IS)   fe80::bcb5:99ff:fed7:22ad  16012           
    16013          SR (IS-IS)   fe80::bcb5:99ff:fed7:22ad  16013           
    16014          SR (IS-IS)   lo                         -               
    16021          SR (IS-IS)   fe80::4c7b:a1ff:fe66:6ca7  20021           
    16021          SR (IS-IS)   fe80::bcb5:99ff:fed7:22ad  16021           
    16022          SR (IS-IS)   fe80::4c7b:a1ff:fe66:6ca7  20022           
    16022          SR (IS-IS)   fe80::bcb5:99ff:fed7:22ad  16022           
    16023          SR (IS-IS)   fe80::4c7b:a1ff:fe66:6ca7  20023           
    16031          SR (IS-IS)   fe80::4c7b:a1ff:fe66:6ca7  20031           
    16031          SR (IS-IS)   fe80::bcb5:99ff:fed7:22ad  16031           
    16032          SR (IS-IS)   fe80::4c7b:a1ff:fe66:6ca7  20032           
    16032          SR (IS-IS)   fe80::bcb5:99ff:fed7:22ad  16032           
    16033          SR (IS-IS)   fe80::4c7b:a1ff:fe66:6ca7  20033           
    16034          SR (IS-IS)   fe80::4c7b:a1ff:fe66:6ca7  20034           
    16041          SR (IS-IS)   fe80::4c7b:a1ff:fe66:6ca7  20041           
    16500          PPR (IS-IS)  fe80::4c7b:a1ff:fe66:6ca7  20500           
    16501          PPR (IS-IS)  lo                         -               
    16502          PPR (IS-IS)  fe80::4c7b:a1ff:fe66:6ca7  20502           
    16503          PPR (IS-IS)  lo                         -               

   # show ipv6 route 6000::/16 longer-prefixes isis
   Codes: K - kernel route, C - connected, S - static, R - RIPng,
          O - OSPFv3, I - IS-IS, B - BGP, N - NHRP, T - Table,
          v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR,
          f - OpenFabric,
          > - selected route, * - FIB route, q - queued route, r - rejected route

   I>* 6000:1::1/128 [115/50] via fe80::4c7b:a1ff:fe66:6ca7, eth-rt23, 00:00:02

Router RT21
^^^^^^^^^^^

::

   # show isis ppr
    Area  Level  ID                           Prefix        Metric  Position   Status  Uptime    
    ---------------------------------------------------------------------------------------------
    1     L1     500 (MPLS)                   5000::11/128  0       Mid-Point  Up      00:00:49  
    1     L1     501 (MPLS)                   5000::14/128  0       Mid-Point  Up      00:00:48  
    1     L1     502 (MPLS)                   5000::11/128  0       Mid-Point  Up      00:00:49  
    1     L1     503 (MPLS)                   5000::14/128  0       Mid-Point  Up      00:00:48  
    1     L1     6000:1::1/128 (Native IPv6)  5000::11/128  50      Mid-Point  Up      00:00:49  
    1     L1     6000:2::1/128 (Native IPv6)  5000::14/128  50      Mid-Point  Up      00:00:48  

   # show mpls table
    Inbound Label  Type         Nexthop                    Outbound Label  
    -----------------------------------------------------------------------
    16             SR (IS-IS)   fe80::b886:2cff:fe84:a76f  implicit-null   
    17             SR (IS-IS)   fe80::bc7e:bbff:fe7f:ecb0  implicit-null   
    18             SR (IS-IS)   fe80::e877:a2ff:feb7:4438  implicit-null   
    19             SR (IS-IS)   fe80::a0c2:82ff:fe39:204c  implicit-null   
    20             SR (IS-IS)   fe80::ac6a:8aff:fe14:4f36  implicit-null   
    16011          SR (IS-IS)   fe80::e877:a2ff:feb7:4438  16011           
    16012          SR (IS-IS)   fe80::a0c2:82ff:fe39:204c  16012           
    16013          SR (IS-IS)   fe80::ac6a:8aff:fe14:4f36  16013           
    16013          SR (IS-IS)   fe80::a0c2:82ff:fe39:204c  16013           
    16014          SR (IS-IS)   fe80::ac6a:8aff:fe14:4f36  16014           
    16014          SR (IS-IS)   fe80::a0c2:82ff:fe39:204c  16014           
    16021          SR (IS-IS)   lo                         -               
    16022          SR (IS-IS)   fe80::ac6a:8aff:fe14:4f36  16022           
    16023          SR (IS-IS)   fe80::ac6a:8aff:fe14:4f36  16023           
    16031          SR (IS-IS)   fe80::bc7e:bbff:fe7f:ecb0  16031           
    16032          SR (IS-IS)   fe80::b886:2cff:fe84:a76f  16032           
    16033          SR (IS-IS)   fe80::b886:2cff:fe84:a76f  16033           
    16033          SR (IS-IS)   fe80::ac6a:8aff:fe14:4f36  16033           
    16034          SR (IS-IS)   fe80::b886:2cff:fe84:a76f  16034           
    16034          SR (IS-IS)   fe80::ac6a:8aff:fe14:4f36  16034           
    16041          SR (IS-IS)   fe80::b886:2cff:fe84:a76f  16041           
    16500          PPR (IS-IS)  fe80::e877:a2ff:feb7:4438  16500           
    16501          PPR (IS-IS)  fe80::ac6a:8aff:fe14:4f36  16501           
    16502          PPR (IS-IS)  fe80::e877:a2ff:feb7:4438  16502           
    16503          PPR (IS-IS)  fe80::bc7e:bbff:fe7f:ecb0  16503           

   # show ipv6 route 6000::/16 longer-prefixes isis
   Codes: K - kernel route, C - connected, S - static, R - RIPng,
          O - OSPFv3, I - IS-IS, B - BGP, N - NHRP, T - Table,
          v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR,
          f - OpenFabric,
          > - selected route, * - FIB route, q - queued route, r - rejected route

   I>* 6000:1::1/128 [115/50] via fe80::e877:a2ff:feb7:4438, eth-rt11, 00:00:04
   I>* 6000:2::1/128 [115/50] via fe80::ac6a:8aff:fe14:4f36, eth-rt22, 00:00:04

Router RT22
^^^^^^^^^^^

::

   # show isis ppr
    Area  Level  ID                           Prefix        Metric  Position   Status  Uptime    
    ---------------------------------------------------------------------------------------------
    1     L1     500 (MPLS)                   5000::11/128  0       Mid-Point  Up      00:00:50  
    1     L1     501 (MPLS)                   5000::14/128  0       Mid-Point  Up      00:00:50  
    1     L1     502 (MPLS)                   5000::11/128  0       Off-Path   -       -         
    1     L1     503 (MPLS)                   5000::14/128  0       Off-Path   -       -         
    1     L1     6000:1::1/128 (Native IPv6)  5000::11/128  50      Mid-Point  Up      00:00:50  
    1     L1     6000:2::1/128 (Native IPv6)  5000::14/128  50      Mid-Point  Up      00:00:50  

   # show mpls table
    Inbound Label  Type         Nexthop                    Outbound Label  
    -----------------------------------------------------------------------
    16             SR (IS-IS)   fe80::3432:84ff:fe9d:2e41  implicit-null   
    17             SR (IS-IS)   fe80::c436:63ff:feb3:4f5d  implicit-null   
    18             SR (IS-IS)   fe80::56:41ff:fe53:a6b2    implicit-null   
    19             SR (IS-IS)   fe80::b423:eaff:fea1:8247  implicit-null   
    20             SR (IS-IS)   fe80::9c2f:11ff:fe0a:ab34  implicit-null   
    21             SR (IS-IS)   fe80::7402:b8ff:fee9:682e  implicit-null   
    16011          SR (IS-IS)   fe80::b423:eaff:fea1:8247  16011           
    16011          SR (IS-IS)   fe80::3432:84ff:fe9d:2e41  16011           
    16012          SR (IS-IS)   fe80::3432:84ff:fe9d:2e41  16012           
    16013          SR (IS-IS)   fe80::c436:63ff:feb3:4f5d  16013           
    16014          SR (IS-IS)   fe80::56:41ff:fe53:a6b2    20014           
    16014          SR (IS-IS)   fe80::c436:63ff:feb3:4f5d  16014           
    16021          SR (IS-IS)   fe80::b423:eaff:fea1:8247  16021           
    16022          SR (IS-IS)   lo                         -               
    16023          SR (IS-IS)   fe80::56:41ff:fe53:a6b2    20023           
    16031          SR (IS-IS)   fe80::9c2f:11ff:fe0a:ab34  16031           
    16031          SR (IS-IS)   fe80::b423:eaff:fea1:8247  16031           
    16032          SR (IS-IS)   fe80::9c2f:11ff:fe0a:ab34  16032           
    16033          SR (IS-IS)   fe80::7402:b8ff:fee9:682e  16033           
    16034          SR (IS-IS)   fe80::7402:b8ff:fee9:682e  16034           
    16034          SR (IS-IS)   fe80::56:41ff:fe53:a6b2    20034           
    16041          SR (IS-IS)   fe80::7402:b8ff:fee9:682e  16041           
    16041          SR (IS-IS)   fe80::9c2f:11ff:fe0a:ab34  16041           
    16500          PPR (IS-IS)  fe80::b423:eaff:fea1:8247  16500           
    16501          PPR (IS-IS)  fe80::56:41ff:fe53:a6b2    20501           

   # show ipv6 route 6000::/16 longer-prefixes isis
   Codes: K - kernel route, C - connected, S - static, R - RIPng,
          O - OSPFv3, I - IS-IS, B - BGP, N - NHRP, T - Table,
          v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR,
          f - OpenFabric,
          > - selected route, * - FIB route, q - queued route, r - rejected route

   I>* 6000:1::1/128 [115/50] via fe80::b423:eaff:fea1:8247, eth-rt21, 00:00:06
   I>* 6000:2::1/128 [115/50] via fe80::56:41ff:fe53:a6b2, eth-rt23, 00:00:06

Router RT23
^^^^^^^^^^^

::

   # show isis ppr
    Area  Level  ID                           Prefix        Metric  Position   Status  Uptime    
    ---------------------------------------------------------------------------------------------
    1     L1     500 (MPLS)                   5000::11/128  0       Mid-Point  Up      00:00:52  
    1     L1     501 (MPLS)                   5000::14/128  0       Mid-Point  Up      00:00:52  
    1     L1     502 (MPLS)                   5000::11/128  0       Mid-Point  Up      00:00:52  
    1     L1     503 (MPLS)                   5000::14/128  0       Mid-Point  Up      00:00:52  
    1     L1     6000:1::1/128 (Native IPv6)  5000::11/128  50      Mid-Point  Up      00:00:52  
    1     L1     6000:2::1/128 (Native IPv6)  5000::14/128  50      Mid-Point  Up      00:00:52  

   # show mpls table
    Inbound Label  Type         Nexthop                    Outbound Label  
    -----------------------------------------------------------------------
    16             SR (IS-IS)   fe80::c4ca:41ff:fe2d:de8c  implicit-null   
    17             SR (IS-IS)   fe80::a02b:1eff:fed6:97e4  implicit-null   
    18             SR (IS-IS)   fe80::5c15:8aff:feea:1d07  implicit-null   
    19             SR (IS-IS)   fe80::a42f:50ff:fe9c:af9f  implicit-null   
    20             SR (IS-IS)   fe80::d0dc:6eff:fe71:9f19  implicit-null   
    20011          SR (IS-IS)   fe80::5c15:8aff:feea:1d07  16011           
    20011          SR (IS-IS)   fe80::a02b:1eff:fed6:97e4  16011           
    20012          SR (IS-IS)   fe80::5c15:8aff:feea:1d07  16012           
    20012          SR (IS-IS)   fe80::a02b:1eff:fed6:97e4  16012           
    20013          SR (IS-IS)   fe80::a02b:1eff:fed6:97e4  16013           
    20014          SR (IS-IS)   fe80::c4ca:41ff:fe2d:de8c  16014           
    20021          SR (IS-IS)   fe80::5c15:8aff:feea:1d07  16021           
    20022          SR (IS-IS)   fe80::5c15:8aff:feea:1d07  16022           
    20023          SR (IS-IS)   lo                         -               
    20031          SR (IS-IS)   fe80::a42f:50ff:fe9c:af9f  16031           
    20031          SR (IS-IS)   fe80::5c15:8aff:feea:1d07  16031           
    20032          SR (IS-IS)   fe80::a42f:50ff:fe9c:af9f  16032           
    20032          SR (IS-IS)   fe80::5c15:8aff:feea:1d07  16032           
    20033          SR (IS-IS)   fe80::a42f:50ff:fe9c:af9f  16033           
    20034          SR (IS-IS)   fe80::d0dc:6eff:fe71:9f19  16034           
    20041          SR (IS-IS)   fe80::a42f:50ff:fe9c:af9f  16041           
    20500          PPR (IS-IS)  fe80::5c15:8aff:feea:1d07  16500           
    20501          PPR (IS-IS)  fe80::c4ca:41ff:fe2d:de8c  16501           
    20502          PPR (IS-IS)  fe80::d0dc:6eff:fe71:9f19  16502           
    20503          PPR (IS-IS)  fe80::c4ca:41ff:fe2d:de8c  16503           

   # show ipv6 route 6000::/16 longer-prefixes isis
   Codes: K - kernel route, C - connected, S - static, R - RIPng,
          O - OSPFv3, I - IS-IS, B - BGP, N - NHRP, T - Table,
          v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR,
          f - OpenFabric,
          > - selected route, * - FIB route, q - queued route, r - rejected route

   I>* 6000:1::1/128 [115/50] via fe80::5c15:8aff:feea:1d07, eth-rt22, 00:00:07
   I>* 6000:2::1/128 [115/50] via fe80::c4ca:41ff:fe2d:de8c, eth-rt14, 00:00:07

Router RT31
^^^^^^^^^^^

::

   # show isis ppr
    Area  Level  ID                           Prefix        Metric  Position   Status  Uptime    
    ---------------------------------------------------------------------------------------------
    1     L1     500 (MPLS)                   5000::11/128  0       Off-Path   -       -         
    1     L1     501 (MPLS)                   5000::14/128  0       Off-Path   -       -         
    1     L1     502 (MPLS)                   5000::11/128  0       Mid-Point  Up      00:00:54  
    1     L1     503 (MPLS)                   5000::14/128  0       Mid-Point  Up      00:00:54  
    1     L1     6000:1::1/128 (Native IPv6)  5000::11/128  50      Off-Path   -       -         
    1     L1     6000:2::1/128 (Native IPv6)  5000::14/128  50      Off-Path   -       -         

   # show mpls table
    Inbound Label  Type         Nexthop                    Outbound Label  
    -----------------------------------------------------------------------
    16             SR (IS-IS)   fe80::a067:c6ff:fe2c:3385  implicit-null   
    17             SR (IS-IS)   fe80::f46d:c8ff:fe8a:a341  implicit-null   
    16011          SR (IS-IS)   fe80::a067:c6ff:fe2c:3385  16011           
    16012          SR (IS-IS)   fe80::a067:c6ff:fe2c:3385  16012           
    16013          SR (IS-IS)   fe80::f46d:c8ff:fe8a:a341  16013           
    16013          SR (IS-IS)   fe80::a067:c6ff:fe2c:3385  16013           
    16014          SR (IS-IS)   fe80::f46d:c8ff:fe8a:a341  16014           
    16014          SR (IS-IS)   fe80::a067:c6ff:fe2c:3385  16014           
    16021          SR (IS-IS)   fe80::a067:c6ff:fe2c:3385  16021           
    16022          SR (IS-IS)   fe80::f46d:c8ff:fe8a:a341  16022           
    16022          SR (IS-IS)   fe80::a067:c6ff:fe2c:3385  16022           
    16023          SR (IS-IS)   fe80::f46d:c8ff:fe8a:a341  16023           
    16023          SR (IS-IS)   fe80::a067:c6ff:fe2c:3385  16023           
    16031          SR (IS-IS)   lo                         -               
    16032          SR (IS-IS)   fe80::f46d:c8ff:fe8a:a341  16032           
    16033          SR (IS-IS)   fe80::f46d:c8ff:fe8a:a341  16033           
    16034          SR (IS-IS)   fe80::f46d:c8ff:fe8a:a341  16034           
    16041          SR (IS-IS)   fe80::f46d:c8ff:fe8a:a341  16041           
    16502          PPR (IS-IS)  fe80::a067:c6ff:fe2c:3385  16502           
    16503          PPR (IS-IS)  fe80::f46d:c8ff:fe8a:a341  16503           

   # show ipv6 route 6000::/16 longer-prefixes isis

Router RT32
^^^^^^^^^^^

::

   # show isis ppr
    Area  Level  ID                           Prefix        Metric  Position   Status  Uptime    
    ---------------------------------------------------------------------------------------------
    1     L1     500 (MPLS)                   5000::11/128  0       Off-Path   -       -         
    1     L1     501 (MPLS)                   5000::14/128  0       Off-Path   -       -         
    1     L1     502 (MPLS)                   5000::11/128  0       Mid-Point  Up      00:00:55  
    1     L1     503 (MPLS)                   5000::14/128  0       Mid-Point  Up      00:00:55  
    1     L1     6000:1::1/128 (Native IPv6)  5000::11/128  50      Off-Path   -       -         
    1     L1     6000:2::1/128 (Native IPv6)  5000::14/128  50      Off-Path   -       -         

   # show mpls table
    Inbound Label  Type         Nexthop                    Outbound Label  
    -----------------------------------------------------------------------
    16             SR (IS-IS)   fe80::881f:d3ff:febd:9e8c  implicit-null   
    17             SR (IS-IS)   fe80::1c7e:c3ff:fe5e:7a54  implicit-null   
    18             SR (IS-IS)   fe80::9863:abff:fed0:d7e   implicit-null   
    19             SR (IS-IS)   fe80::ec65:d1ff:fe32:b508  implicit-null   
    20             SR (IS-IS)   fe80::a4e9:77ff:feaa:f690  implicit-null   
    21             SR (IS-IS)   fe80::40c4:e6ff:fe26:767f  implicit-null   
    16011          SR (IS-IS)   fe80::881f:d3ff:febd:9e8c  16011           
    16012          SR (IS-IS)   fe80::40c4:e6ff:fe26:767f  16012           
    16012          SR (IS-IS)   fe80::881f:d3ff:febd:9e8c  16012           
    16013          SR (IS-IS)   fe80::40c4:e6ff:fe26:767f  16013           
    16014          SR (IS-IS)   fe80::1c7e:c3ff:fe5e:7a54  16014           
    16014          SR (IS-IS)   fe80::ec65:d1ff:fe32:b508  16014           
    16014          SR (IS-IS)   fe80::40c4:e6ff:fe26:767f  16014           
    16021          SR (IS-IS)   fe80::881f:d3ff:febd:9e8c  16021           
    16022          SR (IS-IS)   fe80::40c4:e6ff:fe26:767f  16022           
    16023          SR (IS-IS)   fe80::1c7e:c3ff:fe5e:7a54  16023           
    16023          SR (IS-IS)   fe80::ec65:d1ff:fe32:b508  16023           
    16023          SR (IS-IS)   fe80::40c4:e6ff:fe26:767f  16023           
    16031          SR (IS-IS)   fe80::9863:abff:fed0:d7e   16031           
    16032          SR (IS-IS)   lo                         -               
    16033          SR (IS-IS)   fe80::1c7e:c3ff:fe5e:7a54  16033           
    16033          SR (IS-IS)   fe80::ec65:d1ff:fe32:b508  16033           
    16034          SR (IS-IS)   fe80::1c7e:c3ff:fe5e:7a54  16034           
    16034          SR (IS-IS)   fe80::ec65:d1ff:fe32:b508  16034           
    16041          SR (IS-IS)   fe80::a4e9:77ff:feaa:f690  16041           
    16502          PPR (IS-IS)  fe80::9863:abff:fed0:d7e   16502           
    16503          PPR (IS-IS)  fe80::a4e9:77ff:feaa:f690  16503           

   # show ipv6 route 6000::/16 longer-prefixes isis

Router RT33
^^^^^^^^^^^

::

   # show isis ppr
    Area  Level  ID                           Prefix        Metric  Position   Status  Uptime    
    ---------------------------------------------------------------------------------------------
    1     L1     500 (MPLS)                   5000::11/128  0       Off-Path   -       -         
    1     L1     501 (MPLS)                   5000::14/128  0       Off-Path   -       -         
    1     L1     502 (MPLS)                   5000::11/128  0       Mid-Point  Up      00:00:57  
    1     L1     503 (MPLS)                   5000::14/128  0       Mid-Point  Up      00:00:57  
    1     L1     6000:1::1/128 (Native IPv6)  5000::11/128  50      Off-Path   -       -         
    1     L1     6000:2::1/128 (Native IPv6)  5000::14/128  50      Off-Path   -       -         

   # show mpls table
    Inbound Label  Type         Nexthop                    Outbound Label  
    -----------------------------------------------------------------------
    16             SR (IS-IS)   fe80::2832:a9ff:fec3:7078  implicit-null   
    17             SR (IS-IS)   fe80::7806:e1ff:fe72:9b1f  implicit-null   
    18             SR (IS-IS)   fe80::5476:31ff:fe94:c39   implicit-null   
    19             SR (IS-IS)   fe80::a4e9:77ff:feaa:f690  implicit-null   
    20             SR (IS-IS)   fe80::68c9:2ff:fe04:5eba   implicit-null   
    21             SR (IS-IS)   fe80::d053:97ff:fee2:1711  implicit-null   
    16011          SR (IS-IS)   fe80::2832:a9ff:fec3:7078  16011           
    16011          SR (IS-IS)   fe80::5476:31ff:fe94:c39   16011           
    16011          SR (IS-IS)   fe80::d053:97ff:fee2:1711  16011           
    16012          SR (IS-IS)   fe80::d053:97ff:fee2:1711  16012           
    16013          SR (IS-IS)   fe80::68c9:2ff:fe04:5eba   20013           
    16013          SR (IS-IS)   fe80::d053:97ff:fee2:1711  16013           
    16014          SR (IS-IS)   fe80::68c9:2ff:fe04:5eba   20014           
    16021          SR (IS-IS)   fe80::2832:a9ff:fec3:7078  16021           
    16021          SR (IS-IS)   fe80::5476:31ff:fe94:c39   16021           
    16021          SR (IS-IS)   fe80::d053:97ff:fee2:1711  16021           
    16022          SR (IS-IS)   fe80::d053:97ff:fee2:1711  16022           
    16023          SR (IS-IS)   fe80::68c9:2ff:fe04:5eba   20023           
    16031          SR (IS-IS)   fe80::2832:a9ff:fec3:7078  16031           
    16031          SR (IS-IS)   fe80::5476:31ff:fe94:c39   16031           
    16032          SR (IS-IS)   fe80::2832:a9ff:fec3:7078  16032           
    16032          SR (IS-IS)   fe80::5476:31ff:fe94:c39   16032           
    16033          SR (IS-IS)   lo                         -               
    16034          SR (IS-IS)   fe80::7806:e1ff:fe72:9b1f  16034           
    16041          SR (IS-IS)   fe80::a4e9:77ff:feaa:f690  16041           
    16502          PPR (IS-IS)  fe80::a4e9:77ff:feaa:f690  16502           
    16503          PPR (IS-IS)  fe80::7806:e1ff:fe72:9b1f  16503           

   # show ipv6 route 6000::/16 longer-prefixes isis

Router RT34
^^^^^^^^^^^

::

   # show isis ppr
    Area  Level  ID                           Prefix        Metric  Position   Status  Uptime    
    ---------------------------------------------------------------------------------------------
    1     L1     500 (MPLS)                   5000::11/128  0       Off-Path   -       -         
    1     L1     501 (MPLS)                   5000::14/128  0       Off-Path   -       -         
    1     L1     502 (MPLS)                   5000::11/128  0       Mid-Point  Up      00:00:59  
    1     L1     503 (MPLS)                   5000::14/128  0       Mid-Point  Up      00:00:59  
    1     L1     6000:1::1/128 (Native IPv6)  5000::11/128  50      Off-Path   -       -         
    1     L1     6000:2::1/128 (Native IPv6)  5000::14/128  50      Off-Path   -       -         

   # show mpls table
    Inbound Label  Type         Nexthop                    Outbound Label  
    -----------------------------------------------------------------------
    16             SR (IS-IS)   fe80::ac33:5dff:fe99:81ec  implicit-null   
    17             SR (IS-IS)   fe80::f009:b9ff:fe05:e540  implicit-null   
    16011          SR (IS-IS)   fe80::ac33:5dff:fe99:81ec  16011           
    16011          SR (IS-IS)   fe80::f009:b9ff:fe05:e540  20011           
    16012          SR (IS-IS)   fe80::ac33:5dff:fe99:81ec  16012           
    16012          SR (IS-IS)   fe80::f009:b9ff:fe05:e540  20012           
    16013          SR (IS-IS)   fe80::f009:b9ff:fe05:e540  20013           
    16014          SR (IS-IS)   fe80::f009:b9ff:fe05:e540  20014           
    16021          SR (IS-IS)   fe80::ac33:5dff:fe99:81ec  16021           
    16021          SR (IS-IS)   fe80::f009:b9ff:fe05:e540  20021           
    16022          SR (IS-IS)   fe80::ac33:5dff:fe99:81ec  16022           
    16022          SR (IS-IS)   fe80::f009:b9ff:fe05:e540  20022           
    16023          SR (IS-IS)   fe80::f009:b9ff:fe05:e540  20023           
    16031          SR (IS-IS)   fe80::ac33:5dff:fe99:81ec  16031           
    16032          SR (IS-IS)   fe80::ac33:5dff:fe99:81ec  16032           
    16033          SR (IS-IS)   fe80::ac33:5dff:fe99:81ec  16033           
    16034          SR (IS-IS)   lo                         -               
    16041          SR (IS-IS)   fe80::ac33:5dff:fe99:81ec  16041           
    16502          PPR (IS-IS)  fe80::ac33:5dff:fe99:81ec  16502           
    16503          PPR (IS-IS)  fe80::f009:b9ff:fe05:e540  20503           

   # show ipv6 route 6000::/16 longer-prefixes isis

Router RT41
^^^^^^^^^^^

::

   # show isis ppr
    Area  Level  ID                           Prefix        Metric  Position   Status  Uptime    
    ---------------------------------------------------------------------------------------------
    1     L1     500 (MPLS)                   5000::11/128  0       Off-Path   -       -         
    1     L1     501 (MPLS)                   5000::14/128  0       Off-Path   -       -         
    1     L1     502 (MPLS)                   5000::11/128  0       Mid-Point  Up      00:01:01  
    1     L1     503 (MPLS)                   5000::14/128  0       Mid-Point  Up      00:01:01  
    1     L1     6000:1::1/128 (Native IPv6)  5000::11/128  50      Off-Path   -       -         
    1     L1     6000:2::1/128 (Native IPv6)  5000::14/128  50      Off-Path   -       -         

   # show mpls table
    Inbound Label  Type         Nexthop                    Outbound Label  
    -----------------------------------------------------------------------
    16             SR (IS-IS)   fe80::1c7e:c3ff:fe5e:7a54  implicit-null   
    17             SR (IS-IS)   fe80::2832:a9ff:fec3:7078  implicit-null   
    16011          SR (IS-IS)   fe80::2832:a9ff:fec3:7078  16011           
    16012          SR (IS-IS)   fe80::2832:a9ff:fec3:7078  16012           
    16012          SR (IS-IS)   fe80::1c7e:c3ff:fe5e:7a54  16012           
    16013          SR (IS-IS)   fe80::2832:a9ff:fec3:7078  16013           
    16013          SR (IS-IS)   fe80::1c7e:c3ff:fe5e:7a54  16013           
    16014          SR (IS-IS)   fe80::1c7e:c3ff:fe5e:7a54  16014           
    16021          SR (IS-IS)   fe80::2832:a9ff:fec3:7078  16021           
    16022          SR (IS-IS)   fe80::2832:a9ff:fec3:7078  16022           
    16022          SR (IS-IS)   fe80::1c7e:c3ff:fe5e:7a54  16022           
    16023          SR (IS-IS)   fe80::1c7e:c3ff:fe5e:7a54  16023           
    16031          SR (IS-IS)   fe80::2832:a9ff:fec3:7078  16031           
    16032          SR (IS-IS)   fe80::2832:a9ff:fec3:7078  16032           
    16033          SR (IS-IS)   fe80::1c7e:c3ff:fe5e:7a54  16033           
    16034          SR (IS-IS)   fe80::1c7e:c3ff:fe5e:7a54  16034           
    16041          SR (IS-IS)   lo                         -               
    16502          PPR (IS-IS)  fe80::2832:a9ff:fec3:7078  16502           
    16503          PPR (IS-IS)  fe80::1c7e:c3ff:fe5e:7a54  16503           

   # show ipv6 route 6000::/16 longer-prefixes isis

Notice how R23 uses a different SRGB compared to the other routers in
the network. As such, this router install different labels for PPR-IDs
500 and 501 (e.g. 20500 instead of 16500 using the default SRGB).

Verification - Forwarding Plane
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Ping Host 3 from Host2 and use tcpdump or wireshark to verify that the
ICMP packets are being tunneled using MPLS LSPs and following the {R11 -
R21 - R22 - R23 - R14} path. Here’s a wireshark capture between R11 and
R21:

.. figure:: https://user-images.githubusercontent.com/931662/64057179-2e980080-cb70-11e9-89c3-ff43e6d66cae.png
   :alt: wireshark

   wireshark

Using ``traceroute`` it’s also possible to see that the ICMP packets are
being tunneled through the IS-IS network:

::

   root@host2:~# traceroute -n fd00:20:1::1 -s fd00:10:2::1
   traceroute to fd00:20:1::1 (fd00:20:1::1), 30 hops max, 80 byte packets
    1  fd00:10:2::100  1.996 ms  1.832 ms  1.725 ms
    2  * * *
    3  * * *
    4  * * *
    5  * * *
    6  * * *
    7  * * *
    8  fd00:20::100  0.154 ms  0.191 ms  0.116 ms
    9  fd00:20:1::1  0.125 ms  0.105 ms  0.104 ms