Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
your config is gibberish... not one of your options is even within the subnet you're listening on... AND your error mentions an address (192.168.0.10) which isn't even in the part of the config file you've pasted.
Last edited by acid_kewpie; 05-08-2009 at 03:45 AM.
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;
}
Now need to test it. what should be the router settings. My router in 192.168.0.1
When I click start no errors appear. going to try it about half an hour from now I will update the outcome
your router for that network is not 192.168.0.1. how is a client with an ip of 10.0.0.1 meant to reach other networks outside of it's own /24 subnet when the device needed to do so is not within that network in the first place? it makes no sense at all.
Yes, when i start dhcp server the computers did not get ip addresses. What are the error on the the router issue.I am missing a point here my router is 192.168.0.1. I understand that but what should i put. or should I specific router as 192.168.0.0 not sure
Last edited by perfectpol7; 05-08-2009 at 06:17 AM.
Reason: adding more information
if there is no router in 10.0.0.0/24 then no traffic can ever leave that network. Note that your DHCP server could be the router for that network... is it? have you done anythign about ip forwarding and possible masquerading?
Note that your DHCP server could be the router for that network... is it? have you done anythign about ip forwarding and possible masquerading?
Okay how would I make the DHCP server a to be a router what codes needed to be added on. For ip forwardind and masquerading have never done it and do not not how to do it.
At last the dhcp server now working here is the dhcp.conf which i final have, but the next problem is on the other subnet (programming) with other ip 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 subnetwork is on the same LAN, it is not assigning address as the graphics one
Yea it now working but anothor problem crops up when I added another subnetwork which is not assigning ip address or not working nor error messages about it.
# 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;
}
The subnet "Programming" is on the same LAN, not working
Hehe, same old acid_kewpie. Been away for several years, I come back and nothing has changed!
Perfectpol, if your client machines are in a 10.0.0.x network, then the router (ie their "default gateway") must also be in the 10.0.0.x network. So you need to change one thing or the other. Either change your router's IP address so it is in the 10.0.0.x network range, or change the network range your DHCP configuration is giving out to match your router (192.168.0.x range).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.