Working on subnet different from DHCP server subnet
Lyle Giese
lyle at lcrcomputer.net
Sun Apr 23 01:16:59 UTC 2006
Jacques VUVANT wrote:
> Hi
>
> I've tried to configure my dhcp server as explain on many howto, but it still not work. Here are configurations:
>
> - dhcp server IP address: 202.87.129.66/27
> - pool I want to allow : 202.87.145.2 to 202.87.145.5
>
> dhcpd.conf
> =========
> option domain-name "test.com";
> option domain-name-servers 202.87.129.35, 202.87.129.34;
> option routers 202.87.129.65;
> ddns-update-style none;
> default-lease-time 14400;
> subnet 202.87.145.0 netmask 255.255.255.224 {
> range 202.87.145.2 202.87.145.5;
> default-lease-time 14400;
> max-lease-time 172800;
> }
> subnet 202.87.129.64 netmask 255.255.255.224 {
> }
>
> With this configuration, I have following message on debug
>
> admin:~ # dhcpd -d -f
> Internet Systems Consortium DHCP Server V3.0.4rc1
> Copyright 2004-2005 Internet Systems Consortium.
> All rights reserved.
> For info, please visit http://www.isc.org/sw/dhcp/
> Wrote 0 leases to leases file.
> Listening on LPF/eth0/00:11:d8:e6:01:52/202.87.129.64/27
> Sending on LPF/eth0/00:11:d8:e6:01:52/202.87.129.64/27
> Sending on Socket/fallback/fallback-net
> DHCPDISCOVER from 00:0d:5e:dc:3b:2c via eth0: network 202.87.129.64/27: no free leases
> DHCPDISCOVER from 00:0d:5e:dc:3b:2c via eth0: network 202.87.129.64/27: no free leases
> DHCPDISCOVER from 00:0d:5e:dc:3b:2c via eth0: network 202.87.129.64/27: no free leases
>
> This configuration should be work. So someone can help me ?
>
> Thanks
>
> Jacques VUVANT
>
>
> ---------------------------------
> Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos services préférés : vérifiez vos nouveaux mails, lancez vos recherches et suivez l'actualité en temps réel. Cliquez ici.
>
>
If your DHCP server is not on the same subnet as the clients you want to
serve, you need a 'helper' to tell the DHCP server that some one from
subnet 202.87.145.0 wants an IP address.
In your case, the server is hearing a broadcast directly from a client
and assumes it needs an IP address from the same subnet as the server is
on. And that is exactly what the message is telling you, I don't have
any availible address on this subnet.
Lyle
More information about the dhcp-users
mailing list