Segment Routing Policy for Traffic Engineering
Segment routing allows a headend node to steer a packet flow along any desired path. Intermediate per-flow states are eliminated due to source routing. The headend node is said to steer a flow into a segment routing policy. The header of a packet steered in an segment routing policy is augmented with the ordered list of segments associated with that segment routing policy.
The path of a segment routing policy is an ordered list of segments and can be an explicit path or a dynamic path:
•	For a dynamic candidate-path, the head-end computes the ordered list of segments based on certain user-specified optimization objectives and set of constraints.
•	For an explicit candidate-path, the ordered list of segments can be explicitly specified by the operator directly via commands or PCEP controller.
This chapter shows how to configure a segment routing policy for traffic engineering using dynamic paths and explicit paths.
Topology
Segment routing topology for traffic engineering
Note:	You must ensure that prefix SIDs are unique globally. 
Note:	By default, the CSPF retry limit is 100 times and the CSPF retry interval is 10 seconds. If a policy does not come up within 1000 seconds, it will require operator intervention.
Dynamic Path Policy with ISIS
PE1
 
| PE1#configure terminal | Enter configure mode. | 
| PE1(config)#interface lo | Enter interface mode. | 
| PE1(config-if)#ip address 1.1.1.1/32 secondary | Configure the IP address of the interface. | 
| PE1(config-if)#ip router isis 1 | Make the interface part of the router ISIS 1 instance. | 
| PE1(config-if)#prefix-sid index 1 | Configure prefix sid index value. | 
| PE1(config-if)#exit | Exit interface mode. | 
| PE1(config)#interface eth1 | Enter interface mode. | 
| PE1(config-if)#ip address 10.1.2.1/24 | Configure the IP address of the interface. | 
| PE1(config-if)#ip router isis 1 | Make the interface part of the router ISIS 1 instance. | 
| PE1(config-if)#label-switching | Enable label switching. | 
| PE1(config)#exit | Exit interface mode | 
| PE1(config)#interface eth2 | Enter interface mode. | 
| PE1(config-if)#ip address 10.1.6.1/24 | Configure the IP address of the interface. | 
| PE1(config-if)#ip router isis 1 | Make the interface part of the router ISIS 1 instance. | 
| PE1(config-if)#label-switching | Enable label switching. | 
| PE1(config-if)#exit | Exit interface mode. | 
| PE1(config)#router isis 1 | Set the routing process ID. | 
| PE1(config-router)#metric-style wide | Configure metric style as wide. | 
| PE1(Config)#commit | Commit candidate configuration to be running configuration | 
| PE1(config-router)#is-type level-1 | Configure is-type. | 
| PE1(config-router)#net 49.0001.0000.0000.0011.00 | Configure network entity title (NET). | 
| PE1(config-router)#mpls traffic-eng router-id 1.1.1.1 | Enable MPLS Traffic Engineering under router process. | 
| PE1(config-router)#mpls traffic-eng level-1 | Enable MPLS Traffic Engineering as level-1. | 
| PE1(config-router)#capability cspf | Enable cspf capability under ISIS 1 process. | 
| PE1(config-router)#segment-routing mpls | Enable segment routing under router process. | 
| PE1(config-router)#exit | Exit router mode. | 
| PE1(config)#segment-routing | Configuring segment-routing | 
| PE1(config-sr)#traffic-engineering | Segment Routing traffic engineering | 
| PE1(config-sr-te)#policy 1 | Policy configuration with name 1 | 
| PE1(config-sr-pol)#color 1 end-point 1.1.1.9 | SR-policy color and end-point  | 
| PE1(config-sr-pol-cp)#candidate-path 1 | SR policy candidate path | 
| PE1(config-sr-pol-cp)#preference 100 | Candidate Path preference | 
| PE1(config-sr-pol-cp)#dynamic-path isis 1 | Dynamic candidate path as ISIS | 
| PE1(config-sr-pol-cp)#constraints | Specify constraints | 
| PE1(config-sr-dyn-cp-cons)#1.1.1.6 loose | Loopback IP of P2 as loose constraint | 
| PE1(config-sr-pol-cp)#exit-pol-cp | Exit from SR policy candidate path configuration mode | 
| PE1(config-sr-pol)#candidate-path 2 | SR policy candidate path | 
| PE1(config-sr-pol-cp)#dynamic-path isis 1 | Dynamic candidate path as ISIS | 
| PE1(config-sr-pol-cp)#constraints | Specify constraints | 
| PE1(config-sr-dyn-cp-cons)#10.1.2.2 strict | Interface IP of P1 as strict constraint | 
| PE1(config-sr-pol-cp)#exit-pol-cp | Exit from SR policy candidate path configuration mode | 
| PE1(config-sr-pol)#exit-sr-pol | Exit from SR policy configuration mode | 
| PE1(config-sr-te)#exit-te | Exit from traffic engineering configuration mode | 
| PE1(config)#ip vrf vrf1 | Configure VPN Routing/Forwarding instance | 
| PE1(config-vrf)#rd 100:2 | route distinguisher | 
| PE1(config-vrf)#route-target both 200:1 | route target | 
| PE1(config-vrf)#exit | Exit VRF mode. | 
| PE1(config)#interface eth3 | Enter interface mode. | 
| PE1(config-if)#ip vrf forwarding vrf1 | Configuring interface for VRF forwarding  | 
| PE1(config-if)#ip address 177.1.1.1/24 | Configure the IP address of the interface. | 
| PE1(config-if)#exit | Exit interface mode. | 
| PE1(config)#router bgp 100 | Configure router bgp in AS 100 | 
| PE1(config-router)#neighbor 1.1.1.9 remote-as 100 | Configure neighbor in remote-as 100 | 
| PE1(config-router)#neighbor 1.1.1.9 update-source lo | Configure neighbor with update-source loopback | 
| PE1(config-router)#address-family vpnv4 unicast | Enter VPNv4  Address family mode | 
| PE1(config-router-af)#neighbor 1.1.1.9 activate | Activate VPNv4 neighbor | 
| PE1(config-router-af)#exit-address-family | Exit from Address Family configuration mode | 
| PE1(config-router)#address-family ipv4 vrf vrf1 | Enter address-family VRF | 
| PE1(config-router-af)#redistribute connected | Redistribute all the connected VRF routes  | 
| PE1(config-router-af)#exit-address-family | Exit from Address Family configuration mode | 
| PE1(config-router)#exit | Exit router mode. | 
| PE1(config)#commit | Commit candidate configuration to be running configuration | 
| PE1(config)#exit | Exit configuration mode | 
P1
 
| P1#configure terminal | Enter configure mode. | 
| P1(config)#interface lo | Enter interface mode. | 
| P1(config-if)#ip address 1.1.1.2/32 secondary | Configure the IP address of the interface. | 
| P1(config-if)#ip router isis 1 | Make the interface part of the router ISIS 1 instance. | 
| P1(config-if)#prefix-sid index 2 | Configure prefix sid index value. | 
| P1(config-if)#exit | Exit interface mode. | 
| P1(config)#interface eth1 | Enter interface mode. | 
| P1(config-if)#ip address 10.1.2.2/24 | Configure the IP address of the interface. | 
| P1(config-if)#ip router isis 1 | Make the interface part of the router ISIS 1 instance. | 
| P1(config-if)#label-switching | Enable label switching. | 
| P1(config-if)#exit | Exit interface mode | 
| P1(config)#interface eth2 | Enter interface mode. | 
| P1(config-if)#ip address 20.1.1.1/24 | Configure the IP address of the interface. | 
| P1(config-if)#ip router isis 1 | Make the interface part of the router ISIS 1 instance. | 
| P1(config-if)#label-switching | Enable label switching. | 
| P1(config-if)#exit | Exit interface mode | 
| P1(config)#interface eth3 | Enter interface mode. | 
| P1(config-if)#ip address 29.1.1.1/24 | Configure the IP address of the interface. | 
| P1(config-if)#ip router isis 1 | Make the interface part of the router ISIS 1 instance. | 
| P1(config-if)#label-switching | Enable label switching. | 
| P1(config-if)#exit | Exit interface mode. | 
| P1(config)#router isis 1 | Set the routing process ID . | 
| P1(config-router)#metric-style wide | Configure metric style as wide. | 
| P1(config)#commit | Commit candidate configuration to be running configuration | 
| P1(config-router)#is-type level-1 | Configure is-type. | 
| P1(config-router)#net 49.0001.0000.0000.0001.00 | Configure Network entity title (NET). | 
| P1(config-router)#mpls traffic-eng router-id 1.1.1.2 | Enable MPLS Traffic Engineering under router process. | 
| P1(config-router)#mpls traffic-eng level-1 | Enable MPLS Traffic Engineering as level-1. | 
| P1(config-router)#capability cspf | Enable cspf capability under ISIS 1 process. | 
| P1(config-router)#segment-routing mpls | Enable segment routing under router process. | 
| P1(config-router)#exit | Exit router mode. | 
| P1(config)#commit | Commit candidate configuration to be running configuration | 
| P1(config)#exit | Exit configuration mode | 
P2
 
| P2#configure terminal | Enter configure mode. | 
| P2(config)#interface lo | Enter interface mode. | 
| P2(config-if)#ip address 1.1.1.6/32 secondary | Configure the IP address of the interface. | 
| P2(config-if)#ip router isis 1 | Make the interface part of the router ISIS 1 instance. | 
| P2(config-if)#prefix-sid index 3 | Configure prefix sid index value. | 
| P2(config-if)#exit | Exit interface mode. | 
| P2(config)#interface eth1 | Enter interface mode. | 
| P2(config-if)#ip address 50.1.1.2/24 | Configure the IP address of the interface. | 
| P2(config-if)#ip router isis 1 | Make the interface part of the router ISIS 1 instance. | 
| P2(config-if)#label-switching | Enable label switching. | 
| P2(config)#interface eth2 | Enter interface mode. | 
| P2(config-if)#ip address 10.1.6.2/24 | Configure the IP address of the interface. | 
| P2(config-if)#ip router isis 1 | Make the interface part of the router ISIS 1 instance. | 
| P2(config-if)#label-switching | Enable label switching. | 
| P2(config)#interface eth3 | Enter interface mode. | 
| P2(config-if)#ip address 29.1.1.2/24 | Configure the IP address of the interface. | 
| P2(config-if)#ip router isis 1 | Make the interface part of the router ISIS 1 instance. | 
| P2(config-if)#label-switching | Enable label switching. | 
| P2(config-if)#exit | Exit interface mode. | 
| P2(config)#router isis 1 | Set the routing process ID . | 
| P2(config-router)#metric-style wide | Configure metric style as wide. | 
| P2(config)#commit | Commit candidate configuration to be running configuration | 
| P2(config-router)#is-type level-1 | Configure is-type. | 
| P2(config-router)#net 49.0001.0000.0000.0002.00 | Configure Network entity title (NET). | 
| P2(config-router)#mpls traffic-eng router-id 1.1.1.6 | Enable MPLS Traffic Engineering under router process. | 
| P2(config-router)#mpls traffic-eng level-1 | Enable MPLS Traffic Engineering as level-1. | 
| P2(config-router)#capability cspf | Enable cspf capability under ISIS 1 process. | 
| P2(config-router)#segment-routing mpls | Enable segment routing under router process. | 
| P2(config-router)#exit | Exit router mode. | 
| P2(config)#commit | Commit candidate configuration to be running configuration | 
| P2(config)#exit | Exit configuration mode | 
P3
 
| P3#configure terminal | Enter configure mode. | 
| P3(config)#interface lo | Enter interface mode. | 
| P3(config-if)#ip address 1.1.1.4/32 secondary | Configure the IP address of the interface. | 
| P3(config-if)#ip router isis 1 | Make the interface part of the router ISIS 1 instance. | 
| P3(config-if)#prefix-sid index 4 | Configure prefix sid index value. | 
| P3(config-if)#exit | Exit interface mode. | 
| P3(config)#interface eth1 | Enter interface mode. | 
| P3(config-if)#ip address 10.4.9.1/24 | Configure the IP address of the interface. | 
| P3(config-if)#ip router isis 1 | Make the interface part of the router ISIS 1 instance. | 
| P3(config-if)#label-switching | Enable label switching. | 
| P3(config-if)#exit | Exit interface mode. | 
| P3(config)#interface eth2 | Enter interface mode. | 
| P3(config-if)#ip address 20.1.1.2/24 | Configure the IP address of the interface. | 
| P3(config-if)#ip router isis 1 | Make the interface part of the router ISIS 1 instance. | 
| P3(config-if)#label-switching | Enable label switching. | 
| P3(config-if)#exit | Exit interface mode. | 
| P3(config)#interface eth3 | Enter interface mode. | 
| P3(config-if)#ip address 45.1.1.2/24 | Configure the IP address of the interface. | 
| P3(config-if)#ip router isis 1 | Make the interface part of the router ISIS 1 instance. | 
| P3(config-if)#label-switching | Enable label switching. | 
| P3(config-if)#exit | Exit interface mode. | 
| P3(config)#router isis 1 | Set the routing process ID . | 
| P3(config-router)#metric-style wide | Configure metric style as wide. | 
| P3(config)#commit | Commit candidate configuration to be running configuration		 | 
| P3(config-router)#is-type level-1 | Configure is-type. | 
| P3(config-router)#net 49.0001.0000.0000.0003.00 | Configure Network entity title (NET). | 
| P3(config-router)#mpls traffic-eng router-id 1.1.1.4 | Enable MPLS Traffic Engineering under router process. | 
| P3(config-router)#mpls traffic-eng level-1 | Enable MPLS Traffic Engineering as level-1. | 
| P3(config-router)#capability cspf | Enable cspf capability under ISIS 1 process. | 
| P3(config-router)#segment-routing mpls | Enable segment routing under router process. | 
| P3(config-router)#exit | Exit router mode. | 
| P3(config)#commit | Commit candidate configuration to be running configuration | 
| P3(config)#exit | Exit configuration mode | 
P4
 
| P4#configure terminal | Enter configure mode. | 
| P4(config)#interface lo | Enter interface mode. | 
| P4(config-if)#ip address 1.1.1.8/32 secondary | Configure the IP address of the interface. | 
| P4(config-if)#ip router isis 1 | Make the interface part of the router ISIS 1 instance. | 
| P4(config-if)#prefix-sid index 5 | Configure prefix sid index value. | 
| P4(config-if)#exit | Exit interface mode. | 
| P4(config)#interface eth1 | Enter interface mode. | 
| P4(config-if)#ip address 50.1.1.1/24 | Configure the IP address of the interface. | 
| P4(config-if)#ip router isis 1 | Make the interface part of the router ISIS 1 instance. | 
| P4(config-if)#label-switching | Enable label switching. | 
| P4(config-if)#exit | Exit interface mode. | 
| P4(config)#interface eth2 | Enter interface mode. | 
| P4(config-if)#ip address 10.8.9.1/24 | Configure the IP address of the interface. | 
| P4(config-if)#ip router isis 1 | Make the interface part of the router ISIS 1 instance. | 
| P4(config-if)#label-switching | Enable label switching. | 
| P4(config-if)#exit | Exit interface mode. | 
| P4(config)#interface eth3 | Enter interface mode. | 
| P4(config-if)#ip address 45.1.1.1/24 | Configure the IP address of the interface. | 
| P4(config-if)#ip router isis 1 | Make the interface part of the router ISIS 1 instance. | 
| P4(config-if)#label-switching | Enable label switching. | 
| P4(config-if)#exit | Exit interface mode. | 
| P4(config)#router isis 1 | Set the routing process ID . | 
| P4(config-router)#metric-style wide | Configure metric style as wide. | 
| P4(config)#commit | Commit candidate configuration to be running configuration | 
| P4(config-router)#is-type level-1 | Configure is-type. | 
| P4(config-router)#net 49.0001.0000.0000.0004.00 | Configure Network entity title (NET). | 
| P4(config-router)#mpls traffic-eng router-id 1.1.1.8 | Enable MPLS Traffic Engineering under router process. | 
| P4(config-router)#mpls traffic-eng level-1 | Enable MPLS Traffic Engineering as level-1. | 
| P4(config-router)#capability cspf | Enable cspf capability under ISIS 1 process. | 
| P4(config-router)#segment-routing mpls | Enable segment routing under router process. | 
| P4(config-router)#exit | Exit router mode. | 
| P4(config)#commit | Commit candidate configuration to be running configuration | 
| P4(config)#exit | Exit configuration mode | 
PE2
 
