Skip to content

Default Static Route#

Underlay Routing → DSDefault Static Routes

Static routes enable connectivity to remote network elements that do not have a routing protocol enabled to advertise routes. A static route is either configured with one or more next-hop IP addresses, or as a blackhole route. A blackhole route will attract traffic for the entire subnet, but will discard packets if no longer prefix match is available in the routing table.

Example: if all outbound traffic is meant to pass through a firewall device, a default static route (0.0.0.0/0) could be configured with the next-hop IP address of the firewall.

To set up static routes in the overlay, use StaticRoute instead.

Dependencies#

To configure this resource, the following resources must exist or be created alongside the DefaultStaticRoute

Referenced resources#

DefaultRouter#

Static route prefixes configured in the DefaultStaticRoute resource are only configured in the VRF of the linked DefaultRouter resource. The next-hop of the static routes should be reachable through a local interface (typically a DefaultInterface) configured in the same DefaultRouter.

TopoNode#

Optionally, a list of nodes can be provided on which the static route is deployed. EDA does not determine on which nodes the next-hop IP address is reachable through a local interface, but instead deploys the static route on ALL nodes that the DefaultRouter is configured on, if no nodes are specified.

Examples#

apiVersion: protocols.eda.nokia.com/v2
kind: DefaultStaticRoute
metadata:
  namespace: eda
  name: my-default-static-route
spec:
  nexthopGroup:
    blackhole: false
    resolve: false
    nexthops:
      - resolve: false
        ipPrefix: 172.16.0.2/31
  prefixes:
    - 10.0.1.0/24
  defaultRouter: router-leaf-1
cat << 'EOF' | kubectl apply -f -
apiVersion: protocols.eda.nokia.com/v2
kind: DefaultStaticRoute
metadata:
  namespace: eda
  name: my-default-static-route
spec:
  nexthopGroup:
    blackhole: false
    resolve: false
    nexthops:
      - resolve: false
        ipPrefix: 172.16.0.2/31
  prefixes:
    - 10.0.1.0/24
  defaultRouter: router-leaf-1
EOF

Custom Resource Definition#

To browse the Custom Resource Definition go to crd.eda.dev.

DefaultStaticRoute

protocols.eda.nokia.com / v2

SPEC

DefaultStaticRoute enables the configuration of static routes within a DefaultRouter. It allows specifying destination prefixes, route preference, and a nexthop group. This resource facilitates precise control over routing behavior, including options for BFD, route resolution, and blackholing traffic.

  • #
  • #
  • #
  • #
  • #

STATUS

DefaultStaticRouteStatus defines the observed state of default static route

  • #
  • #
  • #
  • #