diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-12-07 06:18:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-07 06:18:11 +0100 |
commit | 722e886ac2bf644dd904f0a5049f6bcac7951ccb (patch) | |
tree | bb20e202d09c8ee0d9b58244c214d28b9e973c7a /data | |
parent | 6b7aa5ae54b52875b82a42b41ffea939d2eba180 (diff) | |
parent | eecec6b5caeaef14a03ddbb1d09f9c599273b998 (diff) | |
download | vyos-1x-722e886ac2bf644dd904f0a5049f6bcac7951ccb.tar.gz vyos-1x-722e886ac2bf644dd904f0a5049f6bcac7951ccb.zip |
Merge pull request #636 from c-po/t2562-dhcp
dhcp: T2562: add "listen-address" CLI node for better DHCP relay support
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/dhcp-server/dhcpd.conf.tmpl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/data/templates/dhcp-server/dhcpd.conf.tmpl b/data/templates/dhcp-server/dhcpd.conf.tmpl index bcf425abd..56a5f4bcd 100644 --- a/data/templates/dhcp-server/dhcpd.conf.tmpl +++ b/data/templates/dhcp-server/dhcpd.conf.tmpl @@ -62,6 +62,14 @@ failover peer "{{ subnet_config.failover.name }}" { {% endif %} {% endfor %} {% endif %} +{% if listen_address is defined and listen_address is not none %} + +# DHCP server serving relay subnet, we need a connector to the real world +{% for address in listen_address %} +# Connected subnet statement for listen-address {{ address }} +subnet {{ address | network_from_ipv4 }} netmask {{ address | netmask_from_ipv4 }} { } +{% endfor %} +{% endif %} # Shared network configration(s) {% if shared_network_name is defined and shared_network_name is not none %} |