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
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
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
what is wrong on the router, not sure but my router is 192.168.0.1 what should i do on the router aspect.
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