| PE2#configure terminal | Enter configure mode. | 
| PE2(config)#interface lo | Enter interface mode. | 
| PE2(config-if)#ip address 1.1.1.9/32 secondary | Configure the IP address of the interface. | 
| PE2(config-if)#ip router isis 1 | Make the interface part of the router ISIS 1 instance. | 
| PE2(config-if)#prefix-sid index 6 | Configure prefix sid index value. | 
| PE2(config-if)#exit | Exit interface mode. | 
| PE2(config)#interface eth1 | Enter interface mode. | 
| PE2(config-if)#ip address 10.4.9.2/24 | Configure the IP address of the interface. | 
| PE2(config-if)#ip router isis 1 | Make the interface part of the router ISIS 1 instance. | 
| PE2(config-if)#label-switching | Enable label switching. | 
| PE2(config)#interface eth2 | Enter interface mode. | 
| PE2(config-if)#ip address 10.8.9.2/24 | Configure the IP address of the interface. | 
| PE2(config-if)#ip router isis 1 | Make the interface part of the router ISIS 1 instance. | 
| PE2(config-if)#label-switching | Enable label switching. | 
| PE2(config-if)#exit | Exit interface mode. | 
| PE2(config)#router isis 1 | Set the routing process ID . | 
| PE2(config-router)#metric-style wide | Configure metric style as wide. | 
| PE2(config)#commit | Commit candidate configuration to be running configuration | 
| PE2(config-router)#is-type level-1 | Configure is-type. | 
| PE2(config-router)#net 49.0001.0000.0000.0022.00 | Configure Network entity title (NET). | 
| PE2(config-router)#mpls traffic-eng router-id 1.1.1.9 | Enable MPLS Traffic Engineering under router process. | 
| PE2(config-router)#mpls traffic-eng level-1 | Enable MPLS Traffic Engineering as level-1. | 
| PE2(config-router)#capability cspf | Enable cspf capability under ISIS 1 process. | 
| PE2(config-router)#segment-routing mpls | Enable segment routing under router process. | 
| PE2(config-router)#exit | Exit router mode. | 
| PE2(config)#ip vrf vrf1 | Configure VPN Routing/Forwarding instance | 
| PE2(config-vrf)#rd 100:1 | route distinguisher | 
| PE2(config-vrf)#route-target both 200:1 | route target | 
| PE2(config-vrf)#exit | Exit VRF mode. | 
| PE2(config)#interface eth3 | Enter interface mode. | 
| PE2(config-if)#ip vrf forwarding vrf1 | Configuring interface for VRF forwarding  | 
| PE2(config-if)#ip address 202.1.1.2/24 | Configure the IP address of the interface. | 
| PE2(config-if)#exit | Exit interface mode. | 
| PE2(config)#router bgp 100 | Configure router bgp in AS 100 | 
| PE2(config-router)#neighbor 1.1.1.1 remote-as 100 | Configure neighbor in remote-as 100 | 
| PE2(config-router)#neighbor 1.1.1.1 update-source lo | Configure neighbor with update-source loopback | 
| PE2(config-router)#address-family vpnv4 unicast | Enter VPNv4  Address family mode | 
| PE2(config-router-af)#neighbor 1.1.1.1 activate | Activate VPNv4 neighbor | 
| PE2(config-router-af)#exit-address-family | Exit from Address Family configuration mode | 
| PE2(config-router)#address-family ipv4 vrf vrf1 | Enter address-family VRF | 
| PE2(config-router-af)#redistribute connected | Redistribute all the connected VRF routes  | 
| PE2(config-router-af)#exit-address-family | Exit from Address Family configuration mode | 
| PE2(config-router)#exit | Exit router mode. | 
| PE2(config)#commit | Commit candidate configuration to be running configuration | 
| PE2(config)#exit | Exit configuration mode | 
Validation 1
Verify ISIS neighbor adjacency between routers and show segment-routing policy detail
PE1#show  clns neighbors
 
Total number of L1 adjacencies: 2
Total number of L2 adjacencies: 0
Total number of adjacencies: 2
Tag 1:  VRF : default
System Id      Interface   SNPA                State  Holdtime  Type Protocol
0000.0000.0001 eth1         04f8.f865.9009      Up     8         L1   IS-IS
0000.0000.0002 eth2        b86a.97d0.25d4      Up     9         L1   IS-IS
 
PE1#
 
PE1#show segment-routing policy detail
 
Policy-Name: 1    Color 1      End-point 1.1.1.9          Tunnel-ID: 1
  Admin-Status: UP    Oper-Status: UP for 00:02:37
  State Transition Count: 1
  CSPF Retry Limit: 100    CSPF Retry Interval: 10
  Binding SID :
   BSID: 24960
   Alloc mode: Dynamic
   Oper State: Programmed
 
  CP ID: 2, Active
    Preference: 100    Path Type: Dynamic(isis)    CP Origin: Local
    Segment List:
    Total no. of segments: 2
     Segment0[LABEL]: Label :24320
     Segment1[LABEL]: Label :16006
    Out-if: eth1          Out-label-stack: 3/16006
    Attributes:
      Configured:
      Affinity:
      Metric-type: TE
      IP Constraints: 10.1.2.2 strict
 
 
  CP ID: 1
    Preference: 100    Path Type: Dynamic(isis)    CP Origin: Local
    CP state: Valid
    Segment List:
    Total no. of segments: 2
     Segment0[LABEL]: Label :16003
     Segment1[LABEL]: Label :16006
    Out-if: eth2         Out-label-stack: 3/16006
    Attributes:
      Configured:
      Affinity:
      Metric-type: TE
      IP Constraints: 1.1.1.6 loose
 
 
PE1#
Validation 2
Verify the prefix SIDs are installed as labels in MPLS forwarding table. Verify the same in FTN and ILM tables.
PE1#show mpls forwarding-table
Codes: > - installed FTN, * - selected FTN, p - stale FTN,
       B - BGP FTN, K - CLI FTN, t - tunnel, P - SR Policy FTN,
       L - LDP FTN, R - RSVP-TE FTN, S - SNMP FTN, I - IGP-Shortcut,
       U - unknown FTN, O - SR-OSPF FTN, i - SR-ISIS FTN, k - SR-CLI FTN
 
Code    FEC                 FTN-ID    Nhlfe-ID  Tunnel-id   Pri   LSP-Type     Out-Label    Out-Intf    ELC   Nexthop
   i>   1.1.1.2/32          1         3         0           Yes   LSP_DEFAULT  3            eth1         No    10.1.2.2
   i>   1.1.1.4/32          3         6         0           Yes   LSP_DEFAULT  16004        eth1         No    10.1.2.2
   i>   1.1.1.6/32          2         4         0           Yes   LSP_DEFAULT  3            eth2        No    10.1.6.2
   i>   1.1.1.8/32          4         8         0           Yes   LSP_DEFAULT  16005        eth2        No    10.1.6.2
   P>   1.1.1.9/32          7         13        1           Yes   LSP_DEFAULT  3            eth1         No    10.1.2.2
   i    1.1.1.9/32          5         10        0           Yes   LSP_DEFAULT  16006        eth1         No    10.1.2.2
PE1#
PE1#show mpls ilm-table
Codes: > - installed ILM, * - selected ILM, p - stale ILM
        K - CLI ILM, T - MPLS-TP, s - Stitched ILM
       S - SNMP, L - LDP, R - RSVP, C - CRLDP
       B - BGP , K - CLI , V - LDP_VC, I - IGP_SHORTCUT
       O - OSPF/OSPF6 SR, i - ISIS SR, k - SR CLI
       P - SR Policy, U - unknown
 
Code    FEC/VRF/L2CKT    ILM-ID      In-Label    Out-Label   In-Intf    Out-Intf/VRF       Nexthop                   LSP-Type
   i>   1.1.1.6/32         5           16003       3           N/A        eth2             10.1.6.2                  LSP_DEFAULT
   i>   1.1.1.2/32         4           16002       3           N/A        eth1              10.1.2.2                  LSP_DEFAULT
   i>   1.1.1.1/32         1           16001       Nolabel     N/A        N/A              127.0.0.1                 LSP_DEFAULT
   i>   10.1.2.2/32        2           24320       3           N/A        eth1              10.1.2.2                  LSP_DEFAULT
   i>   1.1.1.8/32         7           16005       16005       N/A        eth2             10.1.6.2                  LSP_DEFAULT
   i>   1.1.1.4/32         6           16004       16004       N/A        eth1              10.1.2.2                  LSP_DEFAULT
   i>   1.1.1.9/32         8           16006       16006       N/A        eth1              10.1.2.2                  LSP_DEFAULT
   i>   10.1.6.2/32        3           24321       3           N/A        eth2             10.1.6.2                  LSP_DEFAULT
   P>   1.1.1.9/32         9           24960       16006       N/A        eth1              10.1.2.2                  LSP_DEFAULT
  B>   vrf1               10          25600       Nolabel     N/A        vrf1             N/A                       LSP_DEFAULT
PE1# 
 
PE1#show mpls ftn-table
 Primary FTN entry with FEC: 1.1.1.2/32, id: 1, row status: Active, Tunnel-Policy: N/A
  Owner: ISIS-SR, distance: 115, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
  Tunnel id: 0, Protected LSP id: 0, Description: N/A, Color: 0
     Cross connect ix: 1, in intf: - in label: 0 out-segment ix: 1
      Owner: N/A, Persistent: No, Admin Status: Up, Oper Status: Up
       Out-segment with ix: 1, owner: N/A, Stale: NO, out intf: eth1, out label: 3
    Nexthop addr: 10.1.2.2        cross connect ix: 1, op code: Push
 
 
 Primary FTN entry with FEC: 1.1.1.4/32, id: 3, row status: Active, Tunnel-Policy: N/A
  Owner: ISIS-SR, distance: 115, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
  Tunnel id: 0, Protected LSP id: 0, Description: N/A, Color: 0
     Cross connect ix: 3, in intf: - in label: 0 out-segment ix: 5
      Owner: ISIS-SR, Persistent: No, Admin Status: Up, Oper Status: Up
       Out-segment with ix: 5, owner: ISIS-SR, Stale: NO, out intf: eth1, out label: 16004
    Nexthop addr: 10.1.2.2        cross connect ix: 3, op code: Push
 
 
 Primary FTN entry with FEC: 1.1.1.6/32, id: 2, row status: Active, Tunnel-Policy: N/A
  Owner: ISIS-SR, distance: 115, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
  Tunnel id: 0, Protected LSP id: 0, Description: N/A, Color: 0
     Cross connect ix: 2, in intf: - in label: 0 out-segment ix: 2
      Owner: N/A, Persistent: No, Admin Status: Up, Oper Status: Up
       Out-segment with ix: 2, owner: N/A, Stale: NO, out intf: eth2, out label: 3
    Nexthop addr: 10.1.6.2        cross connect ix: 2, op code: Push
 
 
 Primary FTN entry with FEC: 1.1.1.8/32, id: 4, row status: Active, Tunnel-Policy: N/A
  Owner: ISIS-SR, distance: 115, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
  Tunnel id: 0, Protected LSP id: 0, Description: N/A, Color: 0
     Cross connect ix: 4, in intf: - in label: 0 out-segment ix: 7
      Owner: ISIS-SR, Persistent: No, Admin Status: Up, Oper Status: Up
       Out-segment with ix: 7, owner: ISIS-SR, Stale: NO, out intf: eth2, out label: 16005
    Nexthop addr: 10.1.6.2        cross connect ix: 4, op code: Push
 
 
 Primary FTN entry with FEC: 1.1.1.9/32, id: 7, row status: Active, Tunnel-Policy: N/A
  Owner: SR_POLICY, distance: 0, Action-type: Redirect to Tunnel, Exp-bits: 0x0, Incoming DSCP: none
  Tunnel id: 1, Protected LSP id: 0, QoS Resource id: 0, Description: N/A, Color: 0
     Cross connect ix: 7, in intf: - in label: 0 out-segment ix: 9
      Owner: N/A, Persistent: No, Admin Status: Up, Oper Status: Up
       Out-segment with ix: 9, owner: N/A, Stale: NO, out intf: eth1, out label: 3\16006
    Nexthop addr: 10.1.2.2        cross connect ix: 7, op code: Push
 
 
 Primary FTN entry with FEC: 1.1.1.9/32, id: 5, row status: Active, Tunnel-Policy: N/A
  Owner: ISIS-SR, distance: 115, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
  Tunnel id: 0, Protected LSP id: 0, Description: N/A, Color: 0
     Cross connect ix: 6, in intf: - in label: 0 out-segment ix: 10
      Owner: ISIS-SR, Persistent: No, Admin Status: Down, Oper Status: Down
       Out-segment with ix: 10, owner: ISIS-SR, Stale: NO, out intf: eth1, out label: 16006
    Nexthop addr: 10.1.2.2        cross connect ix: 6, op code: Push
 
 
PE1# 
Validation 3
The command output below displays the details of routers configured with segment routing
PE1#show  isis segment-routing state
 
Tag 1  Segment-Routing:
SR State:  SR_ENABLED
SRGB Start: 16000,  SRGB Range: 8000
Operational state:  enabled
PE1#
PE1#show  isis segment-routing capability
 
Tag 1  Segment-Routing:
-----------------------------------------------------
Advertisement Router Capability   :1.1.1.1
Algorithm                         :0
SRMS Preference                   :0
Total SID'S Supported             :8000
SID Range List Count              :1
SID's Range                       :16000 - 23999
-----------------------------------------------------
Advertisement Router Capability   :1.1.1.2
Algorithm                         :0
SRMS Preference                   :0
Total SID'S Supported             :8000
SID Range List Count              :1
SID's Range                       :16000 - 23999
-----------------------------------------------------
Advertisement Router Capability   :1.1.1.4
Algorithm                         :0
SRMS Preference                   :0
Total SID'S Supported             :8000
SID Range List Count              :1
SID's Range                       :16000 - 23999
-----------------------------------------------------
Advertisement Router Capability   :1.1.1.6
Algorithm                         :0
SRMS Preference                   :0
Total SID'S Supported             :8000
SID Range List Count              :1
SID's Range                       :16000 - 23999
-----------------------------------------------------
Advertisement Router Capability   :1.1.1.8
Algorithm                         :0
SRMS Preference                   :0
Total SID'S Supported             :8000
SID Range List Count              :1
SID's Range                       :16000 - 23999
-----------------------------------------------------
Advertisement Router Capability   :1.1.1.9
Algorithm                         :0
SRMS Preference                   :0
Total SID'S Supported             :8000
SID Range List Count              :1
SID's Range                       :16000 - 23999
-----------------------------------------------------
PE1#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
0000.0000.0001.00-00  0x0000000E   0x83F8        426               0/0/0
  Area Address: 49.0001
  NLPID:        0xCC
  IP Address:   1.1.1.2
  Router ID:    1.1.1.2
  Router Cap:   1.1.1.2
    SRGB Range: 8000   SRGB Base SID: 16000  I:1 V:0
    SR-Algorithm:
      Algorithm: 0
  Metric:   10         IS-Extended 0000.0000.0001.02
    IPv4 Interface Address: 10.1.2.2
    Neighbor IP Address: 10.1.2.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.0011  LAN Adjacency SID: 24320  F:0 B:0 V:1 L:1 S:0 P:0
  Metric:   10         IS-Extended 0000.0000.0002.04
    IPv4 Interface Address: 29.1.1.1
    Neighbor IP Address: 29.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.0002  LAN Adjacency SID: 24321  F:0 B:0 V:1 L:1 S:0 P:0
  Metric:   10         IS-Extended 0000.0000.0003.03
    IPv4 Interface Address: 20.1.1.1
    Neighbor IP Address: 20.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: 24322  F:0 B:0 V:1 L:1 S:0 P:0
  Metric:   10         IP-Extended 1.1.1.2/32
    Prefix-SID: index 2 R:0 N:1 P:0 E:0 V:0 L:0
  Metric:   10         IP-Extended 10.1.2.0/24
  Metric:   10         IP-Extended 20.1.1.0/24
  Metric:   10         IP-Extended 29.1.1.0/24
