Page MenuHomeVyOS Platform

Ability to have IPv6 nexthops for IPv4 static routes
Open, NormalPublicFEATURE REQUEST

Description

In the mainline Linux kernel, I am able to add a default route using a IPv6 address as the next hop like this.

ip route add 0.0.0.0/0 via inet6 2602:[...]

Currently, when I attempt to do the same on VyOS, I get an error.

> set protocols static route 0.0.0.0/0 next-hop 2602:[...]
  Error: 2602:[...] is not a valid IPv4 address

When implemented properly, I expect this feature to be able to add such a route to my IPv4 tables to be able to send IPv4 traffic to a IPv6 router. Currently, this is possible in VyOS with BGP expended multihop, however having the support for static routes is more preferable.

Further context on the whys of having this feature is due to our IPv6 only network. We prefer to use IPv6 as much as possible, using our router as the nexthop to get IPv4 connectivity. The main advantage of this design is that we do not need to setup a seperate IPv4 transit network to get IPv4 connectivity to our network devices.

Details

Version
-
Is it a breaking change?
Behavior change
Issue type
Feature (new functionality)

Event Timeline

This type of configuration works perfectly fine with VyOS 1.5 when receiving routes from a BGP peer (v4 routes with v6 nexthop), so it would be very nice to be able to manually install routes in the same way.

Viacheslav triaged this task as Normal priority.Feb 5 2024, 8:09 AM

It seems FRR (9.0.2-36-g31dec1951) does not support this.
The route can be added, but no route is in the routing table.

vyos@r4:~$ vtysh -c "conf t" -c "ip route 192.0.2.0/24 2001:db8::1"
vyos@r4:~$ 
vyos@r4:~$ vtysh -c "show run" | match 192.0.2.0
ip route 192.0.2.0/24 2001:db8::1
vyos@r4:~$ 
vyos@r4:~$ 
vyos@r4:~$ show ip route 192.0.2.0/24
% Network not in table
vyos@r4:~$

It probably could be part of failover route

natali-rs1985 changed the task status from Open to In progress.Jun 13 2024, 9:29 AM
natali-rs1985 changed the task status from In progress to Open.
natali-rs1985 claimed this task.
natali-rs1985 removed natali-rs1985 as the assignee of this task.
natali-rs1985 subscribed.
syncer claimed this task.
syncer removed a project: VyOS 1.5 Circinus.

Please put it on the list again because it should be supported by current frr:

https://docs.frrouting.org/en/latest/static.html

"GATEWAY is the IP address to use as next-hop for the prefix. Routes of type v4 can use v4 and v6 next-hops, v6 routes only support v6 next-hops."

@frebib update failed all smoketests for the 10.3 https://vyos.dev/T7448, the same probably will be for 10.4
the task for FRR 10.4 upgrade https://vyos.dev/T7664