Configure Static VRF Route

The Static Route Configuration at the tenant VRF level enables you to provide static routes per tenant VRF.

  1. To configure static VRF route, run the following commands:
    # efa tenant vrf create [ --name vrf name | --tenant tenant name | --rttype <both | import | export > | --rt | --ipv4-static-route-next-hop < device ip,ipv4 static route network,nexthop ip,nexthop distance > | --ipv6-static-route-next-hop < device ip,ipv4 static route network,nexthop ip,nexthop distance > | --local-asn | --ipv4-static-route-bfd < device-ip,dest-ipv4-addr,source-ipv4-addr[interval,minrx,multiplier] > | --ipv6-static-route-bfd < device-ip,dest-ipv4-addr,source-ipv4-addr[interval,min-rx,multiplier] > | --max-path uint <1-64> | --redistribute < static | connected >| --rh-max-path uint | --rh-ecmp-enable | --help ]
  2. To update static VRF route, run the following commands:
    # efa tenant vrf update [ -–name <vrf-name> --tenant <tenant-name> --operation < staticroute-add | static-route-delete> --ipv6static-route-next-hop <destination, next-hop> --ipv4static-route-next-hop <destination, next-hop> efa tenant vrf update [ --name vrf name | --tenant tenant name | --operation < local-asn-add | local-asn-delete | static-route-bfd-add | static-route-bfd-delete | static-route-add | static-route-delete | max-path-add | max-path-delete | redistribute-add | redistributedelete | rh-max-path-add | rh-max-path-delete | rh-ecmp-update > | --local-asn | --ipv4-static-route-bfd < device IP,dest-ipv4-addr,source-ipv4-addr[interval,min-rx,multiplielr] > | --ipv6-staticroute-bfd < device ip,dest-ipv6-addr,source-ipv6-addr[interval,minrx,multiplielr] > | --ipv4-static-route-next-hop < device-ip,destipv4-addr,source-ipv4-addr[interval,min-rx,multiplier] > | --ipv6-static-route-next-hop < device-ip,dest-ipv4-addr,source-ipv4-addr[interval,min-rx,multiplier] > | --max-path uint <1-64> | --redistribute < static | connected > | --rh-max-path uint | --rh-ecmpenable | --help ]

Example

# efa tenant vrf create --name red --tenant tenant11 --ipv6-static-route-next-hop 10.24.80.134,2000::/64,1001::2 --ipv6-static-route-next-hop 10.24.80.134,2000::/64,1002::2 --ipv6-static-route-next-hop 10.24.80.134,2000::/64,1003::2 --ipv6-static-route-next-hop 10.24.80.134,2000::/64,1004::2 --ipv6-static-route-next-hop 10.24.80.135,2001::/64,1001::2,4 --ipv6-static-route-next-hop 10.24.80.135,2001::/64,1002::2 --ipv6-static-route-next-hop 10.24.80.135,2001::/64,1003::2 --ipv6-static-route-next-hop 10.24.80.135,2001::/64,1004::2 --ipv4-static-route-next-hop 10.24.80.134,22.0.0.0/24,13.0.0.1,2 --ipv4-static-route-next-hop 10.24.80.134,22.0.0.0/24,13.0.0.2 --ipv4-static-route-next-hop 10.24.80.134,22.0.0.0/24,13.0.0.3 --ipv4-static-route-next-hop 10.24.80.134,22.0.0.0/24,13.0.0.4 --ipv4-static-route-next-hop 10.24.80.135,23.0.0.0/24,13.0.0.1 --ipv4-static-route-next-hop 10.24.80.135,23.0.0.0/24,13.0.0.2 --ipv4-static-route-next-hop 10.24.80.135,23.0.0.0/24,13.0.0.3 --ipv4-static-route-next-hop 10.24.80.135,23.0.0.0/24,13.0.0.4
# efa tenant vrf show --name red --tenant tenant11

====================================================================================Name            : red 
Tenant Name     : tenant11 
L3 VNI          : 
Route Target    : 
Static Route    : Switch-IP, Network->Nh1[distance],Nh2[distance],.. 
                : 10.24.80.134, 22.0.0.0/24->13.0.0.1[2],13.0.0.2,13.0.0.3,13.0.0.4 
                  10.24.80.135, 23.0.0.0/24->13.0.0.1,13.0.0.2,13.0.0.3,13.0.0.4 
                  10.24.80.134, 2000::/64->1001::2,1002::2,1003::2,1004::2 
                  10.24.80.135, 2001::/64->1001::2[4],1002::2,1003::2,1004::2 
Local Asn       : 
====================================================================================
efa tenant epg create --name ten1epg1 --tenant tenant1 --port 10.24.80.134[0/11],10.24.80.135[0/11] --switchport-mode trunk –ctag-range 11 --vrf red –anycast-ip 11:10.10.11.1/24