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

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
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