2 Nov 19:35
dhcp.template and multiple subnets
hi,
just noticed an issue when you define multiple subnets in
dhcp.template. it seems that if you have setup your template file to
use mutiple subnets dhpcd will fail to start unless you have tagged a
system to live on one of the secondary subnets. for example take this
dhcp.template:
subnet 172.30.214.0 netmask 255.255.255.0 {
...
}
$insert_cobbler_system_definitions
subnet 172.30.206.0 netmask 255.255.255.0 {
...
}
$insert_cobbler_system_definitions_abq
restarting dhcpd (or running cobbler sync) will fail due to the fact
that "$insert_cobbler_system_definitions_abq" will litterally end up in
/etc/dhpcd.conf. once you tag a system to use the secondary subnet (in
this case --dhcp-tag=abq) the $insert_cobbler... variable is expanded
correctly and dhcp restarts as expected.
i am not sure if anyone else has run into this, or if this issue can we
worked around (i am not too familiar with how template's).
-pete
(Continue reading)
RSS Feed