0000.0000.0001.02-00  0x00000004   0xAF0A        426               0/0/0
  Metric:   0          IS-Extended 0000.0000.0001.00
  Metric:   0          IS-Extended 0000.0000.0011.00
0000.0000.0002.00-00  0x00000009   0x325C        426               0/0/0
  Area Address: 49.0001
  NLPID:        0xCC
  IP Address:   1.1.1.6
  Router ID:    1.1.1.6
  Router Cap:   1.1.1.6
    SRGB Range: 8000   SRGB Base SID: 16000  I:1 V:0
    SR-Algorithm:
      Algorithm: 0
  Metric:   10         IS-Extended 0000.0000.0002.03
    IPv4 Interface Address: 10.1.6.2
    Neighbor IP Address: 10.1.6.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.0011  LAN Adjacency SID: 24321  F:0 B:0 V:1 L:1 S:0 P:0
  Metric:   10         IS-Extended 0000.0000.0002.04
    IPv4 Interface Address: 29.1.1.2
    Neighbor IP Address: 29.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.0001  LAN Adjacency SID: 24320  F:0 B:0 V:1 L:1 S:0 P:0
  Metric:   10         IS-Extended 0000.0000.0002.02
    IPv4 Interface Address: 50.1.1.2
    Neighbor IP Address: 50.1.1.2
    Maximum Link Bandwidth: 100g
    Reservable Bandwidth: 100g
    Unreserved Bandwidth:
      Unreserved Bandwidth at priority 0: 100g
      Unreserved Bandwidth at priority 1: 100g
      Unreserved Bandwidth at priority 2: 100g
      Unreserved Bandwidth at priority 3: 100g
      Unreserved Bandwidth at priority 4: 100g
      Unreserved Bandwidth at priority 5: 100g
      Unreserved Bandwidth at priority 6: 100g
      Unreserved Bandwidth at priority 7: 100g
    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 1.1.1.6/32
    Prefix-SID: index 3 R:0 N:1 P:0 E:0 V:0 L:0
  Metric:   10         IP-Extended 29.1.1.0/24
  Metric:   10         IP-Extended 10.1.6.0/24
  Metric:   10         IP-Extended 50.1.1.0/24
0000.0000.0002.02-00  0x00000004   0xAB19        1005              0/0/0
  Metric:   0          IS-Extended 0000.0000.0002.00
  Metric:   0          IS-Extended 0000.0000.0004.00
0000.0000.0002.03-00  0x00000003   0xAB0C        426               0/0/0
  Metric:   0          IS-Extended 0000.0000.0002.00
  Metric:   0          IS-Extended 0000.0000.0011.00
0000.0000.0002.04-00  0x00000003   0x6363        512               0/0/0
  Metric:   0          IS-Extended 0000.0000.0002.00
  Metric:   0          IS-Extended 0000.0000.0001.00
0000.0000.0003.00-00  0x0000000D   0x4BA3        545               0/0/0
  Area Address: 49.0001
  NLPID:        0xCC
  IP Address:   1.1.1.4
  Router ID:    1.1.1.4
  Router Cap:   1.1.1.4
    SRGB Range: 8000   SRGB Base SID: 16000  I:1 V:0
    SR-Algorithm:
      Algorithm: 0
  Metric:   10         IS-Extended 0000.0000.0003.03
    IPv4 Interface Address: 20.1.1.2
    Neighbor IP Address: 20.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.0001  LAN Adjacency SID: 24320  F:0 B:0 V:1 L:1 S:0 P:0
  Metric:   10         IS-Extended 0000.0000.0004.04
    IPv4 Interface Address: 45.1.1.2
    Neighbor IP Address: 45.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.0004  LAN Adjacency SID: 24321  F:0 B:0 V:1 L:1 S:0 P:0
  Metric:   10         IS-Extended 0000.0000.0022.02
    IPv4 Interface Address: 10.4.9.1
    Neighbor IP Address: 10.4.9.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.0022  LAN Adjacency SID: 24322  F:0 B:0 V:1 L:1 S:0 P:0
  Metric:   10         IP-Extended 1.1.1.4/32
    Prefix-SID: index 4 R:0 N:1 P:0 E:0 V:0 L:0
  Metric:   10         IP-Extended 10.4.9.0/24
  Metric:   10         IP-Extended 20.1.1.0/24
  Metric:   10         IP-Extended 45.1.1.0/24
0000.0000.0003.03-00  0x00000003   0x6B5A        775               0/0/0
  Metric:   0          IS-Extended 0000.0000.0003.00
  Metric:   0          IS-Extended 0000.0000.0001.00
0000.0000.0004.00-00  0x00000009   0xFA0A        545               0/0/0
  Area Address: 49.0001
  NLPID:        0xCC
  IP Address:   1.1.1.8
  Router ID:    1.1.1.8
  Router Cap:   1.1.1.8
    SRGB Range: 8000   SRGB Base SID: 16000  I:1 V:0
    SR-Algorithm:
      Algorithm: 0
  Metric:   10         IS-Extended 0000.0000.0002.02
    IPv4 Interface Address: 50.1.1.1
    Neighbor IP Address: 50.1.1.2
    Maximum Link Bandwidth: 100g
    Reservable Bandwidth: 100g
    Unreserved Bandwidth:
      Unreserved Bandwidth at priority 0: 100g
      Unreserved Bandwidth at priority 1: 100g
      Unreserved Bandwidth at priority 2: 100g
      Unreserved Bandwidth at priority 3: 100g
      Unreserved Bandwidth at priority 4: 100g
      Unreserved Bandwidth at priority 5: 100g
      Unreserved Bandwidth at priority 6: 100g
      Unreserved Bandwidth at priority 7: 100g
    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         IS-Extended 0000.0000.0004.04
    IPv4 Interface Address: 45.1.1.1
    Neighbor IP Address: 45.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         IS-Extended 0000.0000.0022.03
    IPv4 Interface Address: 10.8.9.1
    Neighbor IP Address: 10.8.9.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.0022  LAN Adjacency SID: 24322  F:0 B:0 V:1 L:1 S:0 P:0
  Metric:   10         IP-Extended 1.1.1.8/32
    Prefix-SID: index 5 R:0 N:1 P:0 E:0 V:0 L:0
  Metric:   10         IP-Extended 10.8.9.0/24
  Metric:   10         IP-Extended 45.1.1.0/24
  Metric:   10         IP-Extended 50.1.1.0/24
0000.0000.0004.04-00  0x00000003   0x8D33        1006              0/0/0
  Metric:   0          IS-Extended 0000.0000.0004.00
  Metric:   0          IS-Extended 0000.0000.0003.00
0000.0000.0011.00-00* 0x0000000E   0xE5FA        432               0/0/0
  Area Address: 49.0001
  NLPID:        0xCC
  IP Address:   1.1.1.1
  Router ID:    1.1.1.1
  Router Cap:   1.1.1.1
    SRGB Range: 8000   SRGB Base SID: 16000  I:1 V:0
    SR-Algorithm:
      Algorithm: 0
  Metric:   10         IS-Extended 0000.0000.0001.02
    IPv4 Interface Address: 10.1.2.1
    Neighbor IP Address: 10.1.2.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.0001  LAN Adjacency SID: 24320  F:0 B:0 V:1 L:1 S:0 P:0
  Metric:   10         IS-Extended 0000.0000.0002.03
    IPv4 Interface Address: 10.1.6.1
    Neighbor IP Address: 10.1.6.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.0002  LAN Adjacency SID: 24321  F:0 B:0 V:1 L:1 S:0 P:0
  Metric:   10         IP-Extended 1.1.1.1/32
    Prefix-SID: index 1 R:0 N:1 P:0 E:0 V:0 L:0
  Metric:   10         IP-Extended 10.1.2.0/24
  Metric:   10         IP-Extended 10.1.6.0/24
0000.0000.0022.00-00  0x00000005   0xC06F        550               0/0/0
  Area Address: 49.0001
  NLPID:        0xCC
  IP Address:   1.1.1.9
  Router ID:    1.1.1.9
  Router Cap:   1.1.1.9
    SRGB Range: 8000   SRGB Base SID: 16000  I:1 V:0
    SR-Algorithm:
      Algorithm: 0
  Metric:   10         IS-Extended 0000.0000.0022.03
    IPv4 Interface Address: 10.8.9.2
    Neighbor IP Address: 10.8.9.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: 24320  F:0 B:0 V:1 L:1 S:0 P:0
  Metric:   10         IS-Extended 0000.0000.0022.02
    IPv4 Interface Address: 10.4.9.2
    Neighbor IP Address: 10.4.9.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: 24321  F:0 B:0 V:1 L:1 S:0 P:0
  Metric:   10         IP-Extended 1.1.1.9/32
    Prefix-SID: index 6 R:0 N:1 P:0 E:0 V:0 L:0
  Metric:   10         IP-Extended 10.8.9.0/24
  Metric:   10         IP-Extended 10.4.9.0/24
0000.0000.0022.02-00  0x00000002   0xBBCB        541               0/0/0
  Metric:   0          IS-Extended 0000.0000.0022.00
  Metric:   0          IS-Extended 0000.0000.0003.00
0000.0000.0022.03-00  0x00000002   0xC8BC        541               0/0/0
  Metric:   0          IS-Extended 0000.0000.0022.00
  Metric:   0          IS-Extended 0000.0000.0004.00
 
PE1# 
PE1#show  cspf lsp isis 1
 LSP detail
   Trunk ID        : 1
   LSP ID          : 1
   ISIS Tag Name   : 1
   Client ID       : 0
   State           : Established(3)
   Ingress         : 1.1.1.9
   Egress          : 1.1.1.9
   Ext Tunnel ID   : 1.1.1.9
   LSP Type        : 0
   Setup Priority  : 7
   Hold Priority   : 0
   Hop Limit       : 255
   Retry Interval  : 10
   Retry Limit     : 10
   LSP Metric      : 30
   Path Constraint :
       1.1.1.6    loose
   Computed ERO    :
       10.1.6.2
       50.1.1.1
       10.8.9.2
 
 LSP detail
   Trunk ID        : 1
   LSP ID          : 2
   ISIS Tag Name   : 1
   Client ID       : 0
   State           : Established(3)
   Ingress         : 1.1.1.9
   Egress          : 1.1.1.9
   Ext Tunnel ID   : 1.1.1.9
   LSP Type        : 0
   Setup Priority  : 7
   Hold Priority   : 0
   Hop Limit       : 255
   Retry Interval  : 10
   Retry Limit     : 10
   LSP Metric      : 30
   Path Constraint :
       10.1.2.2    strict
   Computed ERO    :
       10.1.2.2
       20.1.1.2
       10.4.9.2
 
PE1#show cspf lsp isis 1
 LSP detail
   Trunk ID               : 1
   LSP ID                 : 1
   ISIS Tag Name          : 1
   Client ID              : 0
   State                  : Established(3)
   Egress                 : 1.1.1.9
   Ext Tunnel ID          : 1.1.1.9
   LSP Type               : 0
   Retry Interval         : 10
   Retry Timer            : OFF
   Retry Limit            : 100
   Remaining Retry Count  : 0
   LSP Metric             : 30
   Path Constraint        :
       1.1.1.6    loose
   Computed ERO           :
       10.1.6.2
       50.1.1.1
       10.8.9.2
 
 LSP detail
   Trunk ID               : 1
   LSP ID                 : 2
   ISIS Tag Name          : 1
   Client ID              : 0
   State                  : Established(3)
   Egress                 : 1.1.1.9
   Ext Tunnel ID          : 1.1.1.9
   LSP Type               : 0
   Retry Interval         : 10
   Retry Timer            : OFF
   Retry Limit            : 100
   Remaining Retry Count  : 0
   LSP Metric             : 30
   Path Constraint        :
       10.1.2.2    strict
   Computed ERO           :
       10.1.2.2
       20.1.1.2
       10.4.9.2
 
PE1#
 
 Validation 4
PE1#show mpls vrf-table
Output for IPv4 VRF table with id: 2
 Primary FTN entry with FEC: 202.1.1.0/24, id: 1, row status: Active, Tunnel-Policy: N/A
  Owner: BGP, distance: 0, Action-type: Redirect to Tunnel, Exp-bits: 0x0, Incoming DSCP: none
  Transport Tunnel id: 1, Protected LSP id: 0, QoS Resource id: 0, Description: N/A, Color: 1
     Cross connect ix: 8, in intf: - in label: 0 out-segment ix: 12
      Owner: BGP, Persistent: No, Admin Status: Up, Oper Status: Up
       Out-segment with ix: 12, owner: BGP, Stale: NO, BGP out intf: eth1, transport out intf: eth1, out label: 24960
    Nexthop addr: 1.1.1.9        cross connect ix: 8, op code: Push and Lookup
 
PE1#
Dynamic Path Policy with OSPF
PE1
 
