LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-08-2009, 03:34 AM   #1
perfectpol7
Member
 
Registered: Feb 2009
Posts: 84

Rep: Reputation: 15
problem when configuring dhcp


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
 
Old 05-08-2009, 03:43 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 05-08-2009, 04:36 AM   #3
perfectpol7
Member
 
Registered: Feb 2009
Posts: 84

Original Poster
Rep: Reputation: 15
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;
}
 
Old 05-08-2009, 04:54 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Do you still have an error?? the routers options is still clearly wrong.
 
Old 05-08-2009, 05:31 AM   #5
perfectpol7
Member
 
Registered: Feb 2009
Posts: 84

Original Poster
Rep: Reputation: 15
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
 
Old 05-08-2009, 05:35 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 05-08-2009, 06:11 AM   #7
perfectpol7
Member
 
Registered: Feb 2009
Posts: 84

Original Poster
Rep: Reputation: 15
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
 
Old 05-08-2009, 06:44 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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?
 
Old 05-08-2009, 06:52 AM   #9
perfectpol7
Member
 
Registered: Feb 2009
Posts: 84

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by acid_kewpie View Post
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.
 
Old 05-11-2009, 04:55 AM   #10
perfectpol7
Member
 
Registered: Feb 2009
Posts: 84

Original Poster
Rep: Reputation: 15
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
 
Old 05-11-2009, 05:09 AM   #11
perfectpol7
Member
 
Registered: Feb 2009
Posts: 84

Original Poster
Rep: Reputation: 15
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
 
Old 05-11-2009, 05:11 AM   #12
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
"not working" Why you're just full of useful information aren't you?
 
Old 05-11-2009, 04:52 PM   #13
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
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).
 
Old 05-12-2009, 04:38 AM   #14
perfectpol7
Member
 
Registered: Feb 2009
Posts: 84

Original Poster
Rep: Reputation: 15
thanks, i am still learn linux otherwise this forum have help me a lot because i alway post all sorts of problem I enounter.,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
internet problem: Trouble configuring dhcp someguyonthestreet Linux - Networking 0 02-20-2007 10:49 PM
Problem configuring DHCP on Fedora 4 server khantahirkheli74 Linux - Networking 1 04-05-2006 09:45 PM
configuring dhcp eddie700 Fedora 2 10-09-2005 11:49 AM
configuring ip address without using dhcp sanjaymistry Linux - Networking 3 09-02-2003 03:06 AM
DHCP and DNS and configuring both... wlewis Linux - Networking 2 07-20-2002 02:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration