PE Router 1 (PE1)
PE1 connects to both customer A and customer B.
On customer A VRF1 configure:
- RD – 1:10
- Route target – export 1:1 and 1:10
On customer 2 VRF2 configure
- RD – 2:20
- Route target – export 2:2 and import 2:2 and 2:20
In the global VRF (using L3 Tunneling):
- Configure a loopback interface for each L3 tunnel to be used as the tunnel source interface, specifying the global VRF BGP address as secondary
- Configure L3 tunnels 1 (tun.0.1) connecting PE1 and PE2 and L3 tunnel 2 (tun.0.2) connecting PE1 and PE3
- Configure a static route to the loopback interface BGP address to force BGP traffic to use the tunnel instead of the associated VLAN
- Enable the VPNV4 address family in BGP configuration mode (if using IPv6 enable VPNV6)
- Activate VPNV4 neighbors
- Redistribute OSPF in the BGP configuration mode IPv4 address family for both VRF1 and VRF2
In the global VRF (using Native MPLS):
- Enable Native MPLS for the appropriate IP address type
- Enable MPLS LDP for the appropriate IP address type
- Configure a loopback interface specifying the global VRF BGP address as primary
- Enable the VPNV4 address family in BGP configuration mode (if using IPv6 enable VPNV6)
- Activate VPNV4 neighbors
- Redistribute OSPF in the BGP configuration mode IPv4 address family for both VRF1 and VRF2