hostname R1 ! vrf definition test rd 1:2 route-target export 1:2 route-target import 1:2 ! address-family ipv4 exit-address-family ! mpls traffic-eng tunnels ! ! interface Loopback0 ip address 1.1.1.1 255.255.255.255 ip router isis ! interface GigabitEthernet1 vrf forwarding test ip address 192.168.1.1 255.255.255.0 negotiation auto ! interface GigabitEthernet2 ip address 12.0.0.1 255.255.255.0 ip router isis negotiation auto mpls traffic-eng tunnels isis network point-to-point ! interface GigabitEthernet3 ip address 13.0.0.1 255.255.255.0 ip router isis negotiation auto mpls traffic-eng tunnels isis network point-to-point ! segment-routing mpls ! set-attributes address-family ipv4 explicit-null exit-address-family ! ! connected-prefix-sid-map address-family ipv4 1.1.1.1/32 index 1 range 1 exit-address-family ! ! segment-routing traffic-eng interface GigabitEthernet3 metric 100 ! policy DYNAMIC color 20 end-point 4.4.4.4 candidate-paths preference 100 dynamic metric type te ! ! ! ! ! ! router isis net 49.0001.0000.0001.00 is-type level-1 metric-style wide distribute link-state segment-routing mpls segment-routing prefix-sid-map advertise-local mpls traffic-eng router-id Loopback0 mpls traffic-eng level-1 ! router bgp 1234 bgp router-id 1.1.1.1 bgp log-neighbor-changes no bgp default ipv4-unicast neighbor 4.4.4.4 remote-as 1234 neighbor 4.4.4.4 update-source Loopback0 ! address-family ipv4 exit-address-family ! address-family vpnv4 neighbor 4.4.4.4 activate neighbor 4.4.4.4 send-community both exit-address-family ! address-family ipv4 vrf test redistribute connected exit-address-family ! =================================================================== hostname R2 ! mpls traffic-eng tunnels ! ! interface Loopback0 ip address 2.2.2.2 255.255.255.255 ip router isis ! interface GigabitEthernet1 ip address 12.0.0.2 255.255.255.0 ip router isis negotiation auto mpls traffic-eng tunnels isis network point-to-point ! interface GigabitEthernet2 ip address 24.0.0.2 255.255.255.0 ip router isis negotiation auto mpls traffic-eng tunnels isis network point-to-point ! interface GigabitEthernet3 ip address 23.0.0.2 255.255.255.0 ip router isis negotiation auto mpls traffic-eng tunnels isis network point-to-point ! segment-routing mpls ! set-attributes address-family ipv4 explicit-null exit-address-family ! ! connected-prefix-sid-map address-family ipv4 2.2.2.2/32 index 2 range 1 exit-address-family ! ! segment-routing traffic-eng interface GigabitEthernet2 metric 100 ! router isis net 49.0001.0000.0002.00 is-type level-1 metric-style wide distribute link-state segment-routing mpls segment-routing prefix-sid-map advertise-local mpls traffic-eng router-id Loopback0 mpls traffic-eng level-1 ! =================================================================== hostname R3 ! mpls traffic-eng tunnels ! interface Loopback0 ip address 3.3.3.3 255.255.255.255 ip router isis ! interface GigabitEthernet1 ip address 13.0.0.3 255.255.255.0 ip router isis negotiation auto mpls traffic-eng tunnels isis network point-to-point ! interface GigabitEthernet2 ip address 34.0.0.3 255.255.255.0 ip router isis negotiation auto mpls traffic-eng tunnels isis network point-to-point ! interface GigabitEthernet3 ip address 23.0.0.3 255.255.255.0 ip router isis negotiation auto mpls traffic-eng tunnels isis network point-to-point ! segment-routing mpls ! set-attributes address-family ipv4 explicit-null exit-address-family ! ! connected-prefix-sid-map address-family ipv4 3.3.3.3/32 index 3 range 1 exit-address-family ! ! segment-routing traffic-eng interface GigabitEthernet1 metric 100 ! router isis net 49.0001.0000.0003.00 is-type level-1 metric-style wide distribute link-state segment-routing mpls segment-routing prefix-sid-map advertise-local mpls traffic-eng router-id Loopback0 mpls traffic-eng level-1 ======================================================== hostname R4 ! vrf definition test rd 1:2 route-target export 1:2 route-target import 1:2 ! address-family ipv4 exit-address-family ! mpls traffic-eng tunnels ! interface Loopback0 ip address 4.4.4.4 255.255.255.255 ip router isis ! interface GigabitEthernet1 ip address 24.0.0.4 255.255.255.0 ip router isis negotiation auto mpls traffic-eng tunnels isis network point-to-point ! interface GigabitEthernet2 vrf forwarding test ip address 192.168.4.4 255.255.255.0 negotiation auto ! interface GigabitEthernet3 ip address 34.0.0.4 255.255.255.0 ip router isis negotiation auto mpls traffic-eng tunnels isis network point-to-point ! segment-routing mpls ! set-attributes address-family ipv4 explicit-null exit-address-family ! ! connected-prefix-sid-map address-family ipv4 4.4.4.4/32 index 4 range 1 exit-address-family ! ! segment-routing traffic-eng interface GigabitEthernet1 metric 100 ! router isis net 49.0001.0000.0004.00 is-type level-1 metric-style wide distribute link-state segment-routing mpls segment-routing prefix-sid-map advertise-local mpls traffic-eng router-id Loopback0 mpls traffic-eng level-1 ! router bgp 1234 bgp router-id 4.4.4.4 bgp log-neighbor-changes no bgp default ipv4-unicast neighbor 1.1.1.1 remote-as 1234 neighbor 1.1.1.1 update-source Loopback0 ! address-family ipv4 exit-address-family ! address-family vpnv4 neighbor 1.1.1.1 activate neighbor 1.1.1.1 send-community both exit-address-family ! address-family ipv4 vrf test redistribute connected route-map COLOR exit-address-family ! route-map COLOR permit 10 set extcommunity color 20 !