| PE1#configure terminal | Enter configure mode. | 
| PE1(config)#interface lo | Enter interface mode. | 
| PE1(config-if)#ip address 1.1.1.1/32 secondary | Configure the IP address of the interface. | 
| PE1(config-if)#prefix-sid index 1 | Configure prefix sid index value. | 
| PE1(config-if)#exit | Exit interface mode. | 
| PE1(config)#interface eth1 | Enter interface mode. | 
| PE1(config-if)#ip address 10.1.2.1/24 | Configure the IP address of the interface. | 
| PE1(config-if)#label-switching | Enable label switching. | 
| PE1(config)#interface eth2 | Enter interface mode. | 
| PE1(config-if)#ip address 10.1.6.1/24 | Configure the IP address of the interface. | 
| PE1(config-if)#label-switching | Enable label switching. | 
| PE1(config-if)#exit | Exit interface mode. | 
| PE1(config)#router ospf 1 | Set the routing process ID . | 
| PE1(config-router)#ospf router-id 1.1.1.1 | Configuring ospf router-id | 
| PE1(config-router)#network 1.1.1.1/32 area 0.0.0.0 | Configure OSPF network in area 0 | 
| PE1(config-router)#network 10.1.2.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| PE1(config-router)#network 10.1.6.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| PE1(config-router)#segment-routing mpls | Enable segment routing under router process. | 
| PE1(config-router)#exit | Exit router mode. | 
| PE1(config)#segment-routing | Configuring segment-routing | 
| PE1(config-sr)#traffic-engineering | Segment Routing traffic engineering | 
| PE1(config-sr-te)#policy 1 | Policy configuration with name 1 | 
| PE1(config-sr-pol)#color 1 end-point 1.1.1.9 | SR-policy color and end-point  | 
| PE1(config-sr-pol-cp)#candidate-path 1 | SR policy candidate path | 
| PE1(config-sr-pol-cp)#preference 100 | Candidate Path preference | 
| PE1(config-sr-pol-cp)#dynamic-path ospf 1 | Dynamic candidate path as ospf | 
| PE1(config-sr-pol-cp)#constraints | Specify constraints | 
| PE1(config-sr-dyn-cp-cons)#1.1.1.6 loose | Loopback IP of P2 as loose constraint | 
| PE1(config-sr-pol-cp)#exit-pol-cp | Exit from SR policy candidate path configuration mode | 
| PE1(config-sr-pol)#candidate-path 2 | SR policy candidate path | 
| PE1(config-sr-pol-cp)#dynamic-path ospf 1 | Dynamic candidate path as ospf | 
| PE1(config-sr-pol-cp)#constraints | Specify constraints | 
| PE1(config-sr-dyn-cp-cons)#10.1.2.2 strict | Interface IP of P1 as strict constraint | 
| PE1(config-sr-pol-cp)#exit-pol-cp | Exit from SR policy candidate path configuration mode | 
| PE1(config-sr-pol)#exit-sr-pol | Exit from SR policy configuration mode | 
| PE1(config-sr-te)#exit-te | Exit from traffic engineering configuration mode | 
| PE1(config)#ip vrf vrf1 | Configure VPN Routing/Forwarding instance | 
| PE1(config-vrf)#rd 100:2 | route distinguisher | 
| PE1(config-vrf)#route-target both 200:1 | route target | 
| PE1(config-vrf)#exit | Exit VRF mode. | 
| PE1(config)#interface eth3 | Enter interface mode. | 
| PE1(config-if)#ip vrf forwarding vrf1 | Configuring interface for VRF forwarding  | 
| PE1(config-if)#ip address 177.1.1.1/24 | Configure the IP address of the interface. | 
| PE1(config-if)#exit | Exit interface mode. | 
| PE1(config)#router bgp 100 | Configure router bgp in AS 100 | 
| PE1(config-router)#neighbor 1.1.1.9 remote-as 100 | Configure neighbor in remote-as 100 | 
| PE1(config-router)#neighbor 1.1.1.9 update-source lo | Configure neighbor with update-source loopback | 
| PE1(config-router)#address-family vpnv4 unicast | Enter VPNv4  Address family mode | 
| PE1(config-router-af)#neighbor 1.1.1.9 activate | Activate VPNv4 neighbor | 
| PE1(config-router-af)#exit-address-family | Exit from Address Family configuration mode | 
| PE1(config-router)#address-family ipv4 vrf vrf1 | Enter address-family VRF | 
| PE1(config-router-af)#redistribute connected | Redistribute all the connected VRF routes  | 
| PE1(config-router-af)#exit-address-family | Exit from Address Family configuration mode | 
| PE1(config-router)#exit | Exit router mode. | 
| PE1(config)#commit | Commit candidate configuration to be running configuration | 
| PE1(config)#exit | Exit configuration mode | 
P1
 
| P1#configure terminal | Enter configure mode. | 
| P1(config)#interface lo | Enter interface mode. | 
| P1(config-if)#ip address 1.1.1.2/32 secondary | Configure the IP address of the interface. | 
| P1(config-if)#prefix-sid index 2 | Configure prefix sid index value. | 
| P1(config-if)#exit | Exit interface mode. | 
| P1(config)#interface eth1 | Enter interface mode. | 
| P1(config-if)#ip address 10.1.2.2/24 | Configure the IP address of the interface. | 
| P1(config-if)#label-switching | Enable label switching. | 
| P1(config)#interface eth2 | Enter interface mode. | 
| P1(config-if)#ip address 20.1.1.1/24 | Configure the IP address of the interface. | 
| P1(config-if)#label-switching | Enable label switching. | 
| P1(config)#interface eth3 | Enter interface mode. | 
| P1(config-if)#ip address 29.1.1.1/24 | Configure the IP address of the interface. | 
| P1(config-if)#label-switching | Enable label switching. | 
| P1(config-if)#exit | Exit interface mode. | 
| P1(config)#router ospf 1 | Set the routing process ID . | 
| P1(config-router)#network 1.1.1.2/32 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P1(config-router)#ospf router-id 1.1.1.2 | Configure OSPF router-id | 
| P1(config-router)#network 10.1.2.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P1(config-router)#network 20.1.1.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P1(config-router)#network 29.1.1.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P1(config-router)#segment-routing mpls | Enable segment routing under router process. | 
| P1(config-router)#exit | Exit router mode. | 
| P1(config)#commit | Commit candidate configuration to be running configuration | 
| P1(config)#exit | Exit configuration mode | 
P2
 
| P2#configure terminal | Enter configure mode. | 
| P2(config)#interface lo | Enter interface mode. | 
| P2(config-if)#ip address 1.1.1.6/32 secondary | Configure the IP address of the interface. | 
| P2(config-if)#prefix-sid index 3 | Configure prefix sid index value. | 
| P2(config-if)#exit | Exit interface mode. | 
| P2(config)#interface eth1 | Enter interface mode. | 
| P2(config-if)#ip address 50.1.1.2/24 | Configure the IP address of the interface. | 
| P2(config-if)#label-switching | Enable label switching. | 
| P2(config)#interface eth2 | Enter interface mode. | 
| P2(config-if)#ip address 10.1.6.2/24 | Configure the IP address of the interface. | 
| P2(config-if)#label-switching | Enable label switching. | 
| P2(config)#interface eth3 | Enter interface mode. | 
| P2(config-if)#ip address 29.1.1.2/24 | Configure the IP address of the interface. | 
| P2(config-if)#label-switching | Enable label switching. | 
| P2(config-if)#exit | Exit interface mode. | 
| P2(config)#router ospf 1 | Set the routing process ID . | 
| P2(config-router)#ospf router-id 1.1.1.6 | Configure ospf router-id | 
| P2(config-router)#network 1.1.1.6/32 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P2(config-router)#network 10.1.6.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P2(config-router)#network 29.1.1.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P2(config-router)#network 50.1.1.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P2(config-router)#segment-routing mpls | Enable segment routing under router process. | 
| P2(config-router)#exit | Exit router mode. | 
| P2(config)#commit | Commit candidate configuration to be running configuration | 
| P2(config)#exit | Exit configuration mode | 
P3
 
| P3#configure terminal | Enter configure mode. | 
| P3(config)#interface lo | Enter interface mode. | 
| P3(config-if)#ip address 1.1.1.4/32 secondary | Configure the IP address of the interface. | 
| P3(config-if)#prefix-sid index 4 | Configure prefix sid index value. | 
| P3(config-if)#exit | Exit interface mode. | 
| P3(config)#interface eth1 | Enter interface mode. | 
| P3(config-if)#ip address 10.4.9.1/24 | Configure the IP address of the interface. | 
| P3(config-if)#label-switching | Enable label switching. | 
| P3(config)#interface eth2 | Enter interface mode. | 
| P3(config-if)#ip address 20.1.1.2/24 | Configure the IP address of the interface. | 
| P3(config-if)#label-switching | Enable label switching. | 
| P3(config)#interface eth3 | Enter interface mode. | 
| P3(config-if)#ip address 45.1.1.2/24 | Configure the IP address of the interface. | 
| P3(config-if)#label-switching | Enable label switching. | 
| P3(config-if)#exit | Exit interface mode. | 
| P3(config)#router ospf 1 | Set the routing process ID . | 
| P3(config-router)#ospf router-id 1.1.1.4 | Configuring ospf router-id | 
| P3(config-router)#network 1.1.1.4/32 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P3(config-router)#network 10.4.9.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P3(config-router)#network 20.1.1.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P3(config-router)#network 45.1.1.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P3(config-router)#segment-routing mpls | Enable segment routing under router process. | 
| P3(config-router)#exit | Exit router mode. | 
| P3(config)#commit | Commit candidate configuration to be running configuration | 
| P3(config)#exit | Exit configuration mode | 
P4
 
| P4#configure terminal | Enter configure mode. | 
| P4(config)#interface lo | Enter interface mode. | 
| P4(config-if)#ip address 1.1.1.8/32 secondary | Configure the IP address of the interface. | 
| P4(config-if)#prefix-sid index 5 | Configure prefix sid index value. | 
| P4(config-if)#exit | Exit interface mode. | 
| P4(config)#interface eth1 | Enter interface mode. | 
| P4(config-if)#ip address 50.1.1.1/24 | Configure the IP address of the interface. | 
| P4(config-if)#label-switching | Enable label switching. | 
| P4(config)#interface eth2 | Enter interface mode. | 
| P4(config-if)#ip address 10.8.9.1/24 | Configure the IP address of the interface. | 
| P4(config-if)#label-switching | Enable label switching. | 
| P4(config)#interface eth3 | Enter interface mode. | 
| P4(config-if)#ip address 45.1.1.1/24 | Configure the IP address of the interface. | 
| P4(config-if)#label-switching | Enable label switching. | 
| P4(config-if)#exit | Exit interface mode. | 
| P4(config)#router ospf 1 | Set the routing process ID . | 
| P4(config-router)#ospf router-id 1.1.1.8 | Configuring ospf router-id | 
| P4(config-router)#network 1.1.1.8/32 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P4(config-router)#network 10.8.9.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P4(config-router)#network 45.1.1.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P4(config-router)#network 50.1.1.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P4(config-router)#segment-routing mpls | Enable segment routing under router process. | 
| P4(config-router)#exit | Exit router mode. | 
| P4(config)#commit | Commit candidate configuration to be running configuration | 
| P4(config)#exit | Exit configuration mode | 
PE2
 
| PE2#configure terminal | Enter configure mode. | 
| PE2(config)#interface lo | Enter interface mode. | 
| PE2(config-if)#ip address 1.1.1.9/32 secondary | Configure the IP address of the interface. | 
| PE2(config-if)#prefix-sid index 6 | Configure prefix sid index value. | 
| PE2(config-if)#exit | Exit interface mode. | 
| PE2(config)#interface eth1 | Enter interface mode. | 
| PE2(config-if)#ip address 10.4.9.2/24 | Configure the IP address of the interface. | 
| PE2(config-if)#label-switching | Enable label switching. | 
| PE2(config)#interface eth2 | Enter interface mode. | 
| PE2(config-if)#ip address 10.8.9.2/24 | Configure the IP address of the interface. | 
| PE2(config-if)#label-switching | Enable label switching. | 
| PE2(config-if)#exit | Exit interface mode. | 
| PE2(config)#router ospf 1 | Set the routing process ID . | 
| PE2(config-router)#router-id 1.1.1.9 | Configuring ospf router-id | 
| PE2(config-router)#network 1.1.1.9/32 area 0.0.0.0 | Configure OSPF network in area 0 | 
| PE2(config-router)#network 10.4.9.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| PE2(config-router)#network 10.8.9.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| PE2(config-router)#segment-routing mpls | Enable segment routing under router process. | 
| PE2(config-router)#exit | Exit router mode. | 
| PE2(config)#ip vrf vrf1 | Configure VPN Routing/Forwarding instance | 
| PE2(config-vrf)#rd 100:1 | route distinguisher | 
| PE2(config-vrf)#route-target both 200:1 | route target | 
| PE2(config-vrf)#exit | Exit VRF mode. | 
| PE2(config)#router bgp 100 | Configure router bgp in AS 100 | 
| PE2(config-router)#neighbor 1.1.1.1 remote-as 100 | Configure neighbor in remote-as 100 | 
| PE2(config-router)#neighbor 1.1.1.1 update-source lo | Configure neighbor with update-source loopback | 
| PE2(config-router)#address-family vpnv4 unicast | Enter VPNv4  Address family mode | 
| PE2(config-router-af)#neighbor 1.1.1.1 activate | Activate VPNv4 neighbor | 
| PE2(config-router-af)#exit-address-family | Exit from Address Family configuration mode | 
| PE2(config-router)#address-family ipv4 vrf vrf1 | Enter address-family VRF | 
| PE2(config-router-af)#redistribute connected | Redistribute all the connected VRF routes  | 
| PE2(config-router-af)#exit-address-family | Exit from Address Family configuration mode | 
| PE2(config-router)#exit | Exit router mode. | 
| PE2(config)#commit | Commit candidate configuration to be running configuration | 
| PE2(config)#exit | Exit configuration mode | 
Validation 1
Verify OSPF neighbor adjacency between routers and show segment-routing policy detail.
PE1#show  ip ospf  neighbor
 
Total number of full neighbors: 2
OSPF process 1 VRF(default):
Neighbor ID     Pri   State            Dead Time   Address         Interface           Instance ID
1.1.1.2           1   Full/DR          00:00:39    10.1.2.2        eth1                    0
1.1.1.6           1   Full/DR          00:00:33    10.1.6.2        eth2                    0
PE1#show segment-routing policy
 
Policy-Name                                                  Color       End-point        State       Forwarding-Info
1                                                            1           1.1.1.9          UP          3/16006/xe7
PE1#
 
PE1#show segment-routing policy detail
 
Policy-Name: 1    Color 1      End-point 1.1.1.9          Tunnel-ID: 1
  Admin-Status: UP    Oper-Status: UP for 03:24:33
  State Transition Count: 3
  CSPF Retry Limit: 100    CSPF Retry Interval: 10
  Binding SID :
   BSID: 24960
   Alloc mode: Dynamic
   Oper State: Programmed
 
  CP ID: 2, Active
    Preference: 100    Path Type: Dynamic(ospf)    CP Origin: Local
    Segment List:
    Total no. of segments: 2
     Segment0[LABEL]: Label :24320
     Segment1[LABEL]: Label :16006
    Out-if: xe7          Out-label-stack: 3/16006
    Attributes:
      Configured:
      Affinity:
      Metric-type: TE
      IP Constraints: 10.1.2.2 strict
 
 
  CP ID: 1
    Preference: 100    Path Type: Dynamic(ospf)    CP Origin: Local
    CP state: Valid
    Segment List:
    Total no. of segments: 2
     Segment0[LABEL]: Label :16003
     Segment1[LABEL]: Label :16006
    Out-if: xe13         Out-label-stack: 3/16006
    Attributes:
      Configured:
      Affinity:
      Metric-type: TE
      IP Constraints: 1.1.1.6 loose
PE1#
Validation 2
Verify the prefix SIDs are installed as labels in MPLS forwarding table. Verify the same in FTN and ILM tables.
PE1#show mpls forwarding-table
Codes: > - installed FTN, * - selected FTN, p - stale FTN,
       B - BGP FTN, K - CLI FTN, t - tunnel, P - SR Policy FTN,
       L - LDP FTN, R - RSVP-TE FTN, S - SNMP FTN, I - IGP-Shortcut,
       U - unknown FTN, O - SR-OSPF FTN, i - SR-ISIS FTN, k - SR-CLI FTN
 
Code    FEC                 FTN-ID    Nhlfe-ID  Tunnel-id   Pri   LSP-Type     Out-Label    Out-Intf    ELC   Nexthop
   O>   1.1.1.2/32          1         2         0           Yes   LSP_DEFAULT  3            xe7         No    10.1.2.2
   O>   1.1.1.4/32          3         6         0           Yes   LSP_DEFAULT  16004        xe7         No    10.1.2.2
   O>   1.1.1.6/32          2         4         0           Yes   LSP_DEFAULT  3            xe13        No    10.1.6.2
   O>   1.1.1.8/32          4         8         0           Yes   LSP_DEFAULT  16005        xe13        No    10.1.6.2
   P>   1.1.1.9/32          7         16        1           Yes   LSP_DEFAULT  3            xe7         No    10.1.2.2
   O    1.1.1.9/32          5         9         0           Yes   LSP_DEFAULT  16006        xe7         No    10.1.2.2
PE1#
 
 
PE1#show mpls ilm-table
Codes: > - installed ILM, * - selected ILM, p - stale ILM
        K - CLI ILM, T - MPLS-TP, s - Stitched ILM
       S - SNMP, L - LDP, R - RSVP, C - CRLDP
       B - BGP , K - CLI , V - LDP_VC, I - IGP_SHORTCUT
       O - OSPF/OSPF6 SR, i - ISIS SR, k - SR CLI
       P - SR Policy, U - unknown
 
