OcNOS-SP : Segment Routing Guide : Path Computation Element Communication Protocol Configuration Guide : BGP Link State with ISIS Segment Routing : SRMS Configuration
SRMS Configuration
R5
 
R5(config)#segment-routing
Entering to SRMS.
R5(config-sr)#mapping-server
Entering to Mapping Server
R5(config-sr-ms)#prefix-sid-map address-family ipv4
Entering to prefix-to sid mapping.
R5(config-sr-ms-map-af4)#21.21.21.21/32 4545 attached
Configure SID for prefix.
R5(config-sr-ms-map-af4)#31.31.31.31/32 3535 attached
Configure SID for prefix.
R5(config-sr-ms-map-af4)#end
Exit from SRMS.
R5#configure terminal
Entering to Config mode.
R5(config)#router isis 1
Entering to router isis mode.
R5(config-router)#segment-routing prefix-sid-map advertise-local
Configure advertise-local for prefix-sid mapping.
R5(config-router)#exit
Exit from router isis mode
R3
 
R3(config)#segment-routing
Entering to SRMS.
R3(config-sr)#mapping-server
Entering to Mapping Server
R3(config-sr-ms)#prefix-sid-map address-family ipv4
Entering to prefix-to sid mapping.
R3(config-sr-ms-map-af4)#11.11.11.11/32 1111 range 3
Configure SID for prefix.
R3(config-sr-ms-map-af4)#12.12.12.12/32 6767 range 1
Configure SID for prefix.
R3(config-sr-ms-map-af4)#end
Exit from SRMS.
R3#configure terminal
Entering to Config mode.
R3(config)#router isis 1
Entering to router isis mode.
R3(config-router)#segment-routing prefix-sid-map advertise-local
Configure advertise-local for prefix-sid mapping.
R3(config-router)#exit
Exit from router isis mode
Validation on R3
ISIS Database Verbose
R3#show isis database verbose
Tag 1: VRF : default
IS-IS Level-1 Link State Database:
LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL
R1.00-00 0x00000018 0xBFF4 1071 0/0/0
Area Address: 49.0000
NLPID: 0xCC
Hostname: R1
IP Address: 10.1.1.1
Router ID: 1.1.1.1
Router Cap: 1.1.1.1
SRGB Range: 3000 SRGB Base SID: 18000 I:1 V:0
SR-Algorithm:
Algorithm: 0
Metric: 10 IS-Extended R1.01
IPv4 Interface Address: 10.1.1.1
Neighbor IP Address: 10.1.1.1
Maximum Link Bandwidth: 10g
Reservable Bandwidth: 10g
Unreserved Bandwidth:
Unreserved Bandwidth at priority 0: 10g
Unreserved Bandwidth at priority 1: 10g
Unreserved Bandwidth at priority 2: 10g
Unreserved Bandwidth at priority 3: 10g
Unreserved Bandwidth at priority 4: 10g
Unreserved Bandwidth at priority 5: 10g
Unreserved Bandwidth at priority 6: 10g
Unreserved Bandwidth at priority 7: 10g
TE-Default Metric: 10
System-ID: 0000.0000.0003 LAN Adjacency SID: 24960 F:0 B:0 V:1 L:1 S:0 P:0
Metric: 10 IP-Extended 10.1.1.0/30
Metric: 10 IP-Extended 1.1.1.1/32
Prefix-SID: index 100 R:0 N:1 P:0 E:0 V:0 L:0
R1.01-00 0x00000002 0xA129 1083 0/0/0
Metric: 0 IS-Extended R1.00
Metric: 0 IS-Extended R3.00
R1.02-00 0x00000012 0xC623 0 (328) 0/0/0
R3.00-00 * 0x00000116 0x5AAC 1194 1/0/0
Area Address: 49.0000
NLPID: 0xCC
Hostname: R3
IP Address: 10.1.1.2
Router ID: 3.3.3.3
Router Cap: 3.3.3.3
SRGB Range: 4801 SRGB Base SID: 17500 I:1 V:0
SR-Algorithm:
Algorithm: 0
SRMS-Preference: 128
Metric: 10 IS-Extended R1.01
IPv4 Interface Address: 10.1.1.2
Neighbor IP Address: 10.1.1.1
Maximum Link Bandwidth: 10g
Reservable Bandwidth: 10g
Unreserved Bandwidth:
Unreserved Bandwidth at priority 0: 10g
Unreserved Bandwidth at priority 1: 10g
Unreserved Bandwidth at priority 2: 10g
Unreserved Bandwidth at priority 3: 10g
Unreserved Bandwidth at priority 4: 10g
Unreserved Bandwidth at priority 5: 10g
Unreserved Bandwidth at priority 6: 10g
Unreserved Bandwidth at priority 7: 10g
TE-Default Metric: 10
System-ID: 0000.0000.0001 LAN Adjacency SID: 24320 F:0 B:0 V:1 L:1 S:0 P:0
Metric: 10 IS-Extended 0000.0000.0004.01
IPv4 Interface Address: 30.1.1.1
Neighbor IP Address: 30.1.1.2
Maximum Link Bandwidth: 10g
Reservable Bandwidth: 10g
Unreserved Bandwidth:
Unreserved Bandwidth at priority 0: 10g
Unreserved Bandwidth at priority 1: 10g
Unreserved Bandwidth at priority 2: 10g
Unreserved Bandwidth at priority 3: 10g
Unreserved Bandwidth at priority 4: 10g
Unreserved Bandwidth at priority 5: 10g
Unreserved Bandwidth at priority 6: 10g
Unreserved Bandwidth at priority 7: 10g
TE-Default Metric: 10
System-ID: 0000.0000.0004 LAN Adjacency SID: 24322 F:0 B:0 V:1 L:1 S:0 P:0
Metric: 10 IP-Extended 10.1.1.0/24
Metric: 10 IP-Extended 20.1.1.0/24
Metric: 10 IP-Extended 30.1.1.0/24
Metric: 10 IP-Extended 3.3.3.3/32
Prefix-SID: index 300 R:0 N:1 P:0 E:0 V:0 L:0
Metric: 20 IP-Extended 2.2.2.2/32
Prefix-SID: index 400 R:1 N:0 P:0 E:0 V:0 L:0
SID Binding: 11.11.11.11/32 F:0 M:0 S:0 D:0 A:0 Range:3
SID: Start:1111 Algorithm:0 R:0 N:0 P:0 E:0 V:0 L:0
SID Binding: 12.12.12.12/32 F:0 M:0 S:0 D:0 A:0 Range:1
SID: Start:6767 Algorithm:0 R:0 N:0 P:0 E:0 V:0 L:0
0000.0000.0004.00-00 0x00000016 0xAA99 1071 0/0/0
Area Address: 49.0000
NLPID: 0xCC
IP Address: 30.1.1.2
Router ID: 4.4.4.4
Router Cap: 4.4.4.4
SRGB Range: 7301 SRGB Base SID: 16500 I:1 V:0
SR-Algorithm:
Algorithm: 0
Metric: 10 IS-Extended 0000.0000.0004.01
IPv4 Interface Address: 30.1.1.2
Neighbor IP Address: 30.1.1.2
Maximum Link Bandwidth: 10g
Reservable Bandwidth: 10g
Unreserved Bandwidth:
Unreserved Bandwidth at priority 0: 10g
Unreserved Bandwidth at priority 1: 10g
Unreserved Bandwidth at priority 2: 10g
Unreserved Bandwidth at priority 3: 10g
Unreserved Bandwidth at priority 4: 10g
Unreserved Bandwidth at priority 5: 10g
Unreserved Bandwidth at priority 6: 10g
Unreserved Bandwidth at priority 7: 10g
TE-Default Metric: 10
System-ID: 0000.0000.0003 LAN Adjacency SID: 24320 F:0 B:0 V:1 L:1 S:0 P:0
Metric: 10 IP-Extended 30.1.1.0/24
Metric: 10 IP-Extended 4.4.4.4/32
Prefix-SID: index 500 R:0 N:1 P:0 E:0 V:0 L:0
0000.0000.0004.01-00 0x00000001 0xA61F 395 0/0/0
Metric: 0 IS-Extended 0000.0000.0004.00
Metric: 0 IS-Extended R3.00
0000.0000.0004.02-00 0x00000010 0xB236 0 (365) 0/0/0
 
IS-IS Level-2 Link State Database:
LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL
0000.0000.0002.00-00 0x0000001A 0xD622 1071 0/0/0
Area Address: 49.0001
NLPID: 0xCC
IP Address: 20.1.1.1
Router ID: 2.2.2.2
Router Cap: 2.2.2.2
SRGB Range: 3000 SRGB Base SID: 19000 I:1 V:0
SR-Algorithm:
Algorithm: 0
Metric: 10 IS-Extended 0000.0000.0002.01
IPv4 Interface Address: 20.1.1.1
Neighbor IP Address: 20.1.1.1
Maximum Link Bandwidth: 10g
Reservable Bandwidth: 10g
Unreserved Bandwidth:
Unreserved Bandwidth at priority 0: 10g
Unreserved Bandwidth at priority 1: 10g
Unreserved Bandwidth at priority 2: 10g
Unreserved Bandwidth at priority 3: 10g
Unreserved Bandwidth at priority 4: 10g
Unreserved Bandwidth at priority 5: 10g
Unreserved Bandwidth at priority 6: 10g
Unreserved Bandwidth at priority 7: 10g
TE-Default Metric: 10
System-ID: 0000.0000.0003 LAN Adjacency SID: 24320 F:0 B:0 V:1 L:1 S:0 P:0
Metric: 10 IP-Extended 20.1.1.0/24
Metric: 10 IP-Extended 2.2.2.2/32
Prefix-SID: index 400 R:0 N:1 P:0 E:0 V:0 L:0
0000.0000.0002.01-00 0x00000002 0xA422 1191 0/0/0
Metric: 0 IS-Extended 0000.0000.0002.00
Metric: 0 IS-Extended R3.00
0000.0000.0002.03-00 0x00000013 0xB72D 0 (256) 0/0/0
R3.00-00 * 0x00000127 0x0123 1185 0/0/0
Area Address: 49.0000
NLPID: 0xCC
Hostname: R3
IP Address: 10.1.1.2
Router ID: 3.3.3.3
Router Cap: 3.3.3.3
SRGB Range: 4801 SRGB Base SID: 17500 I:1 V:0
SR-Algorithm:
Algorithm: 0
SRMS-Preference: 128
Metric: 10 IS-Extended 0000.0000.0002.01
IPv4 Interface Address: 20.1.1.2
Neighbor IP Address: 20.1.1.1
Maximum Link Bandwidth: 10g
Reservable Bandwidth: 10g
Unreserved Bandwidth:
Unreserved Bandwidth at priority 0: 10g
Unreserved Bandwidth at priority 1: 10g
Unreserved Bandwidth at priority 2: 10g
Unreserved Bandwidth at priority 3: 10g
Unreserved Bandwidth at priority 4: 10g
Unreserved Bandwidth at priority 5: 10g
Unreserved Bandwidth at priority 6: 10g
Unreserved Bandwidth at priority 7: 10g
TE-Default Metric: 10
System-ID: 0000.0000.0002 LAN Adjacency SID: 24321 F:0 B:0 V:1 L:1 S:0 P:0
Metric: 10 IP-Extended 10.1.1.0/24
Metric: 10 IP-Extended 20.1.1.0/24
Metric: 20 IP-Extended 10.1.1.0/30
Metric: 10 IP-Extended 30.1.1.0/24
Metric: 10 IP-Extended 3.3.3.3/32
Prefix-SID: index 300 R:0 N:1 P:0 E:0 V:0 L:0
Metric: 20 IP-Extended 1.1.1.1/32
Prefix-SID: index 100 R:1 N:0 P:0 E:0 V:0 L:0
Metric: 20 IP-Extended 4.4.4.4/32
Prefix-SID: index 500 R:1 N:0 P:0 E:0 V:0 L:0
SID Binding: 11.11.11.11/32 F:0 M:0 S:0 D:0 A:0 Range:3
SID: Start:1111 Algorithm:0 R:0 N:0 P:0 E:0 V:0 L:0
SID Binding: 12.12.12.12/32 F:0 M:0 S:0 D:0 A:0 Range:1
SID: Start:6767 Algorithm:0 R:0 N:0 P:0 E:0 V:0 L:0
Validation for NLRI count
R3#sho bgp link-state link-state count
-------------------------------------------
Total NLRIs : 96
Node NLRIs : 19
Link NLRIs : 28
Prefix NLRIs : 49
-------------------------------------------
Note: Count of NLRIs may be different sometimes.
R3#sho bgp link-state link-state self-originate
BGP router identifier 3.3.3.3, local AS number 100
Origin codes: i - IGP, e - EGP
Prefix codes: E link, V node, T IP reacheable route, I Identifier
N local node, R remote node, L link, P prefix
L1/L2 ISIS level-1/level-2, O OSPF, a area-ID,
c confed-ID/ASN, b bgp-identifier, r router-ID,
i if-address, n nbr-address, o OSPF Route-type,
p IP-prefix, d designated router address, s ISO-ID
[V][L1][I0x1][N[c100][b3.3.3.3][s0000.0000.0001.00]]/208
[V][L1][I0x1][N[c100][b3.3.3.3][s0000.0000.0003.00]]/208
[V][L1][I0x1][N[c100][b3.3.3.3][s0000.0000.0003.02]]/208
[V][L2][I0x1][N[c100][b3.3.3.3][s0000.0000.0002.00]]/208
[V][L2][I0x1][N[c100][b3.3.3.3][s0000.0000.0003.00]]/208
[V][L2][I0x1][N[c100][b3.3.3.3][s0000.0000.0003.04]]/208
[V][L2][I0x1][N[c100][b3.3.3.3][s0000.0000.0004.00]]/208
[E][L1][I0x1][N[c100][b3.3.3.3][s0000.0000.0001.00]][R[c100][b3.3.3.3][s0000.0000.0003.02]][L[i10.1.1.1][n10.1.1.2]]/328
[E][L1][I0x1][N[c100][b3.3.3.3][s0000.0000.0003.00]][R[c100][b3.3.3.3][s0000.0000.0003.02]][L[i10.1.1.2][n10.1.1.2]]/328
[E][L1][I0x1][N[c100][b3.3.3.3][s0000.0000.0003.02]][R[c100][b3.3.3.3][s0000.0000.0001.00]]/264
[E][L1][I0x1][N[c100][b3.3.3.3][s0000.0000.0003.02]][R[c100][b3.3.3.3][s0000.0000.0003.00]]/264
[E][L2][I0x1][N[c100][b3.3.3.3][s0000.0000.0002.00]][R[c100][b3.3.3.3][s0000.0000.0002.02]][L[i20.1.1.1][n20.1.1.1]]/328
[E][L2][I0x1][N[c100][b3.3.3.3][s0000.0000.0002.02]][R[c100][b3.3.3.3][s0000.0000.0002.00]]/264
[E][L2][I0x1][N[c100][b3.3.3.3][s0000.0000.0002.02]][R[c100][b3.3.3.3][s0000.0000.0003.00]]/264
[E][L2][I0x1][N[c100][b3.3.3.3][s0000.0000.0003.00]][R[c100][b3.3.3.3][s0000.0000.0002.02]][L[i20.1.1.2][n20.1.1.1]]/328
[E][L2][I0x1][N[c100][b3.3.3.3][s0000.0000.0003.00]][R[c100][b3.3.3.3][s0000.0000.0003.04]][L[i30.1.1.1][n30.1.1.1]]/328
[E][L2][I0x1][N[c100][b3.3.3.3][s0000.0000.0003.04]][R[c100][b3.3.3.3][s0000.0000.0003.00]]/264
[E][L2][I0x1][N[c100][b3.3.3.3][s0000.0000.0003.04]][R[c100][b3.3.3.3][s0000.0000.0004.00]]/264
[E][L2][I0x1][N[c100][b3.3.3.3][s0000.0000.0004.00]][R[c100][b3.3.3.3][s0000.0000.0003.04]][L[i30.1.1.2][n30.1.1.1]]/328
[T][L1][I0x1][N[c100][b3.3.3.3][s0000.0000.0001.00]][P[p10.1.1.0/24]]/240
[T][L1][I0x1][N[c100][b3.3.3.3][s0000.0000.0001.00]][P[p1.1.1.1/32]]/248
[T][L1][I0x1][N[c100][b3.3.3.3][s0000.0000.0003.00]][P[p10.1.1.0/24]]/240
[T][L1][I0x1][N[c100][b3.3.3.3][s0000.0000.0003.00]][P[p20.1.1.0/24]]/240
[T][L1][I0x1][N[c100][b3.3.3.3][s0000.0000.0003.00]][P[p30.1.1.0/24]]/240
[T][L1][I0x1][N[c100][b3.3.3.3][s0000.0000.0003.00]][P[p3.3.3.3/32]]/248
[T][L1][I0x1][N[c100][b3.3.3.3][s0000.0000.0003.00]][P[p11.11.11.11/32]]/248
[T][L1][I0x1][N[c100][b3.3.3.3][s0000.0000.0003.00]][P[p12.12.12.12/32]]/248
[T][L2][I0x1][N[c100][b3.3.3.3][s0000.0000.0002.00]][P[p20.1.1.0/24]]/240
[T][L2][I0x1][N[c100][b3.3.3.3][s0000.0000.0002.00]][P[p2.2.2.2/32]]/248
[T][L2][I0x1][N[c100][b3.3.3.3][s0000.0000.0003.00]][P[p10.1.1.0/24]]/240
[T][L2][I0x1][N[c100][b3.3.3.3][s0000.0000.0003.00]][P[p20.1.1.0/24]]/240
[T][L2][I0x1][N[c100][b3.3.3.3][s0000.0000.0003.00]][P[p30.1.1.0/24]]/240
[T][L2][I0x1][N[c100][b3.3.3.3][s0000.0000.0003.00]][P[p1.1.1.1/32]]/248
[T][L2][I0x1][N[c100][b3.3.3.3][s0000.0000.0003.00]][P[p3.3.3.3/32]]/248
[T][L2][I0x1][N[c100][b3.3.3.3][s0000.0000.0003.00]][P[p11.11.11.11/32]]/248
[T][L2][I0x1][N[c100][b3.3.3.3][s0000.0000.0003.00]][P[p12.12.12.12/32]]/248
[T][L2][I0x1][N[c100][b3.3.3.3][s0000.0000.0004.00]][P[p30.1.1.0/24]]/240
[T][L2][I0x1][N[c100][b3.3.3.3][s0000.0000.0004.00]][P[p4.4.4.4/32]]/248
NLRIs, Total: 38, Node: 7, Link: 12, Prefix: 19
Note: Count of NLRIs may be different sometimes.
Note: Here the total number of NLRI increases because of prefixes configured in SRMS.
Validation for Particular NLRI
Here we verify the prefix-NLRIs for prefixes configured in SRMS.
R3#show bgp link-state link-state [T][L2][I0x1][N[c100][b3.3.3.3][s0000.0000.0003.00]][P[p11.11.11.11/32]]/248
BGP routing table entry for [T][L2][I0x1][N[c100][b3.3.3.3][s0000.0000.0003.00]][P[p11.11.11.11/32]]/248
Local
Received from IGP
Link State:
SRMS SID: Start: 1111 Range: 3 Algorithm: 0 SR Flags: F:0 M:0 S:0 D:0 A:0
SR Flags: R:0 N:0 P:0 E:0 V:0 L:0
 
