webmin dhcp access control violation error

Discussion in 'Server Operation' started by perfectpol7, May 8, 2009.

  1. perfectpol7

    perfectpol7 New Member

    I am running a fedora 10 and need to configure the dhcp server using webmin dhcp and have encountered a Access control violation error. Here is the error message: Error
    Access control violation :

    Internet Systems Consortium DHCP Server 4.0.0
    Copyright 2004-2007 Internet Systems Consortium.
    All rights reserved.
    For info, please visit http://www.isc.org/sw/dhcp/
    /etc/dhcpd.conf line 8: subnet 10.0.0.5 netmask 255.255.255.0: bad subnet number/mask combination.
    subnet 192.168.0.10 netmask 255.255.255.0
    ^
    Configuration file errors encountered -- exiting

    This version of ISC DHCP is based on the release available
    on ftp.isc.org. Features have been added and other changes
    have been made to the base software release in order to make
    it work better with this distribution.

    Please report for this software via the Red Hat Bugzilla site:
    http://bugzilla.redhat.com

    exiting.


    and my /etc/dhcp.conf :-

    this ddns-update-style none;
    #
    # DHCP Server Configuration file.
    # see /usr/share/doc/dhcp*/dhcpd.conf.sample
    # see 'man 5 dhcpd.conf'
    #
    # Graphics Department
    subnet 10.0.0.5 netmask 255.255.255.0 {
    option broadcast-address 10.10.0.255;
    option routers 192.168.0.1;
    range 10.10.0.10 10.10.0.250;
    }
    My server have two ethernet cards, One connects to the router (192.168.0.10) and the one to my LAN which is 10.0.0.5. how do i recover from this violation error
     
  2. topdog

    topdog New Member HowtoForge Supporter

    You can not give hosts on a 10.0.0.0/24 network a gateway in the 192.168.0.0/24 network it just will not work. The gateway has to be in the same network
     
  3. perfectpol7

    perfectpol7 New Member

    I have edit it and to this and the error vanishs. But if i put the IP address of my LAN with is 10.0.0.5 the access violation error appear as a results i remove the last digit to 10.0.0.0 and it works. Here is the output of the dhcp.conf

    ddns-update-style none;
    #
    # DHCP Server Configuration file.
    # see /usr/share/doc/dhcp*/dhcpd.conf.sample
    # see 'man 5 dhcpd.conf'
    #
    # Graphics Department
    subnet 10.0.0.0 netmask 255.255.255.0 {
    option subnet-mask 255.255.255.0;
    option netbios-name-servers 10.0.0.4;
    option broadcast-address 10.0.0.255;
    option routers 192.168.0.1;
    range 10.0.0.70 10.0.0.99;
    }

    When I start the Dhcp server did not assign ip address, not sure what need to be done
     
  4. topdog

    topdog New Member HowtoForge Supporter

    your routers option is still wrong.
     
  5. perfectpol7

    perfectpol7 New Member

    what is wrong on the router, not sure but my router is 192.168.0.1 what should i do on the router aspect.
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Your router is in a totally different subnet (192.168.0.x vs. 10.0.0.x).
     
  7. perfectpol7

    perfectpol7 New Member

    All thanks it now working, but now I have add another subnet called programming with other IP network address not working.

    # Graphics Department
    subnet 10.0.0.0 netmask 255.255.255.0 {
    default-lease-time 86400;
    option subnet-mask 255.255.255.0;
    option netbios-name-servers 10.0.0.4;
    option broadcast-address 10.0.0.255;
    range 10.0.0.70 10.0.0.99;
    }
    # Programming
    subnet 193.10.0.0 netmask 255.255.255.0 {
    max-lease-time 86400;
    default-lease-time 86400;
    option netbios-name-servers 10.0.0.7;
    option domain-name-servers 10.0.0.5;
    option domain-name "perfectpol7.com";
    option broadcast-address 193.10.0.255;
    option subnet-mask 255.255.255.0;
    range 193.10.0.100 193.10.0.200;
    }
    This (programming) not assigning ip address and it is on the same LAN
     
  8. falko

    falko Super Moderator ISPConfig Developer

    193.x is no private subnet.
     

Share This Page