Code    FEC/VRF/L2CKT    ILM-ID      In-Label    Out-Label   In-Intf    Out-Intf/VRF       Nexthop                   LSP-Type
   O>   1.1.1.4/32         5           16004       16004       N/A        xe7              10.1.2.2                  LSP_DEFAULT
   O>   1.1.1.6/32         4           16003       3           N/A        xe13             10.1.6.2                  LSP_DEFAULT
   O>   1.1.1.2/32         2           16002       3           N/A        xe7              10.1.2.2                  LSP_DEFAULT
   O>   10.1.2.2/32        1           24320       3           N/A        xe7              10.1.2.2                  LSP_DEFAULT
   O>   1.1.1.8/32         6           16005       16005       N/A        xe13             10.1.6.2                  LSP_DEFAULT
   O>   1.1.1.9/32         7           16006       16006       N/A        xe7              10.1.2.2                  LSP_DEFAULT
   P>   1.1.1.9/32         9           24960       16006       N/A        xe7              10.1.2.2                  LSP_DEFAULT
   O>   10.1.6.2/32        3           24321       3           N/A        xe13             10.1.6.2                  LSP_DEFAULT
   B>   vrf1               8           25600       Nolabel     N/A        vrf1             N/A                       LSP_DEFAULT
PE1#
 
 
 
PE1#show mpls ftn-table
 Primary FTN entry with FEC: 1.1.1.2/32, id: 1, row status: Active, Tunnel-Policy: N/A
  Owner: OSPF-SR, distance: 110, Action-type: Redirect to Tunnel, Exp-bits: 0x0, Incoming DSCP: none
  Tunnel id: 0, Protected LSP id: 0, QoS Resource id: 0, Description: N/A, Color: 0
     Cross connect ix: 1, in intf: - in label: 0 out-segment ix: 1
      Owner: N/A, Persistent: No, Admin Status: Up, Oper Status: Up
       Out-segment with ix: 1, owner: N/A, Stale: NO, out intf: xe7, out label: 3
    Nexthop addr: 10.1.2.2        cross connect ix: 1, op code: Push
 
 
 Primary FTN entry with FEC: 1.1.1.4/32, id: 3, row status: Active, Tunnel-Policy: N/A
  Owner: OSPF-SR, distance: 110, Action-type: Redirect to Tunnel, Exp-bits: 0x0, Incoming DSCP: none
  Tunnel id: 0, Protected LSP id: 0, QoS Resource id: 0, Description: N/A, Color: 0
     Cross connect ix: 3, in intf: - in label: 0 out-segment ix: 5
      Owner: OSPF-SR, Persistent: No, Admin Status: Up, Oper Status: Up
       Out-segment with ix: 5, owner: OSPF-SR, Stale: NO, out intf: xe7, out label: 16004
    Nexthop addr: 10.1.2.2        cross connect ix: 3, op code: Push
 
 
 
 Primary FTN entry with FEC: 1.1.1.9/32, id: 5, row status: Active, Tunnel-Policy: N/A
  Owner: OSPF-SR, distance: 110, Action-type: Redirect to Tunnel, Exp-bits: 0x0, Incoming DSCP: none
  Tunnel id: 0, Protected LSP id: 0, QoS Resource id: 0, Description: N/A, Color: 0
     Cross connect ix: 6, in intf: - in label: 0 out-segment ix: 9
      Owner: OSPF-SR, Persistent: No, Admin Status: Down, Oper Status: Down
       Out-segment with ix: 9, owner: OSPF-SR, Stale: NO, out intf: xe7, out label: 16006
    Nexthop addr: 10.1.2.2        cross connect ix: 6, op code: Push
PE1#
 
Validation 3
The command output below displays the details of routers configured with segment routing.
PE1#show ip ospf segment-routing capability
 
OSPF process 1:
-----------------------------------------------------
Advertisement Router Capability   :1.1.1.1
SRMS Preference                   :0
Total SID'S Supported             :8000
SID Range List Count              :1
SID's Range                       :16000 - 23999
-----------------------------------------------------
Advertisement Router Capability   :1.1.1.2
SRMS Preference                   :0
Total SID'S Supported             :8000
SID Range List Count              :1
SID's Range                       :16000 - 23999
-----------------------------------------------------
Advertisement Router Capability   :1.1.1.4
SRMS Preference                   :0
Total SID'S Supported             :8000
SID Range List Count              :1
SID's Range                       :16000 - 23999
-----------------------------------------------------
Advertisement Router Capability   :1.1.1.6
SRMS Preference                   :0
Total SID'S Supported             :8000
SID Range List Count              :1
SID's Range                       :16000 - 23999
-----------------------------------------------------
Advertisement Router Capability   :1.1.1.8
SRMS Preference                   :0
Total SID'S Supported             :8000
SID Range List Count              :1
SID's Range                       :16000 - 23999
-----------------------------------------------------
Advertisement Router Capability   :1.1.1.9
SRMS Preference                   :0
Total SID'S Supported             :8000
SID Range List Count              :1
SID's Range                       :16000 - 23999
-----------------------------------------------------
PE1#
 
