Page MenuHomeVyOS Platform

Ability to set host part IPv6 address via interface ip token
In progress, LowPublicFEATURE REQUEST

Description

The token command explicitly configures the lower 64 bits that will be used with any autoconf
address, as opposed to one derived from the macaddr. This aligns the autoconf-assigned address with
the fixed one set above, and can do so as a pre-up command to avoid ever having another address
even temporarily, when this is all set up before boot.

https://man7.org/linux/man-pages/man8/ip-token.8.html

sudo sysctl -w net.ipv6.conf.all.forwarding=0
sudo ip token set ::192:0:2:1 dev eth1
sudo sysctl -w net.ipv6.conf.all.forwarding=1

List tokens:

vyos@r14# sudo ip token list
token :: dev eth0
token ::192:0:2:1 dev eth1
[edit]
vyos@r14#

Expecting DHCPv6 address with configured host address, something like:

set interfaces ethernet eth1 address dhcpv6 

2001:db8:23:192:0:2:1/64

So it doesn't depend on which network we get, host part perhaps will be the same eve if we change the NIC

Proposed syntax (depends on prefix):

set interfaces ethernet eth1 ipv6 token ::192:0:2:1/64
or 
set interfaces ethernet eth1 ipv6 token ::11

Details

Version
1.4
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

Viacheslav changed the subtype of this task from "Bug" to "Feature Request".
dmbaturin edited projects, added VyOS Rolling; removed Restricted Project.Oct 14 2024, 10:57 AM
dmbaturin changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.
dmbaturin changed Issue type from Unspecified (please specify) to Bug (incorrect behavior).

I am implementing this feature now!

c-po changed the task status from Open to In progress.Sat, Mar 29, 10:42 AM
c-po assigned this task to symysak.
c-po edited projects, added VyOS 1.5 Circinus; removed Bugs.