From 7dddfa338800303335673df637a05d8aaaccdaa2 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 25 May 2020 21:11:43 +0200 Subject: dhcpv6-pd: T2506: add option to request specific prefix length Some ISPs (e.g. Comcast) only delegate a /64 by default. You have to explicitly "ask" for a bigger (e.g. /60) prefix. This commit adds a CLI node to request a specific prefix length in the range 32 - 64. dhcpv6-options { prefix-delegation { length 60 } } --- data/templates/dhcp-client/ipv6.tmpl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'data') diff --git a/data/templates/dhcp-client/ipv6.tmpl b/data/templates/dhcp-client/ipv6.tmpl index 8957516e2..490f14726 100644 --- a/data/templates/dhcp-client/ipv6.tmpl +++ b/data/templates/dhcp-client/ipv6.tmpl @@ -23,6 +23,9 @@ id-assoc na 1 { {% if dhcpv6_pd_interfaces %} id-assoc pd 2 { +{% if dhcpv6_pd_length %} + prefix ::/{{ dhcpv6_pd_length }} infinity; +{% endif %} {% for intf in dhcpv6_pd_interfaces %} prefix-interface {{ intf.ifname }} { {% if intf.sla_id %} -- cgit v1.2.3