On Mon, Aug 9, 2010 at 1:15 AM, Richard Gliebe <richard.gliebe at fhv.at> wrote: > > Hi all, > > this is my first post on this list, hope someone can help me. > > I have to run a dhcp server on CentOS release 5.5 (Final). > > # yum list| grep -i dhcp > dhcp.x86_64 12:3.0.5-23.el5 installed > dhcp-devel.x86_64 12:3.0.5-23.el5 installed > dhcpv6-client.x86_64 1.0.10-18.el5 installed > > after starting the dhcpd daemon, the windows Clients on the subnet > (192.168.100.0/24) tells me, that there is no dhcp server available. > > # /etc/init.d/dhcpd configtest > Syntax: OK > > [/var/log/messages] > Aug 9 07:11:14 tfelx01 dhcpd: Internet Systems Consortium DHCP Server > V3.0.5-RedHat > Aug 9 07:11:14 tfelx01 dhcpd: Copyright 2004-2006 Internet Systems > Consortium. > Aug 9 07:11:14 tfelx01 dhcpd: All rights reserved. > Aug 9 07:11:14 tfelx01 dhcpd: For info, please visit > http://www.isc.org/sw/dhcp/ > Aug 9 07:11:14 tfelx01 dhcpd: Wrote 0 leases to leases file. > Aug 9 07:11:14 tfelx01 dhcpd: Listening on > LPF/eth0/00:1a:64:b6:1d:1c/192.168.100/24 > Aug 9 07:11:14 tfelx01 dhcpd: Sending on > LPF/eth0/00:1a:64:b6:1d:1c/192.168.100/24 > Aug 9 07:11:14 tfelx01 dhcpd: Sending on Socket/fallback/fallback-net > > this is my /etc/dhcpd.conf > > # cat /etc/dhcpd.conf > authoritative; > ddns-update-style interim; > subnet 192.168.100.0 netmask 255.255.255.0 { > option routers 192.168.100.11; > option subnet-mask 255.255.255.0; > > option domain-name "<mydomain>.local"; > option domain-name-servers 192.168.100.2; > > option time-offset -18000; # Eastern Standard Time > > range 192.168.100.150 192.168.100.199; > } > > what do I'm missing? or is there a config mismatch? > > many thanks > Richard > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos Richard, I don't have time to go through that config line by line but here is mine that works. It is not perfect, has some unnecessary stuff in it, the domain used is a private domain but like I said it works so it must have at least as much as necessary to make it work. ------------------------------------------------------------------------------------ [bepstein at dellnikon ~]$ more /etc/dhcpd.conf ddns-update-style interim; ignore client-updates; subnet 192.168.65.0 netmask 255.255.255.128 { # --- default gateway option routers 192.168.65.1; option subnet-mask 255.255.255.128; option nis-domain "nrims"; option domain-name "nrims"; option domain-name-servers 192.168.65.1,132.183.243.118,132.183.1.1 1; option time-offset -18000; # Eastern Standard Time # option ntp-servers 192.168.1.1; # option netbios-name-servers 192.168.1.1; # --- Selects point-to-point node (default is hybrid). Don't change this unless # -- you understand Netbios very well # option netbios-node-type 2; default-lease-time 21600; max-lease-time 43200; range 192.168.65.50 192.168.65.125; # we want the nameserver to appear at a fixed address host ns { next-server marvin.redhat.com; hardware ethernet 12:34:56:78:AB:CD; fixed-address 207.175.42.254; } } [bepstein at dellnikon ~]$ ------------------------------------------------------------------------------------- Hope it helps. Boris.