Configure a virtual loopback tunnel for VRF table lookup:
- [edit routing-instances]
- routing-instance-1 {
- instance-type vrf;
- interface vt-1/0/0.0;
- interface so-0/2/2.0;
- route-distinguisher 2:3;
- vrf-import VPN-A-import;
- vrf-export VPN-A-export;
-
- routing-options {
-
- static {
- route 10.0.0.0/8 next-hop so-0/2/2.0;
- }
- }
- }
- routing-instance-2 {
- instance-type vrf;
- interface vt-1/0/0.1;
- interface so-0/3/2.0;
- route-distinguisher 4:5;
- vrf-import VPN-B-import;
- vrf-export VPN-B-export;
-
- routing-options {
-
- static {
- route 10.0.0.0/8 next-hop so-0/3/2.0;
- }
- }
- }
- [edit interfaces]
- vt-1/0/0 {
-
- unit 0 {
- family inet;
- family mpls;
- }
-
- unit 1 {
- family inet;
- }
- }