PE1#show ip ospf database opaque-area
 
            OSPF Router with ID (1.1.1.1) (Process ID 1 VRF default)
 
                Area-Local Opaque-LSA (Area 0.0.0.0)
 
  LS age: 1648
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 1.0.0.1 (Area-Local Opaque-Type/ID)
  Opaque Type: 1
  Opaque ID: 1
  Advertising Router: 1.1.1.1
  LS Seq Number: 8000000a
  Checksum: 0x1eff
  Length: 28
 
    MPLS TE router ID : 1.1.1.1
 
    Number of Links : 0
 
  LS age: 5
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 1.0.0.1 (Area-Local Opaque-Type/ID)
  Opaque Type: 1
  Opaque ID: 1
  Advertising Router: 1.1.1.2
  LS Seq Number: 8000000a
  Checksum: 0x22f9
  Length: 28
 
    MPLS TE router ID : 1.1.1.2
 
    Number of Links : 0
 
  LS age: 28
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 1.0.0.1 (Area-Local Opaque-Type/ID)
  Opaque Type: 1
  Opaque ID: 1
  Advertising Router: 1.1.1.4
  LS Seq Number: 8000000a
  Checksum: 0x2aed
  Length: 28
 
    MPLS TE router ID : 1.1.1.4
 
    Number of Links : 0
 
  LS age: 1788
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 1.0.0.1 (Area-Local Opaque-Type/ID)
  Opaque Type: 1
  Opaque ID: 1
  Advertising Router: 1.1.1.6
  LS Seq Number: 80000008
  Checksum: 0x36df
  Length: 28
 
    MPLS TE router ID : 1.1.1.6
 
    Number of Links : 0
 
  LS age: 1621
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 1.0.0.1 (Area-Local Opaque-Type/ID)
  Opaque Type: 1
  Opaque ID: 1
  Advertising Router: 1.1.1.8
  LS Seq Number: 80000008
  Checksum: 0x3ed3
  Length: 28
 
    MPLS TE router ID : 1.1.1.8
 
    Number of Links : 0
 
  LS age: 1812
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 1.0.0.1 (Area-Local Opaque-Type/ID)
  Opaque Type: 1
  Opaque ID: 1
  Advertising Router: 1.1.1.9
  LS Seq Number: 80000008
  Checksum: 0x42cd
  Length: 28
 
    MPLS TE router ID : 1.1.1.9
 
    Number of Links : 0
 
  LS age: 1348
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 1.0.0.8 (Area-Local Opaque-Type/ID)
  Opaque Type: 1
  Opaque ID: 8
  Advertising Router: 1.1.1.6
  LS Seq Number: 80000007
  Checksum: 0x9787
  Length: 108
 
    Link connected to Broadcast network
      Link ID : 29.1.1.1
      Interface Address : 29.1.1.2
      Admin Metric : 1
      Maximum bandwidth : 10000000.00 Kbits/s
      Maximum reservable bandwidth : 10000000.00 Kbits/s
      Unreserved Bandwidth :
      Number of Priority : 8
      Priority 0 : 10000000.00 Kbits/s       Priority 1 : 10000000.00 Kbits/s
      Priority 2 : 10000000.00 Kbits/s       Priority 3 : 10000000.00 Kbits/s
      Priority 4 : 10000000.00 Kbits/s       Priority 5 : 10000000.00 Kbits/s
      Priority 6 : 10000000.00 Kbits/s       Priority 7 : 10000000.00 Kbits/s
 
    Number of Links : 1
 
  LS age: 418
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 1.0.0.22 (Area-Local Opaque-Type/ID)
  Opaque Type: 1
  Opaque ID: 22
  Advertising Router: 1.1.1.1
  LS Seq Number: 80000008
  Checksum: 0xcd6c
  Length: 108
 
    Link connected to Broadcast network
      Link ID : 10.1.2.1
      Interface Address : 10.1.2.1
      Admin Metric : 1
      Maximum bandwidth : 10000000.00 Kbits/s
      Maximum reservable bandwidth : 10000000.00 Kbits/s
      Unreserved Bandwidth :
      Number of Priority : 8
      Priority 0 : 10000000.00 Kbits/s       Priority 1 : 10000000.00 Kbits/s
      Priority 2 : 10000000.00 Kbits/s       Priority 3 : 10000000.00 Kbits/s
      Priority 4 : 10000000.00 Kbits/s       Priority 5 : 10000000.00 Kbits/s
      Priority 6 : 10000000.00 Kbits/s       Priority 7 : 10000000.00 Kbits/s
 
    Number of Links : 1
 
  LS age: 1435
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 1.0.0.22 (Area-Local Opaque-Type/ID)
  Opaque Type: 1
  Opaque ID: 22
  Advertising Router: 1.1.1.2
  LS Seq Number: 80000007
  Checksum: 0xe751
  Length: 108
 
    Link connected to Broadcast network
      Link ID : 10.1.2.1
      Interface Address : 10.1.2.2
      Admin Metric : 1
      Maximum bandwidth : 10000000.00 Kbits/s
      Maximum reservable bandwidth : 10000000.00 Kbits/s
      Unreserved Bandwidth :
      Number of Priority : 8
      Priority 0 : 10000000.00 Kbits/s       Priority 1 : 10000000.00 Kbits/s
      Priority 2 : 10000000.00 Kbits/s       Priority 3 : 10000000.00 Kbits/s
      Priority 4 : 10000000.00 Kbits/s       Priority 5 : 10000000.00 Kbits/s
      Priority 6 : 10000000.00 Kbits/s       Priority 7 : 10000000.00 Kbits/s
 
    Number of Links : 1
 
  LS age: 1381
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 1.0.0.28 (Area-Local Opaque-Type/ID)
  Opaque Type: 1
  Opaque ID: 28
  Advertising Router: 1.1.1.8
  LS Seq Number: 80000007
  Checksum: 0x1af7
  Length: 108
 
    Link connected to Broadcast network
      Link ID : 10.8.9.1
      Interface Address : 10.8.9.1
      Admin Metric : 1
      Maximum bandwidth : 10000000.00 Kbits/s
      Maximum reservable bandwidth : 10000000.00 Kbits/s
      Unreserved Bandwidth :
      Number of Priority : 8
      Priority 0 : 10000000.00 Kbits/s       Priority 1 : 10000000.00 Kbits/s
      Priority 2 : 10000000.00 Kbits/s       Priority 3 : 10000000.00 Kbits/s
      Priority 4 : 10000000.00 Kbits/s       Priority 5 : 10000000.00 Kbits/s
      Priority 6 : 10000000.00 Kbits/s       Priority 7 : 10000000.00 Kbits/s
 
    Number of Links : 1
 
  LS age: 1712
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 1.0.0.28 (Area-Local Opaque-Type/ID)
  Opaque Type: 1
  Opaque ID: 28
  Advertising Router: 1.1.1.9
  LS Seq Number: 80000007
  Checksum: 0x32dd
  Length: 108
 
    Link connected to Broadcast network
      Link ID : 10.8.9.1
      Interface Address : 10.8.9.2
      Admin Metric : 1
      Maximum bandwidth : 10000000.00 Kbits/s
      Maximum reservable bandwidth : 10000000.00 Kbits/s
      Unreserved Bandwidth :
      Number of Priority : 8
      Priority 0 : 10000000.00 Kbits/s       Priority 1 : 10000000.00 Kbits/s
      Priority 2 : 10000000.00 Kbits/s       Priority 3 : 10000000.00 Kbits/s
      Priority 4 : 10000000.00 Kbits/s       Priority 5 : 10000000.00 Kbits/s
      Priority 6 : 10000000.00 Kbits/s       Priority 7 : 10000000.00 Kbits/s
 
    Number of Links : 1
 
  LS age: 378
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 1.0.0.34 (Area-Local Opaque-Type/ID)
  Opaque Type: 1
  Opaque ID: 34
  Advertising Router: 1.1.1.1
  LS Seq Number: 80000008
  Checksum: 0x1e08
  Length: 108
 
    Link connected to Broadcast network
      Link ID : 10.1.6.1
      Interface Address : 10.1.6.1
      Admin Metric : 1
      Maximum bandwidth : 10000000.00 Kbits/s
      Maximum reservable bandwidth : 10000000.00 Kbits/s
      Unreserved Bandwidth :
      Number of Priority : 8
      Priority 0 : 10000000.00 Kbits/s       Priority 1 : 10000000.00 Kbits/s
      Priority 2 : 10000000.00 Kbits/s       Priority 3 : 10000000.00 Kbits/s
      Priority 4 : 10000000.00 Kbits/s       Priority 5 : 10000000.00 Kbits/s
      Priority 6 : 10000000.00 Kbits/s       Priority 7 : 10000000.00 Kbits/s
 
    Number of Links : 1
 
  LS age: 1048
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 1.0.0.36 (Area-Local Opaque-Type/ID)
  Opaque Type: 1
  Opaque ID: 36
  Advertising Router: 1.1.1.4
  LS Seq Number: 80000007
  Checksum: 0x21f4
  Length: 108
 
    Link connected to Broadcast network
      Link ID : 10.4.9.1
      Interface Address : 10.4.9.1
      Admin Metric : 1
      Maximum bandwidth : 10000000.00 Kbits/s
      Maximum reservable bandwidth : 10000000.00 Kbits/s
      Unreserved Bandwidth :
      Number of Priority : 8
      Priority 0 : 10000000.00 Kbits/s       Priority 1 : 10000000.00 Kbits/s
      Priority 2 : 10000000.00 Kbits/s       Priority 3 : 10000000.00 Kbits/s
      Priority 4 : 10000000.00 Kbits/s       Priority 5 : 10000000.00 Kbits/s
      Priority 6 : 10000000.00 Kbits/s       Priority 7 : 10000000.00 Kbits/s
 
    Number of Links : 1
 
  LS age: 1378
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 1.0.0.36 (Area-Local Opaque-Type/ID)
  Opaque Type: 1
  Opaque ID: 36
  Advertising Router: 1.1.1.6
  LS Seq Number: 80000007
  Checksum: 0x0c13
  Length: 108
 
    Link connected to Broadcast network
      Link ID : 10.1.6.1
      Interface Address : 10.1.6.2
      Admin Metric : 1
      Maximum bandwidth : 10000000.00 Kbits/s
      Maximum reservable bandwidth : 10000000.00 Kbits/s
      Unreserved Bandwidth :
      Number of Priority : 8
      Priority 0 : 10000000.00 Kbits/s       Priority 1 : 10000000.00 Kbits/s
      Priority 2 : 10000000.00 Kbits/s       Priority 3 : 10000000.00 Kbits/s
      Priority 4 : 10000000.00 Kbits/s       Priority 5 : 10000000.00 Kbits/s
      Priority 6 : 10000000.00 Kbits/s       Priority 7 : 10000000.00 Kbits/s
 
    Number of Links : 1
 
  LS age: 432
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 1.0.0.38 (Area-Local Opaque-Type/ID)
  Opaque Type: 1
  Opaque ID: 38
  Advertising Router: 1.1.1.9
  LS Seq Number: 80000008
  Checksum: 0x0b02
  Length: 108
 
    Link connected to Broadcast network
      Link ID : 10.4.9.1
      Interface Address : 10.4.9.2
      Admin Metric : 1
      Maximum bandwidth : 10000000.00 Kbits/s
      Maximum reservable bandwidth : 10000000.00 Kbits/s
      Unreserved Bandwidth :
      Number of Priority : 8
      Priority 0 : 10000000.00 Kbits/s       Priority 1 : 10000000.00 Kbits/s
      Priority 2 : 10000000.00 Kbits/s       Priority 3 : 10000000.00 Kbits/s
      Priority 4 : 10000000.00 Kbits/s       Priority 5 : 10000000.00 Kbits/s
      Priority 6 : 10000000.00 Kbits/s       Priority 7 : 10000000.00 Kbits/s
 
    Number of Links : 1
 
  LS age: 1349
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 1.0.0.46 (Area-Local Opaque-Type/ID)
  Opaque Type: 1
  Opaque ID: 46
  Advertising Router: 1.1.1.4
  LS Seq Number: 80000007
  Checksum: 0x8686
  Length: 108
 
    Link connected to Broadcast network
      Link ID : 20.1.1.1
      Interface Address : 20.1.1.2
      Admin Metric : 1
      Maximum bandwidth : 10000000.00 Kbits/s
      Maximum reservable bandwidth : 10000000.00 Kbits/s
      Unreserved Bandwidth :
      Number of Priority : 8
      Priority 0 : 10000000.00 Kbits/s       Priority 1 : 10000000.00 Kbits/s
      Priority 2 : 10000000.00 Kbits/s       Priority 3 : 10000000.00 Kbits/s
      Priority 4 : 10000000.00 Kbits/s       Priority 5 : 10000000.00 Kbits/s
      Priority 6 : 10000000.00 Kbits/s       Priority 7 : 10000000.00 Kbits/s
 
    Number of Links : 1
 
  LS age: 1255
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 1.0.0.48 (Area-Local Opaque-Type/ID)
  Opaque Type: 1
  Opaque ID: 48
  Advertising Router: 1.1.1.2
  LS Seq Number: 80000007
  Checksum: 0x60ad
  Length: 108
 
    Link connected to Broadcast network
      Link ID : 20.1.1.1
      Interface Address : 20.1.1.1
      Admin Metric : 1
      Maximum bandwidth : 10000000.00 Kbits/s
      Maximum reservable bandwidth : 10000000.00 Kbits/s
      Unreserved Bandwidth :
      Number of Priority : 8
      Priority 0 : 10000000.00 Kbits/s       Priority 1 : 10000000.00 Kbits/s
      Priority 2 : 10000000.00 Kbits/s       Priority 3 : 10000000.00 Kbits/s
      Priority 4 : 10000000.00 Kbits/s       Priority 5 : 10000000.00 Kbits/s
      Priority 6 : 10000000.00 Kbits/s       Priority 7 : 10000000.00 Kbits/s
 
    Number of Links : 1
 
  LS age: 47
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 1.0.0.56 (Area-Local Opaque-Type/ID)
  Opaque Type: 1
  Opaque ID: 56
  Advertising Router: 1.1.1.6
  LS Seq Number: 80000008
  Checksum: 0x0c3e
  Length: 108
 
    Link connected to Broadcast network
      Link ID : 50.1.1.2
      Interface Address : 50.1.1.2
      Admin Metric : 1
      Maximum bandwidth : 100000000.00 Kbits/s
      Maximum reservable bandwidth : 100000000.00 Kbits/s
      Unreserved Bandwidth :
      Number of Priority : 8
      Priority 0 : 100000000.00 Kbits/s       Priority 1 : 100000000.00 Kbits/s
      Priority 2 : 100000000.00 Kbits/s       Priority 3 : 100000000.00 Kbits/s
      Priority 4 : 100000000.00 Kbits/s       Priority 5 : 100000000.00 Kbits/s
      Priority 6 : 100000000.00 Kbits/s       Priority 7 : 100000000.00 Kbits/s
 
    Number of Links : 1
 
  LS age: 15
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 1.0.0.66 (Area-Local Opaque-Type/ID)
  Opaque Type: 1
  Opaque ID: 66
  Advertising Router: 1.1.1.2
  LS Seq Number: 80000008
  Checksum: 0x499f
  Length: 108
 
    Link connected to Broadcast network
      Link ID : 29.1.1.1
      Interface Address : 29.1.1.1
      Admin Metric : 1
      Maximum bandwidth : 10000000.00 Kbits/s
      Maximum reservable bandwidth : 10000000.00 Kbits/s
      Unreserved Bandwidth :
      Number of Priority : 8
      Priority 0 : 10000000.00 Kbits/s       Priority 1 : 10000000.00 Kbits/s
      Priority 2 : 10000000.00 Kbits/s       Priority 3 : 10000000.00 Kbits/s
      Priority 4 : 10000000.00 Kbits/s       Priority 5 : 10000000.00 Kbits/s
      Priority 6 : 10000000.00 Kbits/s       Priority 7 : 10000000.00 Kbits/s
 
    Number of Links : 1
 
  LS age: 1339
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 1.0.0.96 (Area-Local Opaque-Type/ID)
  Opaque Type: 1
  Opaque ID: 96
  Advertising Router: 1.1.1.4
  LS Seq Number: 80000007
  Checksum: 0x297e
  Length: 108
 
    Link connected to Broadcast network
      Link ID : 45.1.1.2
      Interface Address : 45.1.1.2
      Admin Metric : 1
      Maximum bandwidth : 10000000.00 Kbits/s
      Maximum reservable bandwidth : 10000000.00 Kbits/s
      Unreserved Bandwidth :
      Number of Priority : 8
      Priority 0 : 10000000.00 Kbits/s       Priority 1 : 10000000.00 Kbits/s
      Priority 2 : 10000000.00 Kbits/s       Priority 3 : 10000000.00 Kbits/s
      Priority 4 : 10000000.00 Kbits/s       Priority 5 : 10000000.00 Kbits/s
      Priority 6 : 10000000.00 Kbits/s       Priority 7 : 10000000.00 Kbits/s
 
    Number of Links : 1
 
  LS age: 161
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 1.0.0.96 (Area-Local Opaque-Type/ID)
  Opaque Type: 1
  Opaque ID: 96
  Advertising Router: 1.1.1.8
  LS Seq Number: 80000008
  Checksum: 0xf0b2
  Length: 108
 
    Link connected to Broadcast network
      Link ID : 45.1.1.2
      Interface Address : 45.1.1.1
      Admin Metric : 1
      Maximum bandwidth : 10000000.00 Kbits/s
      Maximum reservable bandwidth : 10000000.00 Kbits/s
      Unreserved Bandwidth :
      Number of Priority : 8
      Priority 0 : 10000000.00 Kbits/s       Priority 1 : 10000000.00 Kbits/s
      Priority 2 : 10000000.00 Kbits/s       Priority 3 : 10000000.00 Kbits/s
      Priority 4 : 10000000.00 Kbits/s       Priority 5 : 10000000.00 Kbits/s
      Priority 6 : 10000000.00 Kbits/s       Priority 7 : 10000000.00 Kbits/s
 
    Number of Links : 1
 
  LS age: 1201
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 1.0.0.106 (Area-Local Opaque-Type/ID)
  Opaque Type: 1
  Opaque ID: 106
  Advertising Router: 1.1.1.8
  LS Seq Number: 80000007
  Checksum: 0xed2a
  Length: 108
 
    Link connected to Broadcast network
      Link ID : 50.1.1.2
      Interface Address : 50.1.1.1
      Admin Metric : 1
      Maximum bandwidth : 100000000.00 Kbits/s
      Maximum reservable bandwidth : 100000000.00 Kbits/s
      Unreserved Bandwidth :
      Number of Priority : 8
      Priority 0 : 100000000.00 Kbits/s       Priority 1 : 100000000.00 Kbits/s
      Priority 2 : 100000000.00 Kbits/s       Priority 3 : 100000000.00 Kbits/s
      Priority 4 : 100000000.00 Kbits/s       Priority 5 : 100000000.00 Kbits/s
      Priority 6 : 100000000.00 Kbits/s       Priority 7 : 100000000.00 Kbits/s
 
    Number of Links : 1
 
  LS age: 878
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 4.0.0.0 (Area-Local Opaque-Type/ID)
  Opaque Type: 4
  Opaque ID: 0
  Advertising Router: 1.1.1.1
  LS Seq Number: 80000008
  Checksum: 0xe7ee
  Length: 44
 
    Range Size: 8000
     Base-SID: 16000
    Algorithm0: 0
 
 
  LS age: 1405
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 4.0.0.0 (Area-Local Opaque-Type/ID)
  Opaque Type: 4
  Opaque ID: 0
  Advertising Router: 1.1.1.2
  LS Seq Number: 80000007
  Checksum: 0xe3f2
  Length: 44
 
    Range Size: 8000
     Base-SID: 16000
    Algorithm0: 0
 
 
  LS age: 1749
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 4.0.0.0 (Area-Local Opaque-Type/ID)
  Opaque Type: 4
  Opaque ID: 0
  Advertising Router: 1.1.1.4
  LS Seq Number: 80000007
  Checksum: 0xd7fc
  Length: 44
 
    Range Size: 8000
     Base-SID: 16000
    Algorithm0: 0
 
 
  LS age: 638
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 4.0.0.0 (Area-Local Opaque-Type/ID)
  Opaque Type: 4
  Opaque ID: 0
  Advertising Router: 1.1.1.6
  LS Seq Number: 80000008
  Checksum: 0xc908
  Length: 44
 
    Range Size: 8000
     Base-SID: 16000
    Algorithm0: 0
 
 
  LS age: 1731
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 4.0.0.0 (Area-Local Opaque-Type/ID)
  Opaque Type: 4
  Opaque ID: 0
  Advertising Router: 1.1.1.8
  LS Seq Number: 80000007
  Checksum: 0xbf11
  Length: 44
 
    Range Size: 8000
     Base-SID: 16000
    Algorithm0: 0
 
 
  LS age: 1432
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 4.0.0.0 (Area-Local Opaque-Type/ID)
  Opaque Type: 4
  Opaque ID: 0
  Advertising Router: 1.1.1.9
  LS Seq Number: 80000007
  Checksum: 0xb916
  Length: 44
 
    Range Size: 8000
     Base-SID: 16000
    Algorithm0: 0
 
 
  LS age: 238
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 7.0.0.0 (Area-Local Opaque-Type/ID)
  Opaque Type: 7
  Opaque ID: 0
  Advertising Router: 1.1.1.1
  LS Seq Number: 80000008
  Checksum: 0xc3ca
  Length: 44
 
    Prefix type : Extended Prefix TLV
    Route Type: 1
    Prefix Length: 32
    AF: 0
    Flags: 0x40 (-|N|-|-|-|-|-|-)
    Address Prefix: 1.1.1.1
     Flags: 0x00 (-|-|-|-|-|-|-|-)
     MT-ID: 0
     Algorithm: 0
     SID: 1
 
  LS age: 495
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 7.0.0.0 (Area-Local Opaque-Type/ID)
  Opaque Type: 7
  Opaque ID: 0
  Advertising Router: 1.1.1.2
  LS Seq Number: 80000008
  Checksum: 0xe5a5
  Length: 44
 
    Prefix type : Extended Prefix TLV
    Route Type: 1
    Prefix Length: 32
    AF: 0
    Flags: 0x40 (-|N|-|-|-|-|-|-)
    Address Prefix: 1.1.1.2
     Flags: 0x00 (-|-|-|-|-|-|-|-)
     MT-ID: 0
     Algorithm: 0
     SID: 2
 
  LS age: 428
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 7.0.0.0 (Area-Local Opaque-Type/ID)
  Opaque Type: 7
  Opaque ID: 0
  Advertising Router: 1.1.1.4
  LS Seq Number: 80000008
  Checksum: 0x2a5b
  Length: 44
 
    Prefix type : Extended Prefix TLV
    Route Type: 1
    Prefix Length: 32
    AF: 0
    Flags: 0x40 (-|N|-|-|-|-|-|-)
    Address Prefix: 1.1.1.4
     Flags: 0x00 (-|-|-|-|-|-|-|-)
     MT-ID: 0
     Algorithm: 0
     SID: 4
 
  LS age: 1658
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 7.0.0.0 (Area-Local Opaque-Type/ID)
  Opaque Type: 7
  Opaque ID: 0
  Advertising Router: 1.1.1.6
  LS Seq Number: 80000007
  Checksum: 0x2261
  Length: 44
 
    Prefix type : Extended Prefix TLV
    Route Type: 1
    Prefix Length: 32
    AF: 0
    Flags: 0x40 (-|N|-|-|-|-|-|-)
    Address Prefix: 1.1.1.6
     Flags: 0x00 (-|-|-|-|-|-|-|-)
     MT-ID: 0
     Algorithm: 0
     SID: 3
 
  LS age: 491
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 7.0.0.0 (Area-Local Opaque-Type/ID)
  Opaque Type: 7
  Opaque ID: 0
  Advertising Router: 1.1.1.8
  LS Seq Number: 80000008
  Checksum: 0x6418
  Length: 44
 
    Prefix type : Extended Prefix TLV
    Route Type: 1
    Prefix Length: 32
    AF: 0
    Flags: 0x40 (-|N|-|-|-|-|-|-)
    Address Prefix: 1.1.1.8
     Flags: 0x00 (-|-|-|-|-|-|-|-)
     MT-ID: 0
     Algorithm: 0
     SID: 5
 
  LS age: 1082
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 7.0.0.0 (Area-Local Opaque-Type/ID)
  Opaque Type: 7
  Opaque ID: 0
  Advertising Router: 1.1.1.9
  LS Seq Number: 80000007
  Checksum: 0x88f1
  Length: 44
 
    Prefix type : Extended Prefix TLV
    Route Type: 1
    Prefix Length: 32
    AF: 0
    Flags: 0x40 (-|N|-|-|-|-|-|-)
    Address Prefix: 1.1.1.9
     Flags: 0x00 (-|-|-|-|-|-|-|-)
     MT-ID: 0
     Algorithm: 0
     SID: 6
 
  LS age: 1668
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 8.0.39.18 (Area-Local Opaque-Type/ID)
  Opaque Type: 8
  Opaque ID: 10002
  Advertising Router: 1.1.1.6
  LS Seq Number: 80000007
  Checksum: 0x3675
  Length: 48
 
    Link Type: 2
    Link ID: 29.1.1.1
    Link Data: 29.1.1.2
     Flags: 0x60 (-|V|L|-|-|-|-|-)
     MT-ID: 0
     Weight: 0
     SID: 24321
 
 
  LS age: 488
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 8.0.39.25 (Area-Local Opaque-Type/ID)
  Opaque Type: 8
  Opaque ID: 10009
  Advertising Router: 1.1.1.1
  LS Seq Number: 80000008
  Checksum: 0xa517
  Length: 52
 
    Link Type: 2
    Link ID: 10.1.2.1
    Link Data: 10.1.2.1
     Flags: 0x60 (-|V|L|-|-|-|-|-)
     MT-ID: 0
     Weight: 0
     NBR ID: 1.1.1.2
     SID: 24320
 
 
  LS age: 515
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 8.0.39.25 (Area-Local Opaque-Type/ID)
  Opaque Type: 8
  Opaque ID: 10009
  Advertising Router: 1.1.1.2
  LS Seq Number: 80000008
  Checksum: 0x17b5
  Length: 48
 
    Link Type: 2
    Link ID: 10.1.2.1
    Link Data: 10.1.2.2
     Flags: 0x60 (-|V|L|-|-|-|-|-)
     MT-ID: 0
     Weight: 0
     SID: 24320
 
 
  LS age: 1321
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 8.0.39.28 (Area-Local Opaque-Type/ID)
  Opaque Type: 8
  Opaque ID: 10012
  Advertising Router: 1.1.1.8
  LS Seq Number: 80000007
  Checksum: 0x0c82
  Length: 52
 
    Link Type: 2
    Link ID: 10.8.9.1
    Link Data: 10.8.9.1
     Flags: 0x60 (-|V|L|-|-|-|-|-)
     MT-ID: 0
     Weight: 0
     NBR ID: 1.1.1.9
     SID: 24322
 
 
  LS age: 372
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 8.0.39.28 (Area-Local Opaque-Type/ID)
  Opaque Type: 8
  Opaque ID: 10012
  Advertising Router: 1.1.1.9
  LS Seq Number: 80000008
  Checksum: 0x6640
  Length: 48
 
    Link Type: 2
    Link ID: 10.8.9.1
    Link Data: 10.8.9.2
     Flags: 0x60 (-|V|L|-|-|-|-|-)
     MT-ID: 0
     Weight: 0
     SID: 24320
 
 
  LS age: 1678
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 8.0.39.31 (Area-Local Opaque-Type/ID)
  Opaque Type: 8
  Opaque ID: 10015
  Advertising Router: 1.1.1.1
  LS Seq Number: 80000007
  Checksum: 0x7d2d
  Length: 52
 
    Link Type: 2
    Link ID: 10.1.6.1
    Link Data: 10.1.6.1
     Flags: 0x60 (-|V|L|-|-|-|-|-)
     MT-ID: 0
     Weight: 0
     NBR ID: 1.1.1.6
     SID: 24321
 
 
  LS age: 338
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 8.0.39.32 (Area-Local Opaque-Type/ID)
  Opaque Type: 8
  Opaque ID: 10016
  Advertising Router: 1.1.1.4
  LS Seq Number: 80000008
  Checksum: 0x890c
  Length: 52
 
    Link Type: 2
    Link ID: 10.4.9.1
    Link Data: 10.4.9.1
     Flags: 0x60 (-|V|L|-|-|-|-|-)
     MT-ID: 0
     Weight: 0
     NBR ID: 1.1.1.9
     SID: 24322
 
 
  LS age: 1488
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 8.0.39.32 (Area-Local Opaque-Type/ID)
  Opaque Type: 8
  Opaque ID: 10016
  Advertising Router: 1.1.1.6
  LS Seq Number: 80000007
  Checksum: 0x3387
  Length: 48
 
    Link Type: 2
    Link ID: 10.1.6.1
    Link Data: 10.1.6.2
     Flags: 0x60 (-|V|L|-|-|-|-|-)
     MT-ID: 0
     Weight: 0
     SID: 24320
 
 
  LS age: 1252
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 8.0.39.33 (Area-Local Opaque-Type/ID)
  Opaque Type: 8
  Opaque ID: 10017
  Advertising Router: 1.1.1.9
  LS Seq Number: 80000007
  Checksum: 0xe2c6
  Length: 48
 
    Link Type: 2
    Link ID: 10.4.9.1
    Link Data: 10.4.9.2
     Flags: 0x60 (-|V|L|-|-|-|-|-)
     MT-ID: 0
     Weight: 0
     SID: 24321
 
 
  LS age: 1329
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 8.0.39.37 (Area-Local Opaque-Type/ID)
  Opaque Type: 8
  Opaque ID: 10021
  Advertising Router: 1.1.1.4
  LS Seq Number: 80000007
  Checksum: 0x7b32
  Length: 48
 
    Link Type: 2
    Link ID: 20.1.1.1
    Link Data: 20.1.1.2
     Flags: 0x60 (-|V|L|-|-|-|-|-)
     MT-ID: 0
     Weight: 0
     SID: 24320
 
 
  LS age: 145
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 8.0.39.38 (Area-Local Opaque-Type/ID)
  Opaque Type: 8
  Opaque ID: 10022
  Advertising Router: 1.1.1.2
  LS Seq Number: 80000008
  Checksum: 0x8216
  Length: 52
 
    Link Type: 2
    Link ID: 20.1.1.1
    Link Data: 20.1.1.1
     Flags: 0x60 (-|V|L|-|-|-|-|-)
     MT-ID: 0
     Weight: 0
     NBR ID: 1.1.1.4
     SID: 24322
 
 
  LS age: 1378
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 8.0.39.42 (Area-Local Opaque-Type/ID)
  Opaque Type: 8
  Opaque ID: 10026
  Advertising Router: 1.1.1.6
  LS Seq Number: 80000007
  Checksum: 0xeb63
  Length: 52
 
    Link Type: 2
    Link ID: 50.1.1.2
    Link Data: 50.1.1.2
     Flags: 0x60 (-|V|L|-|-|-|-|-)
     MT-ID: 0
     Weight: 0
     NBR ID: 1.1.1.8
     SID: 24322
 
 
  LS age: 1435
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 8.0.39.47 (Area-Local Opaque-Type/ID)
  Opaque Type: 8
  Opaque ID: 10031
  Advertising Router: 1.1.1.2
  LS Seq Number: 80000007
  Checksum: 0x304d
  Length: 52
 
    Link Type: 2
    Link ID: 29.1.1.1
    Link Data: 29.1.1.1
     Flags: 0x60 (-|V|L|-|-|-|-|-)
     MT-ID: 0
     Weight: 0
     NBR ID: 1.1.1.6
     SID: 24321
 
 
  LS age: 1529
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 8.0.39.62 (Area-Local Opaque-Type/ID)
  Opaque Type: 8
  Opaque ID: 10046
  Advertising Router: 1.1.1.4
  LS Seq Number: 80000007
  Checksum: 0x8bbc
  Length: 52
 
    Link Type: 2
    Link ID: 45.1.1.2
    Link Data: 45.1.1.2
     Flags: 0x60 (-|V|L|-|-|-|-|-)
     MT-ID: 0
     Weight: 0
     NBR ID: 1.1.1.8
     SID: 24321
 
 
  LS age: 1661
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 8.0.39.62 (Area-Local Opaque-Type/ID)
  Opaque Type: 8
  Opaque ID: 10046
  Advertising Router: 1.1.1.8
  LS Seq Number: 80000007
  Checksum: 0xf06d
  Length: 48
 
    Link Type: 2
    Link ID: 45.1.1.2
    Link Data: 45.1.1.1
     Flags: 0x60 (-|V|L|-|-|-|-|-)
     MT-ID: 0
     Weight: 0
     SID: 24320
 
 
  LS age: 1021
  Options: 0x22 (-|-|DC|-|-|-|E|-)
  LS Type: Area-Local Opaque-LSA
  Link State ID: 8.0.39.67 (Area-Local Opaque-Type/ID)
  Opaque Type: 8
  Opaque ID: 10051
  Advertising Router: 1.1.1.8
  LS Seq Number: 80000007
  Checksum: 0x5eef
  Length: 48
 
    Link Type: 2
    Link ID: 50.1.1.2
    Link Data: 50.1.1.1
     Flags: 0x60 (-|V|L|-|-|-|-|-)
     MT-ID: 0
     Weight: 0
     SID: 24321
 
 