R3#show bgp li li [T][L2][I0x1][N[c100][b3.3.3.3][s0000.0000.0003.00]][P[p12.12.12.12/32]]/248
BGP routing table entry for [T][L2][I0x1][N[c100][b3.3.3.3][s0000.0000.0003.00]][P[p12.12.12.12/32]]/248
Local
Received from IGP
Link State:
SRMS SID: Start: 6767 Range: 1 Algorithm: 0 SR Flags: F:0 M:0 S:0 D:0 A:0
SR Flags: R:0 N:0 P:0 E:0 V:0 L:0
 
R3#show bgp link-state link-state [T][L2][I0x1][N[c200][b5.5.5.5][s0000.0000.0005.00]][P[p21.21.21.21/32]]/248
BGP routing table entry for [T][L2][I0x1][N[c200][b5.5.5.5][s0000.0000.0005.00]][P[p21.21.21.21/32]]/248
Local
Received from 40.1.1.2
Link State:
SRMS SID: Start: 4545 Range: 1 Algorithm: 0 SR Flags: F:0 M:0 S:0 D:0 A:1
SR Flags: R:0 N:0 P:0 E:0 V:0 L:0
 
R3#show bgp link-state link-state [T][L2][I0x1][N[c200][b5.5.5.5][s0000.0000.0005.00]][P[p31.31.31.31/32]]/248
BGP routing table entry for [T][L2][I0x1][N[c200][b5.5.5.5][s0000.0000.0005.00]][P[p31.31.31.31/32]]/248
Local
Received from 40.1.1.2
Link State:
SRMS SID: Start: 3535 Range: 1 Algorithm: 0 SR Flags: F:0 M:0 S:0 D:0 A:1
SR Flags: R:0 N:0 P:0 E:0 V:0 L:0
 
Last modified date: 10/20/2023