correctly set the fixed-address
This commit is contained in:
parent
d92437e5aa
commit
5069f17bbd
|
@ -293,7 +293,7 @@ dhcp:
|
|||
domain-name: priv22.zentralwerk.org
|
||||
|
||||
priv23:
|
||||
start: 172.20.73.162
|
||||
start: 172.20.73.164
|
||||
end: 172.20.73.190
|
||||
time: 120
|
||||
max-time: 86400
|
||||
|
@ -303,6 +303,9 @@ dhcp:
|
|||
routers: priv23-gw.priv23
|
||||
string-opts:
|
||||
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:
|
||||
start: 172.20.74.242
|
||||
|
|
|
@ -28,7 +28,10 @@ group {
|
|||
}
|
||||
|
||||
{%- for addr, hwaddr in (conf.get('fixed-hosts') or {}).items() %}
|
||||
host {{ addr }} { hardware ethernet {{ hwaddr }}; }
|
||||
host {{ addr }} {
|
||||
hardware ethernet {{ hwaddr }};
|
||||
fixed-address {{ addr }};
|
||||
}
|
||||
{%- endfor %}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue