Re: dhcpd server failing to start

2011-12-15 Thread Genes MailLists
On 12/15/2011 04:10 PM, Claude Jones wrote:
> The relevant line from my dhcpd.conf is the top one here:
> 
> subnet 192.168.2.1 netmask 255.255.255.0 {
>   range 192.168.2.100 192.168.2.199;
>   option routers 192.168.2.1;
>   default-lease-time 600;
>   max-lease-time 7200;
> 
> From my messages log, it says:
> /etc/dhcp/dhcpd.conf line 9: subnet 192.168.2.1 netmask 255.255.255.0:
> bad subnet number/mask combination.
> 
> Can anyone spot what's wrong with that subnet number/mask combo?
> 

 Try 192.168.1.0 / 255.255.255.0

 gene
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: dhcpd server failing to start

2011-12-15 Thread Genes MailLists
On 12/15/2011 04:21 PM, Genes MailLists wrote:
> On 12/15/2011 04:10 PM, Claude Jones wrote:
>> The relevant line from my dhcpd.conf is the top one here:
>>
>> subnet 192.168.2.1 netmask 255.255.255.0 {

...

> 
>  Try 192.168.1.0 / 255.255.255.0
> 


  typo - your net is 192.168.2.0 / 255.255.255.0



-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: dhcpd server failing to start

2011-12-15 Thread Reindl Harald


Am 15.12.2011 22:10, schrieb Claude Jones:
> /etc/dhcp/dhcpd.conf line 9: subnet 192.168.2.1 netmask 255.255.255.0: bad 
> subnet number/mask combination.
> Can anyone spot what's wrong with that subnet number/mask combo?

192.168.2.1 is not a subnet, 192.168.2.0 is



signature.asc
Description: OpenPGP digital signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: dhcpd server failing to start

2011-12-15 Thread Claude Jones

On 12/15/2011 04:23 PM, Genes MailLists wrote:

On 12/15/2011 04:21 PM, Genes MailLists wrote:

>  On 12/15/2011 04:10 PM, Claude Jones wrote:

>>  The relevant line from my dhcpd.conf is the top one here:
>>
>>  subnet 192.168.2.1 netmask 255.255.255.0 {

...


>
>Try 192.168.1.0 / 255.255.255.0
>


   typo - your net is 192.168.2.0 / 255.255.255.0


I tried both suggestions, singly, and both together though I didn't 
think the forward slash in lieu of "netmask" was right. (I have another 
subnet declaration just above the one it's complaining about that uses 
"netmask", not a "/", and it doesn't gripe about that one, and that's 
the way it's written in the sample dhcpd.conf file that is buried down 
in the dhcpd doc folder in /usr/share/doc/dhcp-4.2.3).


Nothing worked. It's so strange...

--
Claude Jones Brunswick, MD, USA
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: dhcpd server failing to start

2011-12-15 Thread Claude Jones

On 12/15/2011 04:28 PM, Reindl Harald wrote:


Am 15.12.2011 22:10, schrieb Claude Jones:

>  /etc/dhcp/dhcpd.conf line 9: subnet 192.168.2.1 netmask 255.255.255.0: bad 
subnet number/mask combination.
>  Can anyone spot what's wrong with that subnet number/mask combo?

192.168.2.1 is not a subnet, 192.168.2.0 is



yup, changed that, and now the error is different, but the service is 
still failing - it reports:

Not configured to listen on any interfaces!

my whole dhcpd.conf file:

option domain-name "fedoraleesburg.local";
option domain-name-servers 151.197.0.38, 199.45.32.38;
default-lease-time 600;
max-lease-time 7200;
ddns-update-style none;
authoritative;
subnet 192.168.2.0 netmask 255.255.255.0 {
  range 192.168.2.100 192.168.2.199;
  option routers 192.168.2.1;
  default-lease-time 600;
  max-lease-time 7200;
}
--
Claude Jones Brunswick, MD, USA
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: dhcpd server failing to start

2011-12-15 Thread Reindl Harald


Am 15.12.2011 22:56, schrieb Claude Jones:
> On 12/15/2011 04:28 PM, Reindl Harald wrote:
>>
>> Am 15.12.2011 22:10, schrieb Claude Jones:
>>> >  /etc/dhcp/dhcpd.conf line 9: subnet 192.168.2.1 netmask 255.255.255.0: 
>>> > bad subnet number/mask combination.
>>> >  Can anyone spot what's wrong with that subnet number/mask combo?
>> 192.168.2.1 is not a subnet, 192.168.2.0 is
>>
> 
> yup, changed that, and now the error is different, but the service is still 
> failing - it reports:
> Not configured to listen on any interfaces!
> 
> my whole dhcpd.conf file

this has nothing to do with your dhcpd.conf
look at your /etc/sysconfig/dhcpd AND you network-config of the machine
has the machine a 192.168.2.x address?

this below is my config for having dhcp only on internal subnet which
is in my case a brdige between lan-interface and wlan0 because the
machine acts as router/wlan-ap

[root@srv-rhsoft:~]$ cat /etc/sysconfig/dhcpd
# Command line options here
DHCPDARGS=br0



signature.asc
Description: OpenPGP digital signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: dhcpd server failing to start

2011-12-15 Thread Claude Jones

On 12/15/2011 05:04 PM, Reindl Harald wrote:


>  my whole dhcpd.conf file

this has nothing to do with your dhcpd.conf
look at your /etc/sysconfig/dhcpd AND you network-config of the machine
has the machine a 192.168.2.x address?

this below is my config for having dhcp only on internal subnet which
is in my case a brdige between lan-interface and wlan0 because the
machine acts as router/wlan-ap

[root@srv-rhsoft:~]$ cat /etc/sysconfig/dhcpd
# Command line options here
DHCPDARGS=br0



I looked at the file and it was set to "DHCPDARGS=eth1" which is my 
internet NIC; so, I changed that to "DHCPDARGS=eth2" which is my LAN 
NIC, and to your question as to whether I have such an address as 
192.168.2.1, I do, and according to Network Manager, that NIC is 
"connected".


The previous errors being reported in "var/log/messages", the incorrect 
subnet error, and the "Not configured to listen on any interfaces!" 
error, are resolved now.


A new error now being reported is this: "Can't open 
/var/lib/dhcpd/dhcpd.leases for append." and then results in "Unit 
dhcpd.service entered failed state." - I navigated to that file using 
Konqueror running as root, and the file is there and I was able to open 
it just fine...could this be Selinux causing the "unable to open"? I 
just checked sealerts and there are none...


The strange thing about all this is that this was all working the last 
time I had a computer behind this box - it's been awhile but I don't 
know why I would have changed that /sysconfig/dhcpd setting over the 
past months...the mislabeled subnet was probably me when I was trying 
various things to troubleshoot this.


--
Claude Jones Brunswick, MD, USA
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: dhcpd server failing to start

2011-12-15 Thread Genes MailLists
On 12/15/2011 04:45 PM, Claude Jones wrote:

> I tried both suggestions, singly, and both together though I didn't
> think the forward slash in lieu of "netmask" was right. 
> 
> Nothing worked. It's so strange...
> 
bah sorry - the "/" wasn't supposed to be literal  ... i just meant
change the .1 to .0 to make it a proper network address. Of course the
"netmask" key word is correct.

 I see you have fixed that now but have fallen into a different problem :-)
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: dhcpd server failing to start

2011-12-15 Thread Claude Jones

On 12/15/2011 05:57 PM, Genes MailLists wrote:

  I see you have fixed that now but have fallen into a different problem:-)


yeah, layered issues - I'm on #3 now...

--
Claude Jones Brunswick, MD, USA
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: dhcpd server failing to start

2011-12-16 Thread Claude Jones

On 12/15/2011 05:34 PM, Claude Jones wrote:


A new error now being reported is this: "Can't open
/var/lib/dhcpd/dhcpd.leases for append." and then results in "Unit
dhcpd.service entered failed state." - I navigated to that file using
Konqueror running as root, and the file is there and I was able to open
it just fine...could this be Selinux causing the "unable to open"? I
just checked sealerts and there are none...


Googling this can't open dhcpd.leases error found a closed bugzilla 
report - this problem was supposedly fixed, and the bugzilla report was 
marked as closed; I've added a comment which I hope will yield a reply.

https://bugzilla.redhat.com/process_bug.cgi
Here's my comment - the versions of dhcp I'm running are newer than the 
ones cited in the bugzilla comments as having fixed the issue:


I too am having this problem. If I run, as root, "dhcpd eth2" I get:

dhcpd eth2
Internet Systems Consortium DHCP Server 4.2.3-P1
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not
specified in the config file
Listening on LPF/eth2/00:08:54:38:d4:bf/192.168.2.0/24
Sending on   LPF/eth2/00:08:54:38:d4:bf/192.168.2.0/24
Sending on   Socket/fallback/fallback-net
*
DHCPD can be confirmed to be running because machines on my lan can get
addresses
But, when I reboot, I get the following in /var/log/messages and attempts to
renew IP addresses by machines on the lan fail:
*
"Can't open /var/lib/dhcpd/dhcpd.leases for append."
*
My dhcp versions:
*
rpm -qa | grep dhcp
dhcp-libs-4.2.3-4.P1.fc16.x86_64
gadmin-dhcpd-0.4.9-0.1.rhfc12.nr.i686
dhcp-4.2.3-4.P1.fc16.x86_64
dhcp-common-4.2.3-4.P1.fc16.x86_64

--
Claude Jones Brunswick, MD, USA
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: dhcpd server failing to start [Solved]

2011-12-16 Thread Claude Jones

On 12/16/2011 10:28 AM, Claude Jones wrote:

On 12/15/2011 05:34 PM, Claude Jones wrote:


A new error now being reported is this: "Can't open
/var/lib/dhcpd/dhcpd.leases for append." and then results in "Unit
dhcpd.service entered failed state." - I navigated to that file using
Konqueror running as root, and the file is there and I was able to open
it just fine...could this be Selinux causing the "unable to open"? I
just checked sealerts and there are none...


Googling this can't open dhcpd.leases error found a closed bugzilla
report - this problem was supposedly fixed, and the bugzilla report was
marked as closed; I've added a comment which I hope will yield a reply.
https://bugzilla.redhat.com/process_bug.cgi


This turned out to be an issue with the permissions on dhcpd.leases 
file. The owner of the bug from Redhat responded in timely fashion and 
suggested a few things. I discovered that the file permissions had been 
set to root:root and I changed them to dhcpd:dhcpd - then, I discovered 
that the dhcpd service had been disabled at some point along the way. 
Running "systemctl enable dhcpd.service" as root set it to autostart at 
boot. After making those two changes and rebooting, I now have dhcp 
server working again. Thanks to all for your help in this three-layered 
problem.


--
Claude Jones Brunswick, MD, USA
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org