Good am using webmin to manage DHCP server in Ubuntu Server 14.04 and am sending static routes through the DHCP, but have the problem that charge the routes through the web Interfas and I put them in double quotes and it makes me space but when I restart the service dhcp fails
the system makes the configuration as follows
option rfc3442-classless-static-routes "24 , 106 , 31 , 64 , 10 , 0 , 0 , 3";
option ms-classless-static-routes "24 , 106 , 31 , 64 , 10 , 0 , 0 , 3";
place the system must thus
option rfc3442-classless-static-routes 24, 106, 31, 64, 10, 0, 0, 3;
option ms-classless-static-routes 24, 106, 31, 64, 10, 0, 0, 3;
this is the error that the DHCP service when I try to restart
dhcpd self-test failed. Please fix /etc/dhcp/dhcpd.conf.
The error was:
Internet Systems Consortium DHCP Server 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/etc/dhcp/dhcpd.conf line 202: expecting number.
option rfc3442-classless-static-routes "24 , 106 , 31 , 64 , 10 , 0 , 0 , 3"
^
/etc/dhcp/dhcpd.conf line 203: expecting number.
option ms-classless-static-routes "24 , 106 , 31 , 64 , 10 , 0 , 0 , 3"
^
Configuration file errors encountered -- exiting
Do you have a line elsewhere in your dhcpd.conf file that defines that
rfc3442-classless-static-routesoption? Something like :option rfc3442-classless-static-routes code 1234 = string;if I have the line and works without problem, the problem is that it leaves spaces between the numbers and the comma and I have to fix the console command
Right, I'd just like to see exactly what that
option rfc3442-classless-static-routes codeline contains on your system.This is the content of my configuration file
option broadcast-address 10.0.0.255;
option subnet-mask 255.255.255.0;
option routers 10.0.0.254;
option ntp-servers 10.0.0.244;
option rfc3442-classless-static-routes code 121 = array of integer 8;
option ms-classless-static-routes code 249 = array of integer 8;
host11
host host11.contactemos.lan {
option rfc3442-classless-static-routes "24 , 106 , 31 , 64 , 10 , 0 , 0 , 3";
option ms-classless-static-routes "24 , 106 , 31 , 64 , 10 , 0 , 0 , 3";
option ntp-servers 10.0.0.244;
option domain-name-servers 10.0.0.244;
option domain-name "contactemos.lan";
option subnet-mask 255.255.255.0;
option routers 10.0.0.254;
hardware ethernet 00:1C:25:00:26:5C;
fixed-address 10.0.0.31;
}
Thanks - the issue is that Webmin doesn't support that "array of" custom option type properly.
I will fix this in the next Webmin release.