Configure Static VRF Route

About this task

The static route configuration at the tenant VRF level enables you to provide static routes per tenant VRF.

Procedure

  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 metric> | --ipv6-static-route-next-hop < device ip,ipv6 static route network,nexthop ip,nexthop distance metric> | --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],distance,metric > | --ipv6-static-route-next-hop < device-ip,dest-ipv6-addr,source-ipv6-addr[interval,min-rx,multiplier],distance,metric > | --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,,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,,4 --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,9 --ipv4-static-route-next-hop 
    10.24.80.134,22.0.0.0/24,13.0.0.2,,7 --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,Nexthop-IP[Route-Distance,Route-Metric]}, ...
                        : 10.24.80.134->{22.0.0.0/24,13.0.0.1[2,9]}  {22.0.0.0/24,13.0.0.2[ ,7]}  {22.0.0.0/24,13.0.0.3[ , ]}  {22.0.0.0/24,13.0.0.4[ , ]}  {2000::/64,1001::2[ ,2]}  
                                {2000::/64,1002::2[ , ]}  {2000::/64,1003::2[ ,4]}  {2000::/64,1004::2[ , ]}  
                        : 10.24.80.135->{23.0.0.0/24,13.0.0.1[ , ]}  {23.0.0.0/24,13.0.0.2[ , ]}  {23.0.0.0/24,13.0.0.3[ , ]}  {23.0.0.0/24,13.0.0.4[ , ]}  {2001::/64,1001::2[4, ]}  
                                {2001::/64,1002::2[ , ]}  {2001::/64,1003::2[ , ]}  {2001::/64,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

    EFA 3.0.0 and above has a new attribute metric for static route. The metric values range from 1 through 16 as supported by SLX.