PE1#
 Validation 4
PE1#show mpls vrf-table
Output for IPv4 VRF table with id: 2
 Primary FTN entry with FEC: 202.1.1.0/24, id: 1, row status: Active, Tunnel-Policy: N/A
  Owner: BGP, distance: 0, Action-type: Redirect to Tunnel, Exp-bits: 0x0, Incoming DSCP: none
  Transport Tunnel id: 1, Protected LSP id: 0, QoS Resource id: 0, Description: N/A, Color: 1
     Cross connect ix: 9, in intf: - in label: 0 out-segment ix: 10
      Owner: BGP, Persistent: No, Admin Status: Up, Oper Status: Up
       Out-segment with ix: 10, owner: BGP, Stale: NO, BGP out intf: xe13, transport out intf: xe7, out label: 24960
    Nexthop addr: 1.1.1.9        cross connect ix: 9, op code: Push and Lookup
PE1#
Explicit Path Policy
PE1
 
| PE1#configure terminal | Enter configure mode. | 
| PE1(config)#interface lo | Enter interface mode. | 
| PE1(config-if)#ip address 1.1.1.1/32 secondary | Configure the IP address of the interface. | 
| PE1(config-if)#prefix-sid index 1 | Configure prefix sid index value. | 
| PE1(config-if)#exit | Exit interface mode. | 
| PE1(config)#interface eth1 | Enter interface mode. | 
| PE1(config-if)#ip address 10.1.2.1/24 | Configure the IP address of the interface. | 
| PE1(config-if)#label-switching | Enable label switching. | 
| PE1(config-if)#exit | Exit interface mode | 
| PE1(config)#interface eth2 | Enter interface mode. | 
| PE1(config-if)#ip address 10.1.3.1/24 | Configure the IP address of the interface. | 
| PE1(config-if)#label-switching | Enable label switching. | 
| PE1(config-if)#exit | Exit interface mode. | 
| PE1(config)#router ospf 1 | Set the routing process ID . | 
| PE1(config-router)#ospf router-id 1.1.1.1 | Configuring OSPF router-id | 
| PE1(config-router)#network 1.1.1.1/32 area 0.0.0.0 | Configure OSPF network in area 0 | 
| PE1(config-router)#network 10.1.2.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| PE1(config-router)#network 10.1.3.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| PE1(config-router)#segment-routing mpls | Enable segment routing under router OSPF process. | 
| PE1(config-router)#exit | Exit router mode. | 
| PE1(config)#ip vrf vrf1 | Configure VPN Routing/Forwarding instance | 
| PE1(config-vrf)#rd 100:1 | route distinguisher | 
| PE1(config-vrf)#route-target both 200:1 | route target | 
| PE1(config-vrf)#exit | Exit VRF mode | 
| PE1(config)#interface eth3 | Enter interface mode | 
| PE1(config-if)#ip vrf forwarding vrf1 | Enable IP VRF forwarding on the interface | 
| PE1(config-if)#ip address 177.1.1.1/24 | Configure the IP address for the non-default VRF interface. | 
| PE1(config-if)#exit | Exit interface mode. | 
| PE1(config)#router bgp 100 | Configure router BGP in AS 100 | 
| PE1(config-router)#neighbor 1.1.1.6 remote-as 100 | Configure neighbor in remote-as 100 | 
| PE1(config-router)#neighbor 1.1.1.6 update-source lo | Configure neighbor with update-source loopback | 
| PE1(config-router)#address-family vpnv4 unicast | Enter VPNv4  Address family mode | 
| PE1(config-router-af)#neighbor 1.1.1.6 activate | Activate VPNv4 neighbor | 
| PE1(config-router-af)#exit-address-family | Exit from Address Family configuration mode | 
| PE1(config-router)#address-family ipv4 vrf vrf1 | Enter address-family VRF | 
| PE1(config-router-af)#redistribute connected | Redistribute all the connected VRF routes | 
| PE1(config-router-af)#exit-address-family | Exit from Address Family configuration mode | 
| PE1(config-router)#exit | Exit router mode | 
| PE1(config)#commit  | Commit candidate configuration to be running configuration | 
| PE1(config)#exit | Exit configuration mode | 
Explicit Path Configuration on PE1
 
| PE1(config)#segment-routing | Enter segment-routing mode | 
| PE1(config-sr)#traffic-engineering  | Enter segment-routing traffic-engineering mode | 
| PE1(config-sr-te)#segment-list p1-p3-pe2 | Configure a segment-list  | 
| PE1(config-sr-sl)#index 10 segment-type-1 16002 | Configure the segment-list entry with index 10 and label as prefix-sid of P2 | 
| PE1(config-sr-sl)#index 20 segment-type-1 16004 | Configure the segment-list entry with index 10 and label as prefix-sid of P4 | 
| PE1(config-sr-sl)#index 30 segment-type-1 16006 | Configure the segment-list entry with index 10 and label as prefix-sid of PE2 | 
| PE1(config-sr-sl)#exit-sr-sl | Exit router mode | 
| PE1(config-sr-te)#policy to-pe2 | Configure an SR-policy | 
| PE1(config-sr-pol)#color 111 end-point 1.1.1.6 | Configure SR-policy with key ie., color and end-point | 
| PE1(config-sr-pol)#candidate-path 1 | Configure a candidate-path for the SR-policy | 
| PE1(config-sr-pol-cp)#preference 1000 | Configure the preference value for the candidate-path | 
| PE1(config-sr-pol-cp)#explicit segment-list p1-p3-pe2 | Configure the candidate-path as explicit-path with segment-list | 
| PE1(config-sr-pol-cp)#exit | Exit segment-routing mode | 
| PE1(config)#exit | Exit configure terminal mode | 
| PE1(config)#commit | Commit candidate configuration to be running configuration | 
P1
 
| P1#configure terminal | Enter configure mode. | 
| P1(config)#interface lo | Enter interface mode. | 
| P1(config-if)#ip address 1.1.1.2/32 secondary | Configure the IP address of the interface. | 
| P1(config-if)#prefix-sid index 2 | Configure prefix sid index value. | 
| P1(config-if)#exit | Exit interface mode. | 
| P1(config)#interface eth1 | Enter interface mode. | 
| P1(config-if)#ip address 10.1.2.2/24 | Configure the IP address of the interface. | 
| P1(config-if)#label-switching | Enable label switching. | 
| P1(config-if)#exit | Exit interface mode. | 
| P1(config)#interface eth2 | Enter interface mode. | 
| P1(config-if)#ip address 10.2.4.1/24 | Configure the IP address of the interface. | 
| P1(config-if)#label-switching | Enable label switching. | 
| P1(config-if)#exit | Exit interface mode. | 
| P1(config)#interface eth3 | Enter interface mode. | 
| P1(config-if)#ip address 10.2.3.1/24 | Configure the IP address of the interface. | 
| P1(config-if)#label-switching | Enable label switching. | 
| P1(config-if)#exit | Exit interface mode. | 
| P1(config)#router ospf 1 | Set the routing process ID . | 
| P1(config-router)#ospf router-id 1.1.1.2 | Configure OSPF router-id | 
| P1(config-router)#network 1.1.1.2/32 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P1(config-router)#network 10.1.2.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P1(config-router)#network 10.2.3.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P1(config-router)#network 10.2.4.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P1(config-router)#segment-routing mpls | Enable segment routing under router process. | 
| P1(config-router)#exit | Exit router mode. | 
| P1(config)#exit | Exit configure terminal mode | 
P2
 
| P2#configure terminal | Enter configure mode. | 
| P2(config)#interface lo | Enter interface mode. | 
| P2(config-if)#ip address 1.1.1.3/32 secondary | Configure the IP address of the interface. | 
| P2(config-if)#prefix-sid index 3 | Configure prefix SID index value. | 
| P2(config-if)#exit | Exit interface mode. | 
| P2(config)#interface eth2 | Enter interface mode. | 
| P2(config-if)#ip address 10.1.3.2/24 | Configure the IP address of the interface. | 
| P2(config-if)#label-switching | Enable label switching. | 
| P2(config-if)#exit | Exit interface mode. | 
| P2(config)#interface eth1 | Enter interface mode. | 
| P2(config-if)#ip address 10.3.5.1/24 | Configure the IP address of the interface. | 
| P2(config-if)#label-switching | Enable label switching. | 
| P2(config-if)#exit | Exit interface mode. | 
| P2(config)#interface eth3 | Enter interface mode. | 
| P2(config-if)#ip address 10.2.3.2/24 | Configure the IP address of the interface. | 
| P2(config-if)#label-switching | Enable label switching. | 
| P2(config-if)#exit | Exit interface mode. | 
| P2(config)#router ospf 1 | Set the routing process ID . | 
| P2(config-router)#ospf router-id 1.1.1.3 | Configure OSPF router-id | 
| P2(config-router)#network 1.1.1.3/32 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P2(config-router)#network 10.1.3.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P2(config-router)#network 10.2.3.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P2(config-router)#network 10.3.5.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P2(config-router)#segment-routing mpls | Enable segment routing under router process. | 
| P2(config-router)#exit | Exit router mode. | 
| P2(config)#exit | Exit configure terminal mode | 
| P1(config)#commit | Commit candidate configuration to be running configuration | 
P3
 
