help :giaddr

Glenn Satchell Glenn.Satchell at uniq.com.au
Tue Oct 14 12:09:42 UTC 2008


I'd try commenting out every unnecessary line and simplify the config
as much as possible. If that works then add lines in one at a time
until it fails.

In particular, what are you trying to achieve with statements like:

> if exists agent.remote-id {
> option agent.remote-id = option agent.remote-id ;
> }

which assigns the value of the option to itself?

My pick is that one of the log fields is set to a null string, so I'd
comment them out for now. eg leased-address may not have a value when
processing a DHCPDISCOVER packet.

And this
  if exists agent.circuit-id
should be
  if exists option agent.circuit-id

unless you want to refer to a variable named agent.circuit-id which
doesn't get assigned anywhere else in the conf file.

Also as Simon said in an earlier post - 3.0.2 is about 4 years old,
there have been 7 or 8 releases since then. Latest is 3.0.7 in the same
stream, or 3.1.1, or 4.1.0alpha-something. 3.0.7 and 3.1.1 are highly
recommended for an upgrade. 4.x if you are keen to test new features or
ipv6.

regards,
-glenn


>Date: Tue, 14 Oct 2008 13:29:15 +0530
>From: "abhijit khadatare" <anks030 at gmail.com>
>To: dhcp-users at isc.org
>Subject: help :giaddr
>
> Hello everybody,
> i'm running   dhcp-3.0.2-34.FC4 whenever  client tries to get ip
> through relay agent putting its giaddr field ,then server throws error
> & exit "segmentation fault" .anyone can help me out plz.

> ddns-update-style interim;
> ignore client-updates;
> default-lease-time  180;
> option ip-forwarding off;
> log(info , ("reading conf file"));
> log(info , ("----------------------------------------------"));
> 
> class "foo" {
> 		match if exists agent.circuit-id;
> 	}
> 
> if exists agent.circuit-id
> {
> 	log (info , concat ("lease for ", binary-to-ascii 
(10,8,".",leased-address),"   is connected to interface   ",binary-to-ascii 
(10,8,"/",substring (option agent.circuit-id,4,2))," (add 1 to port 
number!),VLAN  ", binary-to-ascii (10,16,"",substring (option 
agent.circuit-id,2,2))," on switch  ",binary-to-ascii (16,8,":",substring ( 
option agent.remote-id,2,6))));
> }
> 	log ( info , concat( "Lease for ", 
binary-to-ascii(10,8,".",leased-address), "raw option-82 info is CID: ", 
binary-to-ascii (10,8,".",option agent.circuit-id), " AID:", 
binary-to-ascii(16,8,".",option agent.remote-id)));	
> 
> 
> 
> 
> if exists agent.circuit-id {
> option agent.circuit-id = option agent.circuit-id ;
> 
> log(info , ("echo back circuit-id"));
> 
> }
> 
> if exists agent.remote-id {
> option agent.remote-id = option agent.remote-id ;
> }
> 
> shared-network 224-29 {
>   subnet 192.168.2.0 netmask 255.255.255.0 {
>   }
>   subnet 192.168.1.0 netmask 255.255.255.0 {
>   }
>   pool {
> 
>     allow members of "foo";
>   log(info ,("ur known to me"));
>     range 192.168.1.25 192.168.1.50;
>   }
>   
>   pool {
>     deny members of "foo";
>     ignore unknown-clients;
>     range 192.168.2.140 192.168.2.150;
>   }
>  }



More information about the dhcp-users mailing list