hostname R1
interface GigabitEthernet 0/0
no switchport
ip address 12.0.0.1 255.255.255.0
interface Loopback 0
ip address 1.1.1.1 255.255.255.255
router bgp 1
bgp log-neighbor-changes
bgp graceful-restart restart-time 120
bgp graceful-restart stalepath-time 360
bgp graceful-restart
neighbor 12.0.0.2 remote-as 100
address-family ipv4
network 1.1.1.1 mask 255.255.255.255
neighbor 12.0.0.2 activate
exit-address-family
hostname R2
ip vrf 1
rd 1:100
route-target export 1:100
route-target import 100:1
mpls ip
interface GigabitEthernet 0/0
no switchport
ip vrf forwarding 1
ip address 12.0.0.2 255.255.255.0
interface GigabitEthernet 0/1
no switchport
ip address 23.0.0.2 255.255.255.0
ip ospf 100 area 0
mpls ip
label-switching
interface Loopback 0
ip address 2.2.2.2 255.255.255.255
ip ospf 100 area 0
router bgp 100
bgp log-neighbor-changes
bgp graceful-restart restart-time 120
bgp graceful-restart stalepath-time 360
bgp graceful-restart
neighbor 4.4.4.4 remote-as 100
neighbor 4.4.4.4 update-source Loopback 0
address-family ipv4
no neighbor 4.4.4.4 activate
exit-address-family
address-family vpnv4 unicast
neighbor 4.4.4.4 activate