| P3#configure terminal | Enter configure mode. | 
| P3(config)#interface lo | Enter interface mode. | 
| P3(config-if)#ip address 1.1.1.4/32 secondary | Configure the IP address of the interface. | 
| P3(config-if)#prefix-sid index 4 | Configure prefix SID index value. | 
| P3(config-if)#exit | Exit interface mode. | 
| P3(config)#interface eth2 | Enter interface mode. | 
| P3(config-if)#ip address 10.2.4.2/24 | Configure the IP address of the interface. | 
| P3(config-if)#label-switching | Enable label switching. | 
| P3(config-if)#exit | Exit interface mode. | 
| P3(config)#interface eth3 | Enter interface mode. | 
| P3(config-if)#ip address 10.4.5.1/24 | Configure the IP address of the interface. | 
| P3(config-if)#label-switching | Enable label switching. | 
| P3(config-if)#exit | Exit interface mode. | 
| P3(config)#interface eth1 | Enter interface mode. | 
| P3(config-if)#ip address 10.4.6.1/24 | Configure the IP address of the interface. | 
| P3(config-if)#label-switching | Enable label switching. | 
| P3(config-if)#exit | Exit interface mode. | 
| P3(config)#router ospf 1 | Set the routing process ID . | 
| P3(config-router)#ospf router-id 1.1.1.4 | Configure OSPF router-id | 
| P3(config-router)#network 1.1.1.4/32 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P3(config-router)#network 10.2.4.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P3(config-router)#network 10.4.5.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P3(config-router)#network 10.4.6.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P3(config-router)#segment-routing mpls | Enable segment routing under router process. | 
| P3(config-router)#exit | Exit router mode. | 
| P3(config)#exit | Exit configure terminal mode | 
| P3(config)#commit	 | 	Commit candidate configuration to be running configuration | 
P4
 
| P4#configure terminal | Enter configure mode. | 
| P4(config)#interface lo | Enter interface mode. | 
| P4(config-if)#ip address 1.1.1.5/32 secondary | Configure the IP address of the interface. | 
| P4(config-if)#prefix-sid index 5 | Configure prefix sid index value. | 
| P4(config-if)#exit | Exit interface mode. | 
| P4(config)#interface eth1 | Enter interface mode. | 
| P4(config-if)#ip address 10.3.5.2/24 | Configure the IP address of the interface. | 
| P4(config-if)#label-switching | Enable label switching. | 
| P4(config-if)#exit | Exit interface mode. | 
| P4(config)#interface eth3 | Enter interface mode. | 
| P4(config-if)#ip address 10.4.5.2/24 | Configure the IP address of the interface. | 
| P4(config-if)#label-switching | Enable label switching. | 
| P4(config-if)#exit | Exit interface mode. | 
| P4(config)#interface eth2 | Enter interface mode. | 
| P4(config-if)#ip address 10.5.6.1/24 | Configure the IP address of the interface. | 
| P4(config-if)#label-switching | Enable label switching. | 
| P4(config-if)#exit | Exit interface mode. | 
| P4(config)#router ospf 1 | Set the routing process ID . | 
| P4(config-router)#ospf router-id 1.1.1.5 | Configure OSPF router-id | 
| P4(config-router)#network 1.1.1.5/32 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P4(config-router)#network 10.3.5.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P4(config-router)#network 10.4.5.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P4(config-router)#network 10.5.6.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| P4(config-router)#segment-routing mpls | Enable segment routing under router process. | 
| P4(config-router)#exit | Exit router mode. | 
| P4(config)#exit | Exit configure terminal mode | 
| P4(config)#commit | Commit candidate configuration to be running configuration | 
PE2
 
| PE2#configure terminal | Enter configure mode. | 
| PE2(config)#interface lo | Enter interface mode. | 
| PE2(config-if)#ip address 1.1.1.6/32 secondary | Configure the IP address of the interface. | 
| PE2(config-if)#prefix-sid index 6 | Configure prefix SID index value. | 
| PE2(config-if)#exit | Exit interface mode. | 
| PE2(config)#interface eth1 | Enter interface mode. | 
| PE2(config-if)#ip address 10.4.6.2/24 | Configure the IP address of the interface. | 
| PE2(config-if)#label-switching | Enable label switching. | 
| PE2(config-if)#exit | Exit interface mode | 
| PE2(config)#interface eth2 | Enter interface mode. | 
| PE2(config-if)#ip address 10.5.6.2/24 | Configure the IP address of the interface. | 
| PE2(config-if)#label-switching | Enable label switching. | 
| PE2(config-if)#exit | Exit interface mode. | 
| PE2(config)#router ospf 1 | Set the routing process ID . | 
| PE2(config-router)#ospf router-id 1.1.1.6 | Configuring OSPF router-id | 
| PE2(config-router)#network 1.1.1.6/32 area 0.0.0.0 | Configure OSPF network in area 0 | 
| PE2(config-router)#network 10.4.6.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| PE2(config-router)#network 10.5.6.0/24 area 0.0.0.0 | Configure OSPF network in area 0 | 
| PE2(config-router)#segment-routing mpls | Enable segment routing under router OSPF process. | 
| PE2(config-router)#exit | Exit router mode. | 
| PE2(config)#ip vrf vrf1 | Configure VPN Routing/Forwarding instance | 
| PE2(config-vrf)#rd 100:1 | route distinguisher | 
| PE2(config-vrf)#route-target both 200:1 | route target | 
| PE2(config)#exit | Exit vrf mode | 
| PE2(config)#interface eth3 | Enter interface mode | 
| PE2(config-if)#ip vrf forwarding vrf1 | Enable IP VRF forwarding on the interface | 
| PE2(config-if)#ip address 202.1.1.2/24 | Configure the IP address of the non-default VRF interface. | 
| PE2(config-if)#exit | Exit interface mode. | 
| PE2(config)#router bgp 100 | Configure router BGP in AS 100 | 
| PE2(config-router)#neighbor 1.1.1.1 remote-as 100 | Configure neighbor in remote-as 100 | 
| PE2(config-router)#neighbor 1.1.1.1 update-source lo | Configure neighbor with update-source loopback | 
| PE2(config-router)#address-family vpnv4 unicast | Enter VPNv4 Address family mode | 
| PE2(config-router-af)#neighbor 1.1.1.1 activate | Activate VPNv4 neighbor | 
| PE2(config-router-af)#exit-address-family | Exit from Address Family configuration mode | 
| PE2(config-router)#address-family ipv4 vrf vrf1 | Enter address-family VRF | 
| PE2(config-router-af)#redistribute connected | Redistribute all the connected VRF routes | 
| PE2(config-router-af)#exit-address-family | Exit from Address Family configuration mode | 
| PE2(config-router)#exit | Exit router mode | 
| PE2(config)#exit | Exit router mode | 
| PE2(config)#commit | Commit candidate configuration to be running configuration | 
| PE2(config)#exit | Exit configuration mode | 
Validation 1
PE1#show ip ospf neighbor
 
Total number of full neighbors: 2
OSPF process 1 VRF(default):
Neighbor ID     Pri   State            Dead Time   Address         Interface           Instance ID
1.1.1.2           1   Full/Backup      00:00:38    10.1.2.2        eth1                     0
1.1.1.3           1   Full/Backup      00:00:38    10.1.3.2        eth2                    0
PE1#
Validation 2
PE1#show segment-routing policy
Policy                              Color       End-point        State       Forwarding-Info
to-pe2                              111         1.1.1.6          UP          3/16004/16006/eth1
 
PE1#show segment-routing policy detail
Policy-Name: to-pe2    Color 111    End-point 1.1.1.6          Tunnel-ID: 1
  Admin-Status: UP    Oper-Status: UP for 00:08:05
  State Transition Count: 1
  CSPF Retry Limit: 100    CSPF Retry Interval: 10
  Binding SID :
   BSID: 25600
   Alloc mode: Dynamic
   Oper State: Programmed
 
  CP ID: 1, Active
    Preference: 1000    Path Type: Explicit    CP Origin: Local
    Segment List:
    Total no. of segments: 3
     Segment0[LABEL]: Label :16002
     Segment1[LABEL]: Label :16004
     Segment2[LABEL]: Label :16006
    Out-if: eth1          Out-label-stack: 3/16004/16006
    Attributes:
      Configured:
      Explicit segment-list Name: p1-p3-pe2
 
PE1#show segment-routing policy candidate-path origin local
 
Policy-Name                                                  Color       End-point        State       Forwarding-Info
to-pe2                                                       111         1.1.1.6          UP          3/16004/16006/eth1
  CP ID: 1, Active
    Preference: 1000    Path Type: Explicit    CP Origin: Local
    CP state: Valid
    Segment List:
    Total no. of segments: 3
     Segment0[LABEL]: Label :16002
     Segment1[LABEL]: Label :16004
     Segment2[LABEL]: Label :16006
    Out-if: eth1          Out-label-stack: 3/16004/16006
    Attributes:
      Configured:
      Explicit segment-list Name: p1-p3-pe2
 
 
PE1#show mpls ilm-table
Codes: > - installed ILM, * - selected ILM, p - stale ILM
        K - CLI ILM, T - MPLS-TP, s - Stitched ILM
       S - SNMP, L - LDP, R - RSVP, C - CRLDP
       B - BGP , K - CLI , V - LDP_VC, I - IGP_SHORTCUT
       O - OSPF/OSPF6 SR, i - ISIS SR, k - SR CLI
       P - SR Policy, U - unknown
 
Code    FEC/VRF/L2CKT    ILM-ID      In-Label    Out-Label   In-Intf    Out-Intf/VRF       Nexthop                   LSP-Type
   O>   10.1.2.2/32        1           24320       3           N/A        eth1              10.1.2.2                  LSP_DEFAULT
   O>   1.1.1.3/32         5           16003       3           N/A        eth2             10.1.3.2                  LSP_DEFAULT
   O>   1.1.1.2/32         2           16002       3           N/A        eth1              10.1.2.2                  LSP_DEFAULT
   O>   1.1.1.5/32         7           16005       16005       N/A        eth2             10.1.3.2                  LSP_DEFAULT
   O>   1.1.1.4/32         6           16004       16004       N/A        eth1              10.1.2.2                  LSP_DEFAULT
   O>   1.1.1.6/32         8           16006       16006       N/A        eth2             10.1.3.2                  LSP_DEFAULT
   B>   vrf1               9           24960       Nolabel     N/A        vrf1             N/A                       LSP_DEFAULT
   O>   10.1.3.2/32        4           24321       3           N/A        eth2             10.1.3.2                  LSP_DEFAULT
   P>   1.1.1.6/32         3           25600       16004       N/A        eth1              10.1.2.2                  LSP_DEFAULT
PE1# 
 
PE1#show mpls ftn-table 1.1.1.6/32
 Primary FTN entry with FEC: 1.1.1.6/32, id: 2, row status: Active, Tunnel-Policy: N/A
  Owner: SR_POLICY, distance: 0, Action-type: Redirect to Tunnel, Exp-bits: 0x0, Incoming DSCP: none
  Tunnel id: 1, Protected LSP id: 0, QoS Resource id: 0, Description: N/A, Color: 0
     Cross connect ix: 2, in intf: - in label: 0 out-segment ix: 3
      Owner: N/A, Persistent: No, Admin Status: Up, Oper Status: Up
       Out-segment with ix: 3, owner: N/A, Stale: NO, out intf: eth1, out label: 3\16004\16006
    Nexthop addr: 10.1.2.2        cross connect ix: 2, op code: Push
 
 
 Primary FTN entry with FEC: 1.1.1.6/32, id: 6, row status: Active, Tunnel-Policy: N/A
  Owner: OSPF-SR, distance: 110, Action-type: Redirect to Tunnel, Exp-bits: 0x0, Incoming DSCP: none
  Tunnel id: 0, Protected LSP id: 0, QoS Resource id: 0, Description: N/A, Color: 0
     Cross connect ix: 7, in intf: - in label: 0 out-segment ix: 11
      Owner: OSPF-SR, Persistent: No, Admin Status: Down, Oper Status: Down
       Out-segment with ix: 11, owner: OSPF-SR, Stale: NO, out intf: eth2, out label: 16006
    Nexthop addr: 10.1.3.2        cross connect ix: 7, op code: Push
 
PE1# 
 
PE1#show mpls forwarding-table
Codes: > - installed FTN, * - selected FTN, p - stale FTN,
       B - BGP FTN, K - CLI FTN, t - tunnel, P - SR Policy FTN,
       L - LDP FTN, R - RSVP-TE FTN, S - SNMP FTN, I - IGP-Shortcut,
       U - unknown FTN, O - SR-OSPF FTN, i - SR-ISIS FTN, k - SR-CLI FTN
 
Code    FEC                 FTN-ID    Nhlfe-ID  Tunnel-id   Pri   LSP-Type     Out-Label    Out-Intf    ELC   Nexthop
   O>   1.1.1.2/32          1         2         0           Yes   LSP_DEFAULT  3            eth1         No    10.1.2.2
   O>   1.1.1.3/32          3         6         0           Yes   LSP_DEFAULT  3            eth2        No    10.1.3.2
   O>   1.1.1.4/32          4         8         0           Yes   LSP_DEFAULT  16004        eth1         No    10.1.2.2
   O>   1.1.1.5/32          5         10        0           Yes   LSP_DEFAULT  16005        eth2        No    10.1.3.2
   P>   1.1.1.6/32          2         4         1           Yes   LSP_DEFAULT  3            eth1         No    10.1.2.2
   O    1.1.1.6/32          6         11        0           Yes   LSP_DEFAULT  16006        eth2        No    10.1.3.2
PE1#
Validation 3
PE1#show ip bgp vpnv4 all summary
BGP router identifier 1.1.1.1, local AS number 100
BGP table version is 2
1 BGP AS-PATH entries
0 BGP community entries
 
Neighbor                 V   AS   MsgRcv    MsgSen TblVer   InQ   OutQ    Up/Down   State/PfxRcd
1.1.1.6                  4   100   94         97       2      0      0  00:38:50               1
 
Total number of neighbors 1
 
Total number of Established sessions 1
PE1#
 
PE1#show mpls vrf-table
Output for IPv4 VRF table with id: 2
 Primary FTN entry with FEC: 202.1.1.0/24, id: 1, row status: Active, Tunnel-Policy: N/A
  Owner: BGP, distance: 0, Action-type: Redirect to Tunnel, Exp-bits: 0x0, Incoming DSCP: none
  Transport Tunnel id: 1, Protected LSP id: 0, QoS Resource id: 0, Description: N/A, Color: 111
     Cross connect ix: 8, in intf: - in label: 0 out-segment ix: 12
      Owner: BGP, Persistent: No, Admin Status: Up, Oper Status: Up
       Out-segment with ix: 12, owner: BGP, Stale: NO, BGP out intf: xe7, transport out intf: xe7, out label: 24960
    Nexthop addr: 1.1.1.6        cross connect ix: 8, op code: Push and Lookup