DHCP subnet issue

Michele Pinassi michele.pinassi at unisi.it
Tue Sep 18 08:13:45 UTC 2012


Dear Niall,

thanks for you prompt reply. Here's my net topology:

SUBNET 1 (172.20.1.x) with GW 172.20.1.1
SUBNET 2 (172.20.2.x) with GW 172.20.2.1
....

DHCP server stay on 172.20.1.2 ahd all routers (CISCO) was configured to
relay DHCP requests to this IP.

Here's my actual dhcpd.conf:

ddns-update-style none;

option domain-name "voip.unisi.it";
option domain-name-servers 172.20.1.2;
option ntp-servers 172.20.1.2;
option time-offset 7200;
option tftp-server-name "tftp://config.voip.unisi.it";
option subnet-mask 255.255.255.0;

default-lease-time 7200;
max-lease-time 14400;

authoritative;

allow client-updates;
get-lease-hostnames on;
one-lease-per-client on;

log-facility local7;

#########################################################
# 172.20.1.x - Palazzo Bandini - SRSS
#########################################################
class "subnet_1" {
#    match pick-first-value (option dhcp-client-identifier, hardware);
    match hardware;
}

subclass "subnet_1" 1:00:04:f2:aa:cb:14;
subclass "subnet_1" 1:cc:ef:48:5d:5d:ca;
subclass "subnet_1" 1:cc:ef:48:5d:5d:a5;
subclass "subnet_1" 1:cc:ef:48:5e:8f:e4;
subclass "subnet_1" 1:cc:ef:48:5d:5d:b0;

subnet 172.20.1.0 netmask 255.255.255.0 {
	pool {
    	    range 172.20.1.10 172.20.1.250;
    	    option subnet-mask 255.255.255.0;
	    option routers 172.20.1.1;
	    option tftp-server-name "tftp://config.voip.unisi.it";
	    allow members of "subnet_1";
	}
}

class "subnet_2" {
    match pick-first-value (option dhcp-client-identifier, hardware);
}

subclass "subnet_2" 1:00:15:65:2b:c5:62;
subclass "subnet_2" 1:00:15:65:2b:ba:92;

subnet 172.20.2.0 netmask 255.255.255.0 {
	# Palazzo San Galgano
	pool {
    	    range 172.20.2.10 172.20.2.250;
    	    option subnet-mask 255.255.255.0;
	    option routers 172.20.2.1;
	    option tftp-server-name "config.voip.unisi.it";
	    allow members of "subnet_2";
	}
}

And this is the DHCP log:

DHCPDISCOVER from cc:ef:48:5d:5d:b0 (SEPCCEF485D5DB0) via eth1
DHCPOFFER on 172.20.1.12 to cc:ef:48:5d:5d:b0 (SEPCCEF485D5DB0) via eth1
DHCPREQUEST for 172.20.1.12 (172.20.1.2) from cc:ef:48:5d:5d:b0 via
eth1: lease 172.20.1.12 unavailable.
DHCPNAK on 172.20.1.12 to cc:ef:48:5d:5d:b0 via eth1
DHCPREQUEST for 172.20.1.12 (172.20.1.2) from cc:ef:48:5d:5d:b0 via
eth1: lease 172.20.1.12 unavailable.
DHCPNAK on 172.20.1.12 to cc:ef:48:5d:5d:b0 via eth1

Thanks for the help, Michele

On 18/09/2012 10:04, Niall O'Reilly wrote:
> On 18/09/12 08:48, Michele Pinassi wrote:
>> Any hint ?
> 
> 	You seem to have hidden the information we might need to help
> 	you by editing your configuration and log.
> 
> 	You mention
> 
>> I configure one shared network with two subnets
> 
> 	but show one shared network with one subnet and two pools.
> 
> 	You mention 'subnet_2' but don't expose its definition.
> 
> 	Kind regards,
> 	Niall O'Reilly
> 
-- 
Michele Pinassi
Responsabile Telefonia di Ateneo
Servizio Reti, Sistemi e Sicurezza Informatica - Università degli Studi
di Siena
tel: 0577.(23)2169 - fax: 0577.(23)2053

Per trovare una soluzione rapida ai tuoi problemi tecnici
consulta le FAQ di Ateneo, http://www.faq.unisi.it
-------------- next part --------------
A non-text attachment was scrubbed...
Name: michele_pinassi.vcf
Type: text/x-vcard
Size: 486 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20120918/427c3d69/attachment.vcf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20120918/427c3d69/attachment.bin>


More information about the dhcp-users mailing list