Menu

#4664 Error dhcp server static routes

1.770
closed-fixed
nobody
dhcp server (2)
9
2015-10-27
2015-10-23
George
No

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

Related

Bugs: #4777
Bugs: #5028

Discussion

  • Jamie Cameron

    Jamie Cameron - 2015-10-24

    Do you have a line elsewhere in your dhcpd.conf file that defines that rfc3442-classless-static-routes option? Something like :

    option rfc3442-classless-static-routes code 1234 = string;

     
  • George

    George - 2015-10-24

    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

     
  • Jamie Cameron

    Jamie Cameron - 2015-10-25

    Right, I'd just like to see exactly what that option rfc3442-classless-static-routes code line contains on your system.

     
  • George

    George - 2015-10-26

    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;
    }

     
  • Jamie Cameron

    Jamie Cameron - 2015-10-27

    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.

     
  • Jamie Cameron

    Jamie Cameron - 2015-10-27
    • status: open --> closed-fixed
     

Log in to post a comment.