Skip to content

patches/(openwrt|luci): Support for pref64 (RFC 8781)

Michal Hrusecky requested to merge feature/pref64 into hbk

This option of IPv6 Router Advertisements allows devices connected to a IPv6-only network to discover IPv6 prefix of the NAT64 gateway. Devices can use this information for instance to setup client translator (CLAT) from IPv4 to IPv6 in 464XLAT (RFC 6877) scenario or to handle IPv4 address literal on application level.

To enable PREF64 option, a new uci parameter ra_pref64 has to contain the NAT64 prefix, including prefix length. Only lengths of 96, 64, 56, 48, 40 and 32 bits are supported. For example, to annonce the Well-Known Prefix:

config dhcp 'lan' … option ra_pref64 '64:ff9b::/96'

Merge request reports