Sharing Multiple VRFs with the Same RT (route-target)

You can configure VRFs to share with the same route target.

About this task

Follow this procedure to share multiple VRFs with the same route target.

Procedure

  1. If you are running EFA 2.5.5 or above, run the following command:
    efa tenant vrf create --tenant "ten1" --name "ten1vrf1" --routing-type "distributed" --rt-type import --rt 100:100 --rt-type export --rt 100:100 --rt-type import --rt 200:200 --rt-type export --rt 200:200 --rt-type import --rt 300:300 --rt-type export --rt 400:400 --max-path 8 --redistribute connected
    
    efa tenant vrf create --tenant "ten2" --name "ten2vrf1" --routing-type "distributed" --rt-type import --rt 100:100 --rt-type export --rt 100:100 --rt-type import --rt 200:200 --rt-type export --rt 200:200 --rt-type import --rt 300:300 --rt-type export --rt 400:400 --max-path 8 --redistribute connected
    
  2. If you are running EFA 2.5.5 or above, verify the switch configuration on SLX device.
    L1# show running-config vrf
    bvrf ten1vrf1
    rd 172.31.254.69:1
    evpn irb ve 8192
    address-family ipv4 unicast
      route-target export 100:100 evpn
      route-target export 200:200 evpn
      route-target export 400:400 evpn
      route-target import 100:100 evpn
      route-target import 200:200 evpn
      route-target import 300:300 evpn
    !
    address-family ipv6 unicast
      route-target export 100:100 evpn
      route-target export 200:200 evpn
      route-target export 400:400 evpn
      route-target import 100:100 evpn
      route-target import 200:200 evpn
      route-target import 300:300 evpn
    !
    !
    vrf ten2vrf1
    rd 172.31.254.69:2
    evpn irb ve 8190
    address-family ipv4 unicast
      route-target export 100:100 evpn
      route-target export 200:200 evpn
      route-target export 400:400 evpn
      route-target import 100:100 evpn
      route-target import 200:200 evpn
      route-target import 300:300 evpn
    !
    address-family ipv6 unicast
      route-target export 100:100 evpn
      route-target export 200:200 evpn
      route-target export 400:400 evpn
      route-target import 100:100 evpn
      route-target import 200:200 evpn
      route-target import 300:300 evpn
    !
    !
    
    L2# show running-config vrf
    bvrf ten1vrf1
    rd 172.31.254.70:1
    evpn irb ve 8192
    address-family ipv4 unicast
      route-target export 100:100 evpn
      route-target export 200:200 evpn
      route-target export 400:400 evpn
      route-target import 100:100 evpn
      route-target import 200:200 evpn
      route-target import 300:300 evpn
    !
    address-family ipv6 unicast
      route-target export 100:100 evpn
      route-target export 200:200 evpn
      route-target export 400:400 evpn
      route-target import 100:100 evpn
      route-target import 200:200 evpn
      route-target import 300:300 evpn
    !
    !
    vrf ten2vrf1
    rd 172.31.254.70:2
    evpn irb ve 8190
    address-family ipv4 unicast
      route-target export 100:100 evpn
      route-target export 200:200 evpn
      route-target export 400:400 evpn
      route-target import 100:100 evpn
      route-target import 200:200 evpn
      route-target import 300:300 evpn
    !
    address-family ipv6 unicast
      route-target export 100:100 evpn
      route-target export 200:200 evpn
      route-target export 400:400 evpn
      route-target import 100:100 evpn
      route-target import 200:200 evpn
      route-target import 300:300 evpn
    !
    !