Browse Source

correctly set the fixed-address

legacy
Daniel Poelzleithner 1 year ago
parent
commit
5069f17bbd
  1. 5
      salt-pillar/dhcp/init.sls
  2. 5
      salt/dhcp/dhcpd.conf

5
salt-pillar/dhcp/init.sls

@ -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

5
salt/dhcp/dhcpd.conf

@ -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…
Cancel
Save