!! IOS XR Configuration 7.9.2
!! Last configuration change at Sat Jul 12 23:03:50 2025 by user1
!
hostname PE1
username user1
 group root-lr
 group cisco-support
 secret 10 $6$yJVwfJ6z8mj0f...$MhYvghpiDAq5.BLt6z3Q8iiGwXOSesjwBB6jiBkwK8yJOr8S5.VUvKJ.wCVBWIoFOt1MqQEE4cCoPhPyOfPyK1
!
vrf ACME
 rd 100:1
 address-family ipv4 unicast
  import route-target
   100:1
  !
  export route-target
   100:1
  !
 !
 address-family ipv6 unicast
  import route-target
   100:1
  !
  export route-target
   100:1
  !
 !
!
call-home
 service active
 contact smart-licensing
 profile CiscoTAC-1
  active
  destination transport-method email disable
  destination transport-method http
 !
!
interface Loopback0
 no shutdown
 ipv4 address 10.1.1.1 255.255.255.255
 ipv6 address 2001:1ab::1/128
!
interface MgmtEth0/RP0/CPU0/0
 no shutdown
 shutdown
!
interface GigabitEthernet0/0/0/0
 no shutdown
 description link to PE6
 ipv4 address 10.10.16.1 255.255.255.0
 ipv6 address 2001:1ab:16::1/64
!
interface GigabitEthernet0/0/0/1
 no shutdown
 description link to CE1
 vrf ACME
 ipv4 address 172.16.1.1 255.255.255.252
 ipv6 address 2001:ce1::1/126
!
interface GigabitEthernet0/0/0/2
 no shutdown
 description link to P1
 ipv4 address 10.10.17.1 255.255.255.0
 ipv6 address 2001:1ab:17::1/64
!
interface GigabitEthernet0/0/0/3
 no shutdown
 description link to PE2
 ipv4 address 10.10.12.1 255.255.255.0
 ipv6 address 2001:1ab:12::1/64
!
route-policy ALLOW-ALL
  pass
end-policy
!
router isis ISIS1
 is-type level-2-only
 net 49.0001.0100.0000.0001.00
 distribute link-state
 affinity-map RED bit-position 20
 affinity-map GREEN bit-position 10
 address-family ipv4 unicast
  metric-style wide
  advertise passive-only
  mpls traffic-eng level-2-only
  mpls traffic-eng router-id Loopback0
  segment-routing mpls sr-prefer
 !
 address-family ipv6 unicast
  metric-style wide
  advertise passive-only
  router-id Loopback0
  single-topology
  segment-routing mpls sr-prefer
 !
 flex-algo 140
  priority 255
  advertise-definition
  affinity include-all GREEN
 !
 flex-algo 150
  priority 255
  advertise-definition
  affinity include-all RED
 !
 flex-algo 160
  priority 255
  advertise-definition
  affinity exclude-any GREEN
 !
 interface Loopback0
  passive
  address-family ipv4 unicast
   prefix-sid index 1
   prefix-sid algorithm 140 index 141
   prefix-sid algorithm 150 index 151
   prefix-sid algorithm 160 index 161
  !
  address-family ipv6 unicast
   prefix-sid index 501
   prefix-sid algorithm 140 index 541
   prefix-sid algorithm 150 index 551
   prefix-sid algorithm 160 index 561
  !
 !
 interface GigabitEthernet0/0/0/0
  affinity flex-algo RED
  point-to-point
  address-family ipv4 unicast
  !
  address-family ipv6 unicast
  !
 !
 interface GigabitEthernet0/0/0/2
  affinity flex-algo GREEN
  point-to-point
  address-family ipv4 unicast
  !
  address-family ipv6 unicast
  !
 !
 interface GigabitEthernet0/0/0/3
  affinity flex-algo GREEN
  point-to-point
  address-family ipv4 unicast
  !
  address-family ipv6 unicast
  !
 !
!
router bgp 100
 address-family vpnv4 unicast
 !
 address-family vpnv6 unicast
 !
 neighbor-group RR
  remote-as 100
  update-source Loopback0
  address-family vpnv4 unicast
  !
  address-family vpnv6 unicast
  !
 !
 neighbor 10.1.1.9
  use neighbor-group RR
 !
 vrf ACME
  address-family ipv4 unicast
  !
  address-family ipv6 unicast
  !
  neighbor 172.16.1.2
   remote-as 65535
   address-family ipv4 unicast
    route-policy ALLOW-ALL in
    route-policy ALLOW-ALL out
    as-override
   !
  !
  neighbor 2001:ce1::2
   remote-as 65535
   address-family ipv6 unicast
    route-policy ALLOW-ALL in
    route-policy ALLOW-ALL out
    as-override
   !
  !
 !
!
segment-routing
 traffic-eng
  policy RED-LINKS
   color 50 end-point ipv4 10.1.1.4
   candidate-paths
    preference 100
     dynamic
     !
     constraints
      segments
       sid-algorithm 150
      !
     !
    !
   !
  !
  policy GREEN-LINKS
   color 40 end-point ipv4 10.1.1.4
   candidate-paths
    preference 100
     dynamic
     !
     constraints
      segments
       sid-algorithm 140
      !
     !
    !
   !
  !
  policy NO-GREEN-LINKS
   color 60 end-point ipv4 10.1.1.4
   candidate-paths
    preference 100
     dynamic
     !
     constraints
      segments
       sid-algorithm 160
      !
     !
    !
   !
  !
 !
!
end

