Segment Routing
Segment Routing
Rajmohan R
CX Migrations
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Agenda
• ISIS – SR Configuration
• SRGB
• SR Mapping Server
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Lab Topology X – Area; Y – Router
Link Address: 100.Y.Y.Y
Link R1 – R3: 100.1.3.1 – 100.1.3.3
Loopback – 99.99.X.Y
L1/L2 – R1; R2; R6; R7
NET: 49.000X.0000.0000.000Y.00
R11 R1 R3 R6 R8
R13 R4 R10
R2 R5 R7
R12 R9
CE1 CE2
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Base Configuration
• R1 to R13
• Interface configuration
• IGP – ISIS Configuration (Area 0, 1 & 2)
• Default route available at Area 1 & 2 (Level – 1)
• IP reachability from R13 to R10 (No MPLS LSP)
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 1: Configure SR in Area 0
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Lab Topology X – Area; Y – Router
Link Address: 100.Y.Y.Y
Link R1 – R3: 100.1.3.1 – 100.1.3.3
Loopback – 99.99.X.Y
L1/L2 – R1; R2; R6; R7
NET: 49.000X.0000.0000.000Y.00
R11 R1 R3 R6 R8
R13 R4 R10
R2 R5 R7
R12 R9
CE1 CE2
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 1: Configure SR in Area 0
• Verify LFIB (Must be empty)
R2#
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 1: Configure SR in Area 0
• Verify LSD & SRGB
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 1: Configure SR in Area 0
• Verify LSP details in ISIS database
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 1: Configure SR in Area 0
• Configure SR in routers (R4 with absolute label value. All other routers with Index)
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 1: Configure SR in Area 0
• Verify LSD & SRGB R2#sh mpls label range
Downstream Generic label region: Min/Max label: 16/100000
Range for Reserved labels:
1. Range ID: 0 Owner: SR-APP
Min/Max label: 16000/23999
Clients Permitted: ISIS OSPF
BGP-Segment-Routing
Clients In Use: ISIS
Checkpoint Labels Unclaimed: FALSE
R2#
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 1: Configure SR in Area 0
• Verify LFIB (Prefix & Adj SID population)
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 1: Configure SR in Area 0
• Verify LFIB (Prefix & Adj SID population)
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 1: Configure SR in Area 0
• Verify LFIB (Prefix & Adj SID population)
A - Adjacency SID
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 1: Configure SR in Area 0
• Verify MPLS LSP between Routers (R2 – R6)
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 1: Configure SR in Area 0
• Change SRGB to 17000 – 23999 in R5 !
router isis IGP
segment-routing global-block 17000 23999
!
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 2: Configure SR in Area 1
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Lab Topology X – Area; Y – Router
Link Address: 100.Y.Y.Y
Link R1 – R3: 100.1.3.1 – 100.1.3.3
Loopback – 99.99.X.Y
L1/L2 – R1; R2; R6; R7
NET: 49.000X.0000.0000.000Y.00
R11 R1 R3 R6 R8
R13 R4 R10
R2 R5 R7
R12 R9
CE1 CE2
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 2: Configure SR in Area 1
• Configure SR in all routers
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 2: Configure SR in Area 1
• Verify LSP details in ISIS database (Router Capability, Adj-SID, Prefix-SID)
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 2: Configure SR in Area 1
• Verify LFIB (Prefix & Adj SID population)
A - Adjacency SID
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 2: Configure SR in Area 1
• Verify MPLS LSP between Routers (R13 – R1 & R2)
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 3: L2-to-L1 Route Leaking
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Lab Topology X – Area; Y – Router
Link Address: 100.Y.Y.Y
Link R1 – R3: 100.1.3.1 – 100.1.3.3
Loopback – 99.99.X.Y
L1/L2 – R1; R2; R6; R7
NET: 49.000X.0000.0000.000Y.00
R11 R1 R3 R6 R8
R13 R4 R10
R2 R5 R7
R12 R9
CE1 CE2
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 2: Configure SR in Area 1
• Verify ISIS LSP of R1
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 3: L2-to-L1 Route Leaking
• Route Leaking Configuration
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 2: Configure SR in Area 1
• Verify ISIS LSP of R1 – L2 Prefix-SIDs leaked to L1
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 2: Configure SR in Area 1
• Verify MPLS LSP between Routers (R13 – R1 & R2)
A - Adjacency SID
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 2: Configure SR in Area 1
• Verify MPLS LSP between Routers (R13 – R1 & R2)
R13#sh mpls forwarding-table 99.99.0.6
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or Tunnel Id Switched interface
16006 16006 99.99.0.6/32 0 Et0/0 100.11.13.11
R13#
R13#sh mpls forwarding-table 99.99.0.7
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or Tunnel Id Switched interface
16007 16007 99.99.0.7/32 0 Et0/1 100.12.13.12
R13#
R13#traceroute 99.99.0.6 source loopback 0 numeric probe 1
VRF info: (vrf in name/id, vrf out name/id)
1 100.11.13.11 [MPLS: Label 16006 Exp 0] 5 msec
2 100.1.11.1 [MPLS: Label 16006 Exp 0] 3 msec
3 100.1.3.3 [MPLS: Label 16006 Exp 0] 8 msec
4 100.3.6.6 5 msec
R13#
R13#
R13#traceroute 99.99.0.7 source loopback 0 numeric probe 1
VRF info: (vrf in name/id, vrf out name/id)
1 100.12.13.12 [MPLS: Label 16007 Exp 0] 27 msec
2 100.2.12.2 [MPLS: Label 16007 Exp 0] 6 msec
3 100.2.5.5 [MPLS: Label 17007 Exp 0] 6 msec
4 100.5.7.7 5 msec
R13#
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 4: Configure LDP in Area 2
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Lab Topology X – Area; Y – Router
Link Address: 100.Y.Y.Y
Link R1 – R3: 100.1.3.1 – 100.1.3.3
Loopback – 99.99.X.Y
L1/L2 – R1; R2; R6; R7
NET: 49.000X.0000.0000.000Y.00
R11 R1 R3 R6 R8
R13 R4 R10
R2 R5 R7
R12 R9
CE1 CE2
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 4: Configure LDP in Area 2
• LDP Configuration in Area 2 R1: IOS XR
!
R2: IOS-XE mpls ldp
! router-id 99.99.2.9
router isis IGP interface GigabitEthernet0/0/0/0
mpls ldp autoconfig !
! interface GigabitEthernet0/0/0/1
!
interface GigabitEthernet0/0/0/2
!
!
R2 to R10
R2#sh ip cef 99.99.2.10/32 detail
99.99.2.10/32, epoch 0
nexthop 100.2.5.5 Ethernet0/1
R2#
R2#show mpls forwarding-table 99.99.2.10
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or Tunnel Id Switched interface
None No Label 99.99.2.10/32 0 Et0/1 100.2.5.5
R2#
R2#trace 99.99.2.10 so lo0 probe 1 num
Type escape sequence to abort.
Tracing the route to 99.99.2.10
VRF info: (vrf in name/id, vrf out name/id)
1 100.2.5.5 1 msec
2 100.5.7.7 3 msec
3 100.7.9.9 [MPLS: Label 24000 Exp 0] 5 msec
4 100.9.10.10 5 msec
R2#
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 4: Configure LDP in Area 2
• LSP Verification between R2 and R10
R10 to R2
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 4: Configure LDP in Area 2
• Verify RIB in R10
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 3: Configure LDP in Area 2
• Route Leaking Configuration
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 4: Configure LDP in Area 2
• Verify RIB in R10
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 4: Configure LDP in Area 2
• LSP Verification between R2 and R10
R2 to R10
R2#sh ip cef 99.99.2.10/32 detail
99.99.2.10/32, epoch 0
nexthop 100.2.5.5 Ethernet0/1
R2#
R2#show mpls forwarding-table 99.99.2.10
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or Tunnel Id Switched interface
None No Label 99.99.2.10/32 0 Et0/1 100.2.5.5
R2#
R2#trace 99.99.2.10 so lo0 probe 1 num
Type escape sequence to abort.
Tracing the route to 99.99.2.10
VRF info: (vrf in name/id, vrf out name/id)
1 100.2.5.5 1 msec
2 100.5.7.7 3 msec
3 100.7.9.9 [MPLS: Label 24000 Exp 0] 5 msec
4 100.9.10.10 5 msec
R2#
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 4: Configure LDP in Area 2
• LSP Verification between R2 and R10
R10 to R2
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 5: Configure Mapping Server in Area 0
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Lab Topology X – Area; Y – Router
Link Address: 100.Y.Y.Y
Link R1 – R3: 100.1.3.1 – 100.1.3.3
Loopback – 99.99.X.Y
L1/L2 – R1; R2; R6; R7
NET: 49.000X.0000.0000.000Y.00
R11 R1 R3 R6 R8
R13 R4 R10
R2 R5 R7
R12 R9
CE1 CE2
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 4: Configure Mapping Server in Area 0
• R5 – ISIS LSP database
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 4: Configure Mapping Server in Area 0
• R5 – Mapping server Configuration
!
segment-routing
mapping-server
prefix-sid-map
address-family ipv4
99.99.2.8/32 8 range 1
99.99.2.9/32 9 range 1
99.99.2.10/32 10 range 1
!
!
!
!
router isis IGP
address-family ipv4 unicast
segment-routing prefix-sid-map advertise-local
!
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 4: Configure Mapping Server in Area 0
• R5 – ISIS LSP database
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 4: Configure Mapping Server in Area 0
• Verify LFIB at R2
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 4: Configure Mapping Server in Area 0
• Verify LFIB at R13
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 4: Configure Mapping Server in Area 0
• R2 – Mapping server Configuration
!
segment-routing mpls
!
mapping-server
!
prefix-sid-map
address-family ipv4
99.99.2.8/32 index 8 range 1
99.99.2.9/32 index 9 range 1
99.99.2.10/32 index 10 range 1
exit-address-family
!
!
!
router isis IGP
segment-routing prefix-sid-map advertise-local
!
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 4: Configure Mapping Server in Area 0
• Verify LFIB at R13
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Task 4: Configure Mapping Server in Area 0
• Verify reachability between CE routers
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential