!! IOS XR Configuration 7.9.2
!! Last configuration change at Sat Jul 12 22:03:04 2025 by user1
!
hostname PE4
username user1
 group root-lr
 group cisco-support
 secret 10 $6$4INne0JqgeBf8e0.$r8xLBJXJnCaDuZaKZMUsNwDFBUEqPg3o5jmJOxzEYrN.Az7u7K2zNmLn91WJovBo0uaCqkGEn2TYWY2b8lgsl.
!
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.4 255.255.255.255
 ipv6 address 2001:1ab::4/128
!
interface MgmtEth0/RP0/CPU0/0
 no shutdown
 shutdown
!
interface GigabitEthernet0/0/0/0
 no shutdown
 description link to PE5
 ipv4 address 10.10.45.4 255.255.255.0
 ipv6 address 2001:1ab:45::4/64
!
interface GigabitEthernet0/0/0/1
 no shutdown
 description link to CE2
 vrf ACME
 ipv4 address 172.16.2.1 255.255.255.252
 ipv6 address 2001:ce2::1/126
!
interface GigabitEthernet0/0/0/2
 no shutdown
 description link to PE3
 ipv4 address 10.10.34.4 255.255.255.0
 ipv6 address 2001:1ab:34::4/64
!
interface GigabitEthernet0/0/0/3
 no shutdown
 description link to P2
 ipv4 address 10.10.48.4 255.255.255.0
 ipv6 address 2001:1ab:48::4/64
!
interface GigabitEthernet0/0/0/4
 no shutdown
 shutdown
!
interface GigabitEthernet0/0/0/5
 no shutdown
 shutdown
!
extcommunity-set opaque COLOR-40
  40
end-set
!
extcommunity-set opaque COLOR-50
  50
end-set
!
extcommunity-set opaque COLOR-60
  60
end-set
!
route-policy FROM-CE2
  if destination in (192.168.2.0/24) then
    set extcommunity color COLOR-40
  elseif destination in (192.168.3.0/24) then
    set extcommunity color COLOR-50
  elseif destination in (192.168.4.0/24) then
    set extcommunity color COLOR-60
  else
    pass
  endif
end-policy
!
route-policy ALLOW-ALL
  pass
end-policy
!
router isis ISIS1
 is-type level-2-only
 net 49.0001.0100.0000.0004.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
 !
 flex-algo 150
 !
 flex-algo 160
 !
 interface Loopback0
  passive
  address-family ipv4 unicast
   prefix-sid index 4
   prefix-sid algorithm 140 index 144
   prefix-sid algorithm 150 index 154
   prefix-sid algorithm 160 index 164
  !
  address-family ipv6 unicast
   prefix-sid index 504
   prefix-sid algorithm 140 index 544
   prefix-sid algorithm 150 index 554
   prefix-sid algorithm 160 index 564
  !
 !
 interface GigabitEthernet0/0/0/0
  point-to-point
  address-family ipv4 unicast
  !
  address-family ipv6 unicast
  !
 !
 interface GigabitEthernet0/0/0/2
  affinity flex-algo RED
  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.2.2
   remote-as 65535
   address-family ipv4 unicast
    route-policy FROM-CE2 in
    route-policy ALLOW-ALL out
    as-override
   !
  !
  neighbor 2001:ce2::2
   remote-as 65535
   address-family ipv6 unicast
    route-policy ALLOW-ALL in
    route-policy ALLOW-ALL out
    as-override
   !
  !
 !
!
segment-routing
!
end

