Page MenuHomeVyOS Platform

Support nexthop-vrf static routes in the VyOS CLI
Open, WishlistPublicFEATURE REQUEST

Description

Feature Request: Support nexthop-vrf static routes in the VyOS CLI

Summary

Please add support for configuring FRRouting's nexthop-vrf static routes from the VyOS CLI.

Background

FRRouting already supports installing static routes that use a next-hop located in another VRF. For example:

vrf RED
 ip route 0.0.0.0/0 BLUE nexthop-vrf BLUE

However, there is currently no equivalent configuration available through the VyOS CLI.

Current workaround

The only CLI-based workaround I found was to create a pair of veth interfaces, assign addresses, place each interface into a different VRF, and point the static route to the peer address. While functional, this introduces additional interfaces and IP addresses solely to satisfy the routing configuration.

Testing

I verified that this is already supported by FRRouting itself.

I entered the following directly in vtysh:

vrf RED
 ip route 0.0.0.0/0 BLUE nexthop-vrf BLUE

The configuration worked exactly as expected. The default route in VRF RED was successfully installed via VRF BLUE without requiring any additional interfaces or IP addressing.

This indicates that the limitation is in the current VyOS CLI rather than in FRRouting.

Proposed CLI

One possible syntax could be something similar to:

set vrf name RED protocols static route 0.0.0.0/0 interface BLUE

Benefits

  • Exposes existing FRRouting functionality through the VyOS CLI.
  • Eliminates the need for artificial veth interfaces and point-to-point addressing.
  • Simplifies inter-VRF routing configuration.
  • Makes the configuration cleaner and easier to understand.

Details

Version
-
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Feature (new functionality)
Forum thread
https://forum.vyos.io/t/support-for-nexthop-vrf-on-static-routes-in-the-vyos-cli/17537