FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora/Linux Management Tools

 
 
LinkBack Thread Tools
 
Old 06-02-2008, 06:58 PM
Ole Ersoy
 
Default DHCP Troubleshooting

Hi,

I've been attempting an install for a while now and playing around with a lot of settings. At this point my client just says "No DHCP Lease Offer Received". However /var/log/messages looks like this:

Jun 2 12:55:05 localhost dhcpd: DHCPDISCOVER from 00:16:ec:cc:d1:f6 via eth0
Jun 2 12:55:05 localhost dhcpd: DHCPOFFER on 192.168.1.2 to 00:16:ec:cc:d1:f6 via eth0
Jun 2 12:55:28 localhost dhcpd: DHCPDISCOVER from 00:16:ec:cc:d1:f6 via eth0
Jun 2 12:55:28 localhost dhcpd: DHCPOFFER on 192.168.1.2 to 00:16:ec:cc:d1:f6 via eth0
Jun 2 12:55:30 localhost dhcpd: DHCPDISCOVER from 00:16:ec:cc:d1:f6 via eth0
Jun 2 12:55:30 localhost dhcpd: DHCPOFFER on 192.168.1.2 to 00:16:ec:cc:d1:f6 via eth0
Jun 2 12:55:34 localhost dhcpd: DHCPDISCOVER from 00:16:ec:cc:d1:f6 via eth0
Jun 2 12:55:34 localhost dhcpd: DHCPOFFER on 192.168.1.2 to 00:16:ec:cc:d1:f6 via eth0
Jun 2 12:55:42 localhost dhcpd: DHCPDISCOVER from 00:16:ec:cc:d1:f6 via eth0
Jun 2 12:55:42 localhost dhcpd: DHCPOFFER on 192.168.1.2 to 00:16:ec:cc:d1:f6 via eth0

So it looks like the client is asking for a lease, and the server is responding with one, but the client does not see it...Could it be that the dhcp configuration is sending something the client does not understand? My configuration file looks like this?

ddns-update-style interim;

allow booting;
allow bootp;
#if $omapi_enabled
omapi-port $omapi_port;
#end if

ignore client-updates;
set vendorclass = option vendor-class-identifier;

subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
range dynamic-bootp 192.168.1.100 192.168.1.254;
filename "pxelinux.0";
default-lease-time 21600;
max-lease-time 43200;
next-server $next_server;
}

$insert_cobbler_system_definitions

It's weird because the client was getting a lease earlier today, right up to the point where I actually managed to almost install a distro using cobbler (Almost because there was a hiccup in the kickstart template), and since then I've tried various permutations of all the settings including:

- removing the system added
- removing the profile (Just testing pure dhcp)

- Toggling omapi_enabled
- Running with non managed dhcp (Similar configuration)
- Reinstalling cobbler and setting everything up from scratch
- Double check that DHCP is disabled on the router
- Completely disabled the firewall
- ...

I used yum to reinstall and it looks like cobbler-1.0.0-2.fc has made it into the repository now, so that's what I'm running with.

Any ideas?

TIA,
- Ole


_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 06-02-2008, 07:07 PM
Pablo Iranzo Gmez
 
Default DHCP Troubleshooting

Ole, try with

authoritative;





