PE1:

enable
configure
 
hostname PE1 
 
ip vrf GOLD
 rd 2000:1
 route-target both 2000:100
 
ip vrf SILVER
 rd 2000:11
 route-target both 2000:200 
 
router ldp
 transport-address ipv4 1.1.1.1
 advertisement-mode downstream-unsolicited
 
router isis 1
 net 10.0000.0000.0001.00
 
router bgp 1000
 neighbor 2.2.2.2 remote-as 1000
 neighbor 2.2.2.2 update-source 1.1.1.1
 address-family vpnv4 unicast
  neighbor 2.2.2.2 activate
  exit-address-family
 address-family ipv4 vrf GOLD
  neighbor 192.168.0.2 remote-as 100
  neighbor 192.168.0.2 activate
  exit-address-family
 address-family ipv4 vrf SILVER
  neighbor 100.0.0.2 remote-as 300
  neighbor 100.0.0.2 activate
  exit-address-family
 
port ge0
 service-instance 4ge0
  encapsulation untagged
 
port ge1
 service-instance 4ge1
  encapsulation untagged
 
port ge2
 service-instance 4ge2
  encapsulation untagged 
 
interface loopback.0
 ip address 1.1.1.1/32
 ip router isis 1
 
interface 2ge0
 ip vrf forwarding GOLD
 connect port ge0 service-instance 4ge0
 ip address 192.168.0.1/24
 
interface 2ge1
 ip vrf forwarding SILVER
 connect port ge1 service-instance 4ge1
 ip address 100.0.0.1/24
 
interface 2ge2
 description To ECO2
 connect port ge2 service-instance 4ge2
 ip address 10.0.12.1/24
 ip router isis 1
 label-switching 
 ldp enable ipv4

PE2:

enable
configure
 
hostname PE2
 
ip vrf GOLD
 rd 2000:3
 route-target both 2000:100
 
ip vrf SILVER
 rd 2000:33
 route-target both 2000:200 
 
router ldp
 transport-address ipv4 4.4.4.4
 advertisement-mode downstream-unsolicited
 
router isis 1
 net 10.0000.0000.0004.00
 
router bgp 2000
 neighbor 3.3.3.3 remote-as 2000
 neighbor 3.3.3.3 update-source 4.4.4.4
 address-family vpnv4 unicast
  neighbor 3.3.3.3 activate
  exit-address-family
 address-family ipv4 vrf GOLD
  neighbor 192.168.1.2 remote-as 200
  neighbor 192.168.1.2 activate
  exit-address-family
 address-family ipv4 vrf SILVER
  neighbor 100.0.1.2 remote-as 400
  neighbor 100.0.1.2 activate
  exit-address-family 
 
port ge0
 service-instance 4ge0
  encapsulation untagged
 
port ge1
 service-instance 4ge1
  encapsulation untagged
 
port ge2
 service-instance 4ge2
  encapsulation untagged
  
interface loopback.0
 ip address 4.4.4.4/32
 ip router isis 1
 
interface 2ge0
 ip vrf forwarding GOLD
 connect port ge0 service-instance 4ge0
 ip address 192.168.1.1/24
 
interface 2ge1
 ip vrf forwarding SILVER
 connect port ge1 service-instance 4ge1
 ip address 100.0.1.1/24
 
interface 2ge2
 connect port ge2 service-instance 4ge2
 ip address 10.0.34.4/24
 ip router isis 1
 label-switching
 ldp enable ipv4

ASBR1:

enable
configure
 
hostname ASBR1
 
ip vrf SILVER
 rd 2000:11
 route-target both 2000:200
 
ip vrf GOLD
 rd 2000:1
 route-target both 2000:100 
 
router ldp
 transport-address ipv4 2.2.2.2
 advertisement-mode downstream-unsolicited
 
router isis 1
 net 10.0000.0000.0002.00
 
router bgp 1000
 neighbor 1.1.1.1 remote-as 1000
 address-family vpnv4 unicast
 neighbor 1.1.1.1 activate
 exit-address-family
 address-family ipv4 vrf SILVER
 neighbor 10.3.23.3 remote-as 2000
 neighbor 10.3.23.3 activate
 exit-address-family
 address-family ipv4 vrf GOLD
 neighbor 10.2.23.3 remote-as 2000
 neighbor 10.2.23.3 activate
 exit-address-family 
 
port ge0
 service-instance 4ge0
  encapsulation untagged
 
port ge1
 service-instance 4ge12
  encapsulation dot1q 231
  rewrite pop 1
 service-instance 4ge13
  encapsulation dot1q 232
  rewrite pop 1
  
interface loopback.0
 ip mtu 1500
 ip address 2.2.2.2/32
 ip router isis 1
 
interface 2ge0
 label-switching
 connect port ge0 service-instance 4ge0
 ip address 10.0.12.2/24
 ip router isis 1
 ldp enable ipv4
 
interface 2ge12
 ip vrf forwarding GOLD
 connect port ge1 service-instance 4ge12
 ip address 10.2.23.2/24
 
interface 2ge13
 ip vrf forwarding SILVER
 connect port ge1 service-instance 4ge13
 ip address 10.3.23.2/24

ASBR2:

enable
configure
 
hostname ASBR2
 
ip vrf SILVER
 rd 2000:33
 route-target both 2000:200
 
ip vrf GOLD
 rd 2000:3
 route-target both 2000:100 
 
router ldp
 transport-address ipv4 3.3.3.3
 advertisement-mode downstream-unsolicited
 
router isis 1
 net 10.0000.0000.0003.00
 
router bgp 2000
 neighbor 4.4.4.4 remote-as 2000
 address-family vpnv4 unicast
 neighbor 4.4.4.4 activate
 exit-address-family
 address-family ipv4 vrf SILVER
 neighbor 10.3.23.2 remote-as 1000
 neighbor 10.3.23.2 activate
 exit-address-family
 address-family ipv4 vrf GOLD
 neighbor 10.2.23.2 remote-as 1000
 neighbor 10.2.23.2 activate
 exit-address-family
 
port ge0
 service-instance 4ge02
  encapsulation dot1q 231
  rewrite pop 1
 service-instance 4ge03
  encapsulation dot1q 232
  rewrite pop 1
 
port ge1
 mtu 9728
 service-instance 4ge1
  encapsulation untagged
  
interface loopback.0
 ip address 3.3.3.3/32
 ip router isis 1
 
interface 2ge1
 label-switching
 connect port ge1 service-instance 4ge1
 ip address 10.0.34.3/24
 ip router isis 1
 ldp enable ipv4
 
interface 2ge02
 ip vrf forwarding GOLD
 connect port ge0 service-instance 4ge02
 ip address 10.2.23.3/24
 
interface 2ge03
 ip vrf forwarding SILVER
 connect port ge0 service-instance 4ge03
 ip address 10.3.23.3/24

R1:

configure terminal
 
hostname R1
 
interface Loopback0
 ip address 11.11.11.11 255.255.255.255
 
interface FastEthernet0/0
 ip address 192.168.0.2 255.255.255.0
 duplex full
 no shutdown
 
router bgp 100
 bgp log-neighbor-changes
 network 11.11.11.11 mask 255.255.255.255
 neighbor 192.168.0.1 remote-as 1000 

R2:

configure terminal
 
hostname R2
 
interface Loopback0
 ip address 22.22.22.22 255.255.255.255
 
interface FastEthernet0/0
 ip address 192.168.1.2 255.255.255.0
 duplex full 
 no shutdown
 
router bgp 200
 bgp log-neighbor-changes
 network 22.22.22.22 mask 255.255.255.255
 neighbor 192.168.1.1 remote-as 2000 

R3:

configure terminal
 
hostname R3
 
interface Loopback0
 ip address 33.33.33.33 255.255.255.255
 
interface FastEthernet0/0
 ip address 100.0.0.2 255.255.255.0
 duplex full 
 no shutdown
 
router bgp 300
 bgp log-neighbor-changes
 network 33.33.33.33 mask 255.255.255.255
 neighbor 100.0.0.1 remote-as 1000 

R4:

configure terminal
 
hostname R4
 
interface Loopback0
 ip address 44.44.44.44 255.255.255.255
 
interface FastEthernet0/0
 ip address 100.0.1.2 255.255.255.0
 duplex full
 no shutdown
 
router bgp 400
 bgp log-neighbor-changes
 network 44.44.44.44 mask 255.255.255.255
 neighbor 100.0.1.1 remote-as 2000