This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

dhcp server not working anymore

since astaro v4 we have the dhcp server running on the astaro.
Yesterday 10:53 teh dhcp stopped. In teh Logs i found the following

2005:12:19-10:53:49 (none) dhcpd: /etc/dhcpd.conf line 43: expecting numeric value.
2005:12:19-10:53:49 (none) dhcpd: hardware ethernet status;
2005:12:19-10:53:49 (none) dhcpd: ^
2005:12:19-10:53:49 (none) dhcpd: /etc/dhcpd.conf line 44: too few numbers.
2005:12:19-10:53:49 (none) dhcpd: fixed-address 0;
2005:12:19-10:53:49 (none) dhcpd: ^
2005:12:19-10:53:49 (none) dhcpd: Configuration file errors encountered -- exiting


the  line  dhcpd: hardware ethernet status; comes from the Static mapping Table where in the first line under MAC Adress stands the word status.

How can i get rid of this crap ??? 

I neeed a running dhcp server 

tia 
              Thomas Weiss


This thread was automatically locked due to age.
Parents
  • Hello,

    please post the file /etc/wfe/conf/dhcpd

    Thank you.

    Regards,

    Daniel
  • Hi,
    thanks for the answer.
    The /etc/wfe/conf/dhcpd is still ok, but in the file 
    /var/sec/chroot-dhcps/etc/dhcpd.conf is the following
    wrong entry:

      host 0 {
        hardware ethernet status;
        fixed-address 0;
      }

    Deleting this entry has no effect, because its overwritten
    every few minutes. This comes from the config database
    of ASL

    Greetings
    Dirk
  • Hi Dirk,

    /etc/wfe/conf/dhcpd is the "config database" that is used to create /var/sec/chroot-dhcps/etc/dhcpd.conf 

    Please post the file.

    Thank you.

    Kind Regards,

    Daniel
  • Hi Daniel!
    OK, here are the two files i have obly masqueraded a few 
    IP addresses:


    /etc/wfe/conf/dhcpd:
    ----------------------------------------------------
    [VLAN5N192]
    dns1 = xx.xx.xx.xx
    gateway = 192.168.0.1
    itf = VLAN5N192
    range_end = 192.168.0.254
    range_start = 192.168.0.200
    status = 1
    wins_nodetype = 1

    [eth0]
    dns1 = xx.xx.xx.xx
    gateway = xx.xx.xx.1
    itf = eth0
    range_end = xx.xx.xx.254
    range_start = xx.xx.xx.200
    status = 1
    wins_nodetype = 1

    [eth0_comments]
    status = 0

    [eth0_mappings]
    status = 0



    /var/sec/chroot-dhcps/etc/dhcpd.conf:
    ----------------------------------------------------
    #
    # This is the default configfile of the dhcpd server
    #

    allow unknown-clients;

    # deny boot and booting from this dhcp server
    deny bootp;
    allow booting;

    # deny declines to prevent denial of service
    deny declines;

    # Lease times
    # 600s = 5m
    # 14400s = 4h
    # 86400 = 1d
    # 172800 = 2d
    max-lease-time 172800;
    default-lease-time 86400;
    min-lease-time 600;

    # DDNS handling as always
    ddns-update-style ad-hoc;

    local-port 67;
    log-facility daemon;

    # To check if a specific ip address of the subnet is active
    # do a ping check before assigning an ip adress
    ping-checks;

    # only on lease per client is allowed
    one-lease-per-client on;

    group {
      subnet 192.168.0.0 netmask 255.255.255.0 {
         option subnet-mask 255.255.255.0;
         option broadcast-address 192.168.0.255;
         range 192.168.0.200 192.168.0.254;
      }
    option domain-name-servers xx.xx.xx.xx;
    option routers 192.168.0.1;

    option netbios-node-type 1;

    }
    group {
      subnet xx.xx.xx.0 netmask 255.255.255.0 {
         option subnet-mask 255.255.255.0;
         option broadcast-address xx.xx.xx.255;
         range xx.xx.xx.200 xx.xx.xx.254;
      }
      host 0 {
        hardware ethernet status;
        fixed-address 0;
      }
    option domain-name-servers xx.xx.xx.xx;
    option routers xx.xx.xx.1;

    option netbios-node-type 1;

    }
Reply
  • Hi Daniel!
    OK, here are the two files i have obly masqueraded a few 
    IP addresses:


    /etc/wfe/conf/dhcpd:
    ----------------------------------------------------
    [VLAN5N192]
    dns1 = xx.xx.xx.xx
    gateway = 192.168.0.1
    itf = VLAN5N192
    range_end = 192.168.0.254
    range_start = 192.168.0.200
    status = 1
    wins_nodetype = 1

    [eth0]
    dns1 = xx.xx.xx.xx
    gateway = xx.xx.xx.1
    itf = eth0
    range_end = xx.xx.xx.254
    range_start = xx.xx.xx.200
    status = 1
    wins_nodetype = 1

    [eth0_comments]
    status = 0

    [eth0_mappings]
    status = 0



    /var/sec/chroot-dhcps/etc/dhcpd.conf:
    ----------------------------------------------------
    #
    # This is the default configfile of the dhcpd server
    #

    allow unknown-clients;

    # deny boot and booting from this dhcp server
    deny bootp;
    allow booting;

    # deny declines to prevent denial of service
    deny declines;

    # Lease times
    # 600s = 5m
    # 14400s = 4h
    # 86400 = 1d
    # 172800 = 2d
    max-lease-time 172800;
    default-lease-time 86400;
    min-lease-time 600;

    # DDNS handling as always
    ddns-update-style ad-hoc;

    local-port 67;
    log-facility daemon;

    # To check if a specific ip address of the subnet is active
    # do a ping check before assigning an ip adress
    ping-checks;

    # only on lease per client is allowed
    one-lease-per-client on;

    group {
      subnet 192.168.0.0 netmask 255.255.255.0 {
         option subnet-mask 255.255.255.0;
         option broadcast-address 192.168.0.255;
         range 192.168.0.200 192.168.0.254;
      }
    option domain-name-servers xx.xx.xx.xx;
    option routers 192.168.0.1;

    option netbios-node-type 1;

    }
    group {
      subnet xx.xx.xx.0 netmask 255.255.255.0 {
         option subnet-mask 255.255.255.0;
         option broadcast-address xx.xx.xx.255;
         range xx.xx.xx.200 xx.xx.xx.254;
      }
      host 0 {
        hardware ethernet status;
        fixed-address 0;
      }
    option domain-name-servers xx.xx.xx.xx;
    option routers xx.xx.xx.1;

    option netbios-node-type 1;

    }
Children