R-I type of VRF is for layer 3
R-I type of Virtual-Switch is for layer 2 (ie...EVPN Vlan-Aware, EVPN-VxLAN, plain VLAN, etc...)
If your working on a QFX, you can only have a single V-S where as on a MX you have have multiple. The route-target(or import/export targets) are used to bring the appropriate routes or MACs into the appropriate instance. So for EVPN-VxLAN you would have route targets which are for the layer 2 information and then for your VRF you have route targets for the layer 3 routes.
Now you may be wondering what the need for the VRF R-I....this would allow for you to have have multiple customers(instances) who routes (could be the same, ie...RFC1918s) will be in separate tables for isolation. Also you may have some designs where certain L2 /L3 domains need to be service-chained (ie...firewalled) so you could use the R-I type of VRF to direct traffic to that service-chain.
Original Message:
Sent: 04-11-2021 17:58
From: Unknown User
Subject: vrf-targt questions
I did evpn/vxlan lab in Juniper ADCX course
The lab first asked to configure EVPN/vXLAN in a non vrf environment with the vrf-tagret in the switch-options stanza.
Then a vrf is added and vrf-target is also configured in VRF.
I configured different vrf-targets in both stanza on purpose to see which vrf-target is used. On the peers, I noticed vrf community received is from global vrf-target.
Anyone can help me to understand which vrf-target should be used.
As the training shows vrf-import and vrf-export in VRF stanza.
thanks a lot !!!