SR basic inter-IGP (redistribution)
Last updated
Last updated
Load sr.inter.igp.init.cfg
ISIS and OSPF are already pre-configured as shown in the diagram below. R3 is running both ISIS and OSPF.
Configure mutual redistribution between ISIS and OSPF so that PEs such as R2 and R8 can form an end-to-end LSP.
Simply redistributing prefixes between IGPs or between an IGP and BGP will automatically cause the prefix SID to be advertised with it. This is because the RIB drives the redistribution, and the label for the prefix is present in the RIB. SR automatically captures this label, converts it to the index number, and advertises it into the other protocol. For this to work, both protocols must have the same SRGB. If they do not, the prefix is still redistributed of course, but the prefix SID is not included.
Also note that, because the RIB drives the prefix SID advertisement, the local ASBR’s loopback must be natively advertised into both protocols. I’ve removed this from R3 so that it is not advertising Lo1 into OSPF directly right now. The redistribution of ISIS into OSPF catches Lo1 because it is locally advertised into ISIS. We can see that R7 knows the route to 3.3.3.1/32. However, there is no label associated with it.
Instead, we must natively advertise the loopback into all protocols on the ASBR.
R7 now has a route for the prefix with an SR label:
Let’s follow how a prefix is advertised from ISIS to OSPF. We’ll look at 2.2.2.1/32. This is present in the RIB of R3 via ISIS with a label:
When R3 redistributes ISIS into OSPF, the label is gathered from the RIB and converted to an index because the SRGB of ISIS and OSPF match. R3 then injects this as an OSPF E2 prefix (type 5 LSA) as usual, and also generates a corresponding Opaque External Prefix LSA with type 11 (domain-wide flooding). Note that this is one of the few times you will see an Opaque-AS (type 11) LSA instead of Opaque-area (type 10).
Above, the flags 0x40 mean that only the No-PHP flag is set. This is the same as with inter-area SR: the ABR (ASBR in this case) sets the No-PHP flag because it is not the ultimate hop for the prefix.
Let’s now follow redistribution from OSPF into ISIS. We’ll examine 8.8.8.1/32. This is present in the RIB of R3 via OSPF with a label:
R3 advertises this into its ISIS L2 LSP as an Extended IP prefix, with an associated Prefix SID index value. The R flag is set (re-advertisement) as well as the PHP-Off flag, because R3 is not the ultimate node for the prefix. The X flag (external) is also set, but this is not related to SR, it is normal ISIS behavior when redistributing prefixes.
R2 and R8 now have an end-to-end LSP. We’ll enable mpls oam on all nodes to confirm: