summaryrefslogtreecommitdiff
path: root/data/templates/router-advert
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-03-12 16:58:25 +0100
committerChristian Breunig <christian@breunig.cc>2024-03-12 18:34:54 +0100
commitf1ead5c6a16aba00699b8a5b9c18ef6cffe8cc4d (patch)
tree1e697836d534de4a62b04882c2b97c6c0b9e2d0f /data/templates/router-advert
parenta4e21377271cfcf6359ed23db8a90129e264ba4d (diff)
downloadvyos-1x-f1ead5c6a16aba00699b8a5b9c18ef6cffe8cc4d.tar.gz
vyos-1x-f1ead5c6a16aba00699b8a5b9c18ef6cffe8cc4d.zip
radvd: T6118: add nat64prefix support RFC8781
Add support for pref64 option, as defined in RFC8781. The prefix valid lifetime must not be smaller than the "interface interval max" definition which defaults to 600. set service router-advert interface eth1 nat64prefix 64:ff9b::/96
Diffstat (limited to 'data/templates/router-advert')
-rw-r--r--data/templates/router-advert/radvd.conf.j27
1 files changed, 7 insertions, 0 deletions
diff --git a/data/templates/router-advert/radvd.conf.j2 b/data/templates/router-advert/radvd.conf.j2
index 4ef4751dd..97180d164 100644
--- a/data/templates/router-advert/radvd.conf.j2
+++ b/data/templates/router-advert/radvd.conf.j2
@@ -50,6 +50,13 @@ interface {{ iface }} {
{% endfor %}
};
{% endif %}
+{% if iface_config.nat64prefix is vyos_defined %}
+{% for nat64prefix, nat64prefix_options in iface_config.nat64prefix.items() %}
+ nat64prefix {{ nat64prefix }} {
+ AdvValidLifetime {{ nat64prefix_options.valid_lifetime }};
+ };
+{% endfor %}
+{% endif %}
{% if iface_config.prefix is vyos_defined %}
{% for prefix, prefix_options in iface_config.prefix.items() %}
prefix {{ prefix }} {