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
2010/8/9 Richard Gliebe richard.gliebe@fhv.at:
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?
it is working on any other os?
is the dhcp binded to correct interface?
-- Eero, RHCE
On 8/9/10 7:25 AM Eero Volotinen wrote:
it is working on any other os?
I'll try it this afternoon, when I'm onside.
is the dhcp binded to correct interface?
Yes.
# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:1A:64:B6:1D:1C inet addr:192.168.100.2 Bcast:192.168.100.255 Mask:255.255.255.0 inet6 addr: fe80::21a:64ff:feb6:1d1c/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:41880145 errors:0 dropped:0 overruns:0 frame:0 TX packets:32802248 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:50878621928 (47.3 GiB) TX bytes:12014003226 (11.1 GiB) Interrupt:169 Memory:92000000-92012800
and UDP/67 is listening.
# netstat -an | grep -w 67 udp 0 0 0.0.0.0:67 0.0.0.0:*
many thanks Richard
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
<snip>
How about firewalling ... does your firewall allow for a DHCP server?
2010/8/9 Richard Gliebe richard.gliebe@fhv.at:
On 8/9/10 7:42 AM Barry Brimer wrote:
How about firewalling ... does your firewall allow for a DHCP server?
firewall isn't active inside the LAN.
firewall can cause problems on windows machines.. maybe you can try for example ubuntu livecd and test if dhcp client works on that.
-- Eero
On 8/9/10 8:49 AM Eero Volotinen wrote:
2010/8/9 Richard Gliebe richard.gliebe@fhv.at:
On 8/9/10 7:42 AM Barry Brimer wrote:
How about firewalling ... does your firewall allow for a DHCP server?
firewall isn't active inside the LAN.
firewall can cause problems on windows machines.. maybe you can try for example ubuntu livecd and test if dhcp client works on that.
good idea. I'll try it this afternoon which grml ;-)
many thanks Richard
On Mon, Aug 9, 2010 at 1:15 AM, Richard Gliebe richard.gliebe@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@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@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@dellnikon ~]$
-------------------------------------------------------------------------------------
Hope it helps.
Boris.
On Aug 9, 2010, at 9:23 AM, Richard Gliebe richard.gliebe@fhv.at wrote:
On 8/9/10 7:15 AM Richard Gliebe wrote:
Hi all,
dhcpd works as it should.
Problem was a Windows PC (my one and only PC for testing), which is in an AD.
Testing which other PCs, which are in our smb workgroup works fine.
To get it to work for AD clients you need to enter it as an authoritative DHCP server.
-Ross
2010/8/9 Ross Walker rswwalker@gmail.com:
On Aug 9, 2010, at 9:23 AM, Richard Gliebe richard.gliebe@fhv.at wrote:
On 8/9/10 7:15 AM Richard Gliebe wrote:
Hi all,
dhcpd works as it should.
Problem was a Windows PC (my one and only PC for testing), which is in an AD.
Testing which other PCs, which are in our smb workgroup works fine.
To get it to work for AD clients you need to enter it as an authoritative DHCP server.
How to set this? on dhcpd or on ad controller?
-- Eero
On Aug 9, 2010, at 10:05 AM, Eero Volotinen eero.volotinen@iki.fi wrote:
2010/8/9 Ross Walker rswwalker@gmail.com:
On Aug 9, 2010, at 9:23 AM, Richard Gliebe richard.gliebe@fhv.at wrote:
On 8/9/10 7:15 AM Richard Gliebe wrote:
Hi all,
dhcpd works as it should.
Problem was a Windows PC (my one and only PC for testing), which is in an AD.
Testing which other PCs, which are in our smb workgroup works fine.
To get it to work for AD clients you need to enter it as an authoritative DHCP server.
How to set this? on dhcpd or on ad controller?
In AD with the DHCP mgmt tool and manually enter the IP address(es) of the server.
You can then have the server register IPs in DNS on behalf of the clients as well.
-Ross