Hello,
I just brought this problem if mine. I need to tweak some configuration on dhcpd.conf to satisfy what I need on my network. I need to redirect some of the network station to use a different gateways as the current dhcp gives out while others uses the default gateway. Basically I have created a new custom template from /etc/e-smith/templates-custom/etc/dhcpd.conf and from there create this file 99group
group {
option domain-name "vpnisl2";
option routers 192.168.102.2;
option domain-name-servers 192.168.102.2;
host lab {
hardware ethernet 00:24:82:4C:5b:ce; fixed-address 192.168.102.4;}
}
Then I expand it by: #expand-template /etc/dhcpd.conf
And I got this error after
# expand-template /etc/dhcpd.conf
WARNING in /etc/e-smith/templates-custom//etc/dhcpd.conf/99group: String found where operator expected at /etc/e-smith /templates-custom//etc/dhcpd.conf/99group line 2, near "name "vpnisl2""
WARNING in /etc/e-smith/templates-custom//etc/dhcpd.conf/99group: (Do you need to predeclare name?)
WARNING in /etc/e-smith/templates-custom//etc/dhcpd.conf/99group: Number found where operator expected at /etc/e-smith /templates-custom//etc/dhcpd.conf/99group line 4, near "servers 192.168.102.2"
WARNING in /etc/e-smith/templates-custom//etc/dhcpd.conf/99group: (Do you need to predeclare servers?)
WARNING in /etc/e-smith/templates-custom//etc/dhcpd.conf/99group: Bareword found where operator expected at /etc/e-smi th/templates-custom//etc/dhcpd.conf/99group line 6, near "4C"
WARNING in /etc/e-smith/templates-custom//etc/dhcpd.conf/99group: (Missing operator before C?)
WARNING in /etc/e-smith/templates-custom//etc/dhcpd.conf/99group: Bareword found where operator expected at /etc/e-smi th/templates-custom//etc/dhcpd.conf/99group line 6, near "5b"
WARNING in /etc/e-smith/templates-custom//etc/dhcpd.conf/99group: (Missing operator before b?)
WARNING in /etc/e-smith/templates-custom//etc/dhcpd.conf/99group: Unquoted string "b" may clash with future reserved w ord at /etc/e-smith/templates-custom//etc/dhcpd.conf/99group line 6.
WARNING in /etc/e-smith/templates-custom//etc/dhcpd.conf/99group: Unquoted string "ce" may clash with future reserved word at /etc/e-smith/templates-custom//etc/dhcpd.conf/99group line 6.
WARNING in /etc/e-smith/templates-custom//etc/dhcpd.conf/99group: Unquoted string "fixed" may clash with future reserv ed word at /etc/e-smith/templates-custom//etc/dhcpd.conf/99group line 6.
WARNING in /etc/e-smith/templates-custom//etc/dhcpd.conf/99group: Number found where operator expected at /etc/e-smith /templates-custom//etc/dhcpd.conf/99group line 6, near "address 192.168.102.4"
WARNING in /etc/e-smith/templates-custom//etc/dhcpd.conf/99group: (Do you need to predeclare address?)
ERROR in /etc/e-smith/templates-custom//etc/dhcpd.conf/99group: Program fragment delivered error <<syntax error at /et c/e-smith/templates-custom//etc/dhcpd.conf/99group line 2, near "name "vpnisl2""
syntax error at /etc/e-smith/templates-custom//etc/dhcpd.conf/99group line 4, near "servers 192.168.102.2"
syntax error at /etc/e-smith/templates-custom//etc/dhcpd.conf/99group line 6, near "00:"
syntax error at /etc/e-smith/templates-custom//etc/dhcpd.conf/99group line 6, near "address 192.168.102.4">> at templa te line 1
ERROR: Template processing failed for //etc/dhcpd.conf: 13 fragments generated warnings, 1 fragment generated errors
at /sbin/e-smith/expand-template line 45
Can anyone explain why I have this error?
Regards,
Rocel