PE1 hostname PE1 ! vrf definition A rd 2:2 route-target export 2:2 route-target import 3:3 ! address-family ipv4 exit-address-family ! vrf definition B rd 7:7 route-target export 3:3 route-target import 2:2 ! address-family ipv4 exit-address-family ! interface Loopback0 ip address 1.1.1.1 255.255.255.255 ! interface Loopback1 vrf forwarding B ip address 11.11.11.11 255.255.255.255 ! interface GigabitEthernet0/0 vrf forwarding A ip address 192.168.5.1 255.255.255.252 duplex auto speed auto media-type rj45 ! interface GigabitEthernet0/1 vrf forwarding B ip address 192.168.1.2 255.255.255.252 duplex auto speed auto media-type rj45 ! interface GigabitEthernet0/4 ip address 192.168.4.1 255.255.255.252 ip ospf network point-to-point ip ospf 1 area 0 duplex auto speed auto media-type rj45 mpls ip ! router ospf 1 network 1.1.1.1 0.0.0.0 area 0 ! router bgp 65000 bgp log-neighbor-changes no bgp default ipv4-unicast neighbor 4.4.4.4 remote-as 65000 neighbor 4.4.4.4 update-source Loopback0 ! address-family vpnv4 neighbor 4.4.4.4 activate neighbor 4.4.4.4 send-community both exit-address-family ! address-family ipv4 vrf A neighbor 192.168.5.2 remote-as 5 neighbor 192.168.5.2 activate neighbor 192.168.5.2 send-community both exit-address-family ! address-family ipv4 vrf B neighbor 22.22.22.22 remote-as 65000 neighbor 22.22.22.22 update-source Loopback1 neighbor 22.22.22.22 activate neighbor 22.22.22.22 send-community both neighbor 22.22.22.22 next-hop-self exit-address-family ! ip route vrf B 22.22.22.22 255.255.255.255 192.168.1.1