diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-12-17 11:34:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-17 11:34:47 +0100 |
commit | 526357566f2a9cab5a2fc45c4af53cfa88b2666b (patch) | |
tree | f23c5d5252f476710ff779a058b5ffa5b956a375 /data/templates/dhcp-server | |
parent | 588aa7398ab4ebe0162c5fcef94bf4b90c2cee0b (diff) | |
parent | cca7ec3efbf66a9ca6005352133528c4286c2be9 (diff) | |
download | vyos-1x-526357566f2a9cab5a2fc45c4af53cfa88b2666b.tar.gz vyos-1x-526357566f2a9cab5a2fc45c4af53cfa88b2666b.zip |
Merge pull request #1669 from vfreex/dhcp-v6-only-option-1.4
T4832: dhcp: Add IPv6-only dhcp option support (RFC 8925)
Diffstat (limited to 'data/templates/dhcp-server')
-rw-r--r-- | data/templates/dhcp-server/dhcpd.conf.j2 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/data/templates/dhcp-server/dhcpd.conf.j2 b/data/templates/dhcp-server/dhcpd.conf.j2 index 4c2da0aa5..639526532 100644 --- a/data/templates/dhcp-server/dhcpd.conf.j2 +++ b/data/templates/dhcp-server/dhcpd.conf.j2 @@ -22,6 +22,7 @@ ddns-update-style {{ 'interim' if dynamic_dns_update is vyos_defined else 'none' option rfc3442-static-route code 121 = array of integer 8; option windows-static-route code 249 = array of integer 8; option wpad-url code 252 = text; +option rfc8925-ipv6-only-preferred code 108 = unsigned integer 32; # Vendor specific options - Ubiquiti Networks option space ubnt; @@ -127,6 +128,9 @@ shared-network {{ network }} { {% if subnet_config.wins_server is vyos_defined %} option netbios-name-servers {{ subnet_config.wins_server | join(', ') }}; {% endif %} +{% if subnet_config.ipv6_only_preferred is vyos_defined %} + option rfc8925-ipv6-only-preferred {{ subnet_config.ipv6_only_preferred }}; +{% endif %} {% if subnet_config.static_route is vyos_defined %} {% set static_default_route = '' %} {% if subnet_config.default_router is vyos_defined %} |