--
Pablo Iranzo Gómez
(http://Alufis35.uv.es/~iranzo/)
(PGPKey Available on http://www.uv.es/~iranzop/PGPKey.pgp)
--
Postulado de Boling sobre la Ley de Murphy:

Si se encuentra bien, no se preocupe. Se le pasará

On Mon, 2 Jun 2008, Ole Ersoy wrote:

> Hi,
>
> I've been attempting an install for a while now and playing around with a lot of settings. At this point my client just says "No DHCP Lease Offer Received". However /var/log/messages looks like this:
>
> Jun 2 12:55:05 localhost dhcpd: DHCPDISCOVER from 00:16:ec:cc:d1:f6 via eth0
> Jun 2 12:55:05 localhost dhcpd: DHCPOFFER on 192.168.1.2 to 00:16:ec:cc:d1:f6 via eth0
> Jun 2 12:55:28 localhost dhcpd: DHCPDISCOVER from 00:16:ec:cc:d1:f6 via eth0
> Jun 2 12:55:28 localhost dhcpd: DHCPOFFER on 192.168.1.2 to 00:16:ec:cc:d1:f6 via eth0
> Jun 2 12:55:30 localhost dhcpd: DHCPDISCOVER from 00:16:ec:cc:d1:f6 via eth0
> Jun 2 12:55:30 localhost dhcpd: DHCPOFFER on 192.168.1.2 to 00:16:ec:cc:d1:f6 via eth0
> Jun 2 12:55:34 localhost dhcpd: DHCPDISCOVER from 00:16:ec:cc:d1:f6 via eth0
> Jun 2 12:55:34 localhost dhcpd: DHCPOFFER on 192.168.1.2 to 00:16:ec:cc:d1:f6 via eth0
> Jun 2 12:55:42 localhost dhcpd: DHCPDISCOVER from 00:16:ec:cc:d1:f6 via eth0
> Jun 2 12:55:42 localhost dhcpd: DHCPOFFER on 192.168.1.2 to 00:16:ec:cc:d1:f6 via eth0
>
> So it looks like the client is asking for a lease, and the server is responding with one, but the client does not see it...Could it be that the dhcp configuration is sending something the client does not understand? My configuration file looks like this?
>
> ddns-update-style interim;
>
> allow booting;
> allow bootp;
> #if $omapi_enabled
> omapi-port $omapi_port;
> #end if
>
> ignore client-updates;
> set vendorclass = option vendor-class-identifier;
>
> subnet 192.168.1.0 netmask 255.255.255.0 {
> option routers 192.168.1.1;
> option subnet-mask 255.255.255.0;
> range dynamic-bootp 192.168.1.100 192.168.1.254;
> filename "pxelinux.0";
> default-lease-time 21600;
> max-lease-time 43200;
> next-server $next_server;
> }
>
> $insert_cobbler_system_definitions
>
> It's weird because the client was getting a lease earlier today, right up to the point where I actually managed to almost install a distro using cobbler (Almost because there was a hiccup in the kickstart template), and since then I've tried various permutations of all the settings including:
>
> - removing the system added
> - removing the profile (Just testing pure dhcp)
> - Toggling omapi_enabled
> - Running with non managed dhcp (Similar configuration)
> - Reinstalling cobbler and setting everything up from scratch
> - Double check that DHCP is disabled on the router
> - Completely disabled the firewall
> - ...
>
> I used yum to reinstall and it looks like cobbler-1.0.0-2.fc has made it into the repository now, so that's what I'm running with.
>
> Any ideas?
>
> TIA,
> - Ole
>
>
> _______________________________________________
> et-mgmt-tools mailing list
> et-mgmt-tools@redhat.com
> https://www.redhat.com/mailman/listinfo/et-mgmt-tools
>

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 06-02-2008, 07:29 PM
Ole Ersoy
 
Default DHCP Troubleshooting

Pablo,

I tried. Still no love. I tried it with both cobbler managed dhcp and the non-managed one.

This is how I added it to the dhcp.template

ddns-update-style interim;
authoritative;

Does that look right?

Thanks,
Ole


Pablo Iranzo Gmez wrote:


Ole, try with

authoritative;







_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 06-02-2008, 07:49 PM
Pablo Iranzo Gómez
 
Default DHCP Troubleshooting

It looks like that

Mine is:
# ************************************************** ****************
# Cobbler managed dhcpd.conf file
#
# generated from cobbler dhcp.conf template ($date)
#
# ************************************************** ****************
#option
host-name=concat("equipo-",substring(binary-to-ascii(10,8,".",leased-address),9,3));

set vendorclass = option vendor-class-identifier;
ddns-update-style interim;
use-host-decl-names on;
allow unknown-clients;
default-lease-time 14400;
max-lease-time 28800;
authoritative;
#if $omapi_enabled
omapi-port $omapi_port;
#end if
option wpad-url code 252 = text;
option wpad-url "http://1.1.3.1/wpad.dat ";
allow booting;
allow bootp;
ignore client-updates;
filename "/pxelinux.0";
default-lease-time 21600;
max-lease-time 43200;
next-server $next_server;
option domain-name "";

subnet 1.1.1.0 netmask 255.255.255.0 {
option domain-name-servers 1.1.1.1;
range 1.1.1.3 1.1.1.254;
option broadcast-address 1.1.1.255;
option routers 1.1.1.1;
option netbios-name-servers 1.1.1.1;
option netbios-node-type 8;
option ntp-servers 1.1.1.1;
}


$insert_cobbler_system_definitions

------------------------------------------------

Change ranges and test on yours just to be sure






--
Pablo Iranzo Gómez
(http://Alufis35.uv.es/~iranzo/)
(PGPKey Available on http://www.uv.es/~iranzop/PGPKey.pgp)
--
Postulado de Boling sobre la Ley de Murphy:

Si se encuentra bien, no se preocupe. Se le pasará

On Mon, 2 Jun 2008, Ole Ersoy wrote:

> Pablo,
>
> I tried. Still no love. I tried it with both cobbler managed dhcp and the non-managed one.
>
> This is how I added it to the dhcp.template
>
> ddns-update-style interim;
> authoritative;
>
> Does that look right?
>
> Thanks,
> Ole
>
>
> Pablo Iranzo G� wrote:
> >
> > Ole, try with
> >
> > authoritative;
> >
> >
> >
> >
> >
>
> _______________________________________________
> et-mgmt-tools mailing list
> et-mgmt-tools@redhat.com
> https://www.redhat.com/mailman/listinfo/et-mgmt-tools
>

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 06-02-2008, 08:02 PM
Ole Ersoy
 
Default DHCP Troubleshooting

I tried changing the range to 192.168.1.10 - 192.168.1.254. Same result:

[root@localhost yum.repos.d]# vi /etc/cobbler/dhcp.template (Did the change)
[root@localhost yum.repos.d]# cobbler sync
Shutting down dhcpd: [ OK ]
Starting dhcpd: [ OK ]
[root@localhost yum.repos.d]# tail /var/log/messages
Jun 2 14:55:05 localhost dhcpd: Sending on LPF/eth0/00:0e:a6:65:57:99/192.168.1/24
Jun 2 14:55:05 localhost dhcpd: Sending on Socket/fallback/fallback-net
Jun 2 14:55:48 localhost dhcpd: DHCPDISCOVER from 00:16:ec:cc:d1:f6 via eth0
Jun 2 14:55:49 localhost dhcpd: DHCPOFFER on 192.168.1.253 to 00:16:ec:cc:d1:f6 via eth0
Jun 2 14:55:50 localhost dhcpd: DHCPDISCOVER from 00:16:ec:cc:d1:f6 via eth0
Jun 2 14:55:50 localhost dhcpd: DHCPOFFER on 192.168.1.253 to 00:16:ec:cc:d1:f6 via eth0
Jun 2 14:55:54 localhost dhcpd: DHCPDISCOVER from 00:16:ec:cc:d1:f6 via eth0
Jun 2 14:55:54 localhost dhcpd: DHCPOFFER on 192.168.1.253 to 00:16:ec:cc:d1:f6 via eth0
Jun 2 14:56:02 localhost dhcpd: DHCPDISCOVER from 00:16:ec:cc:d1:f6 via eth0
Jun 2 14:56:02 localhost dhcpd: DHCPOFFER on 192.168.1.253 to 00:16:ec:cc:d1:f6 via eth0

The client asks, DHCP offers, and the client asks again....weird right?

Ole




Pablo Iranzo Gómez wrote:

It looks like that

Mine is:
# ************************************************** ****************
# Cobbler managed dhcpd.conf file
#
# generated from cobbler dhcp.conf template ($date)
#
# ************************************************** ****************
#option
host-name=concat("equipo-",substring(binary-to-ascii(10,8,".",leased-address),9,3));

set vendorclass = option vendor-class-identifier;
ddns-update-style interim;
use-host-decl-names on;
allow unknown-clients;
default-lease-time 14400;
max-lease-time 28800;
authoritative;
#if $omapi_enabled
omapi-port $omapi_port;
#end if
option wpad-url code 252 = text;
option wpad-url "http://1.1.3.1/wpad.dat ";
allow booting;
allow bootp;
ignore client-updates;
filename "/pxelinux.0";
default-lease-time 21600;
max-lease-time 43200;
next-server $next_server;
option domain-name "";

subnet 1.1.1.0 netmask 255.255.255.0 {
option domain-name-servers 1.1.1.1;
range 1.1.1.3 1.1.1.254;
option broadcast-address 1.1.1.255;
option routers 1.1.1.1;
option netbios-name-servers 1.1.1.1;
option netbios-node-type 8;
option ntp-servers 1.1.1.1;
}


$insert_cobbler_system_definitions


------------------------------------------------

Change ranges and test on yours just to be sure








_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 06-02-2008, 10:26 PM
Pablo Iranzo Gómez
 
Default DHCP Troubleshooting

When I got that was because my client has an invalid mac address,
but your's looks ok, try changing mac address (if you can) on your client
with ifconfig eth0 hw ether 00:01:02:03:04:05 and then run dhclient eth0
to check if this does the trick, if so, will look into clearing leases and
host entries to make it start from zero.

Regards
Pablo


--
Pablo Iranzo Gómez
(http://Alufis35.uv.es/~iranzo/)
(PGPKey Available on http://www.uv.es/~iranzop/PGPKey.pgp)
--
Postulado de Boling sobre la Ley de Murphy:

Si se encuentra bien, no se preocupe. Se le pasará

On Mon, 2 Jun 2008, Ole Ersoy wrote:

> I tried changing the range to 192.168.1.10 - 192.168.1.254. Same result:
>
> [root@localhost yum.repos.d]# vi /etc/cobbler/dhcp.template (Did the change)
> [root@localhost yum.repos.d]# cobbler sync
> Shutting down dhcpd: [ OK ]
> Starting dhcpd: [ OK ]
> [root@localhost yum.repos.d]# tail /var/log/messages
> Jun 2 14:55:05 localhost dhcpd: Sending on LPF/eth0/00:0e:a6:65:57:99/192.168.1/24
> Jun 2 14:55:05 localhost dhcpd: Sending on Socket/fallback/fallback-net
> Jun 2 14:55:48 localhost dhcpd: DHCPDISCOVER from 00:16:ec:cc:d1:f6 via eth0
> Jun 2 14:55:49 localhost dhcpd: DHCPOFFER on 192.168.1.253 to 00:16:ec:cc:d1:f6 via eth0
> Jun 2 14:55:50 localhost dhcpd: DHCPDISCOVER from 00:16:ec:cc:d1:f6 via eth0
> Jun 2 14:55:50 localhost dhcpd: DHCPOFFER on 192.168.1.253 to 00:16:ec:cc:d1:f6 via eth0
> Jun 2 14:55:54 localhost dhcpd: DHCPDISCOVER from 00:16:ec:cc:d1:f6 via eth0
> Jun 2 14:55:54 localhost dhcpd: DHCPOFFER on 192.168.1.253 to 00:16:ec:cc:d1:f6 via eth0
> Jun 2 14:56:02 localhost dhcpd: DHCPDISCOVER from 00:16:ec:cc:d1:f6 via eth0
> Jun 2 14:56:02 localhost dhcpd: DHCPOFFER on 192.168.1.253 to 00:16:ec:cc:d1:f6 via eth0
>
> The client asks, DHCP offers, and the client asks again....weird right?
>
> Ole
>
>
>
>
> Pablo Iranzo Gómez wrote:
> > It looks like that
> >
> > Mine is:
> > # ************************************************** ****************
> > # Cobbler managed dhcpd.conf file
> > #
> > # generated from cobbler dhcp.conf template ($date)
> > #
> > # ************************************************** ****************
> > #option
> > host-name=concat("equipo-",substring(binary-to-ascii(10,8,".",leased-address),9,3));
> >
> > set vendorclass = option vendor-class-identifier;
> > ddns-update-style interim;
> > use-host-decl-names on;
> > allow unknown-clients;
> > default-lease-time 14400;
> > max-lease-time 28800;
> > authoritative;
> > #if $omapi_enabled
> > omapi-port $omapi_port;
> > #end if
> > option wpad-url code 252 = text;
> > option wpad-url "http://1.1.3.1/wpad.dat ";
> > allow booting;
> > allow bootp;
> > ignore client-updates;
> > filename "/pxelinux.0";
> > default-lease-time 21600;
> > max-lease-time 43200;
> > next-server $next_server;
> > option domain-name "";
> >
> > subnet 1.1.1.0 netmask 255.255.255.0 {
> > option domain-name-servers 1.1.1.1;
> > range 1.1.1.3 1.1.1.254;
> > option broadcast-address 1.1.1.255;
> > option routers 1.1.1.1;
> > option netbios-name-servers 1.1.1.1;
> > option netbios-node-type 8;
> > option ntp-servers 1.1.1.1;
> > }
> >
> >
> > $insert_cobbler_system_definitions
> > �
> >
> > ------------------------------------------------
> >
> > Change ranges and test on yours just to be sure
> >
> >
> >
> >
> >
> >
>
> _______________________________________________
> et-mgmt-tools mailing list
> et-mgmt-tools@redhat.com
> https://www.redhat.com/mailman/listinfo/et-mgmt-tools
>

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 06-03-2008, 03:06 PM
Ole Ersoy
 
Default DHCP Troubleshooting

Pablo,

In the process of doing what you described below, I noticed the the mask on my network card was set to 255.255.255.240, and on the dhcp configuration I have 255.255.255.0. So I changed the mask on on the network card's configuration (/etc/syscconfig/networking/device/eth0-cfg - For any future thread followers) and now it gets a lease! Thanks again for all the troubleshooting tips.

Ole

Pablo Iranzo Gmez wrote:

When I got that was because my client has an invalid mac address,
but your's looks ok, try changing mac address (if you can) on your client
with ifconfig eth0 hw ether 00:01:02:03:04:05 and then run dhclient eth0
to check if this does the trick, if so, will look into clearing leases and
host entries to make it start from zero.

Regards
Pablo




_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 

Thread Tools




All times are GMT. The time now is 06:53 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org