correctly set the fixed-address

This commit is contained in:
Daniel Poelzleithner 2021-02-10 22:36:35 +01:00
parent d92437e5aa
commit 5069f17bbd
2 changed files with 8 additions and 2 deletions

View File

@ -293,7 +293,7 @@ dhcp:
domain-name: priv22.zentralwerk.org domain-name: priv22.zentralwerk.org
priv23: priv23:
start: 172.20.73.162 start: 172.20.73.164
end: 172.20.73.190 end: 172.20.73.190
time: 120 time: 120
max-time: 86400 max-time: 86400
@ -303,6 +303,9 @@ dhcp:
routers: priv23-gw.priv23 routers: priv23-gw.priv23
string-opts: string-opts:
domain-name: priv23.zentralwerk.org domain-name: priv23.zentralwerk.org
fixed-hosts:
172.20.73.162: da:2c:3a:2c:87:22
172.20.73.163: ca:9f:27:b2:bf:6d
priv24: priv24:
start: 172.20.74.242 start: 172.20.74.242

View File

@ -28,7 +28,10 @@ group {
} }
{%- for addr, hwaddr in (conf.get('fixed-hosts') or {}).items() %} {%- for addr, hwaddr in (conf.get('fixed-hosts') or {}).items() %}
host {{ addr }} { hardware ethernet {{ hwaddr }}; } host {{ addr }} {
hardware ethernet {{ hwaddr }};
fixed-address {{ addr }};
}
{%- endfor %} {%- endfor %}
} }