From owner-freebsd-isp@FreeBSD.ORG Tue Jun 28 16:49:18 2005 Return-Path: X-Original-To: freebsd-isp@freebsd.org Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A9F8016A41C for ; Tue, 28 Jun 2005 16:49:18 +0000 (GMT) (envelope-from dan.ross@hamiltontel.com) Received: from hamilton.net (mail.hamiltontel.com [208.6.238.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A34F43D49 for ; Tue, 28 Jun 2005 16:49:18 +0000 (GMT) (envelope-from dan.ross@hamiltontel.com) Received: from [208.6.238.24] (HELO [192.168.50.4]) by hamilton.net (CommuniGate Pro SMTP 4.1.8) with ESMTP id 160978418; Tue, 28 Jun 2005 11:49:21 -0500 Message-ID: <42C18000.8050803@hamiltontel.com> Date: Tue, 28 Jun 2005 11:51:12 -0500 From: Dan Ross User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Eric Anderson References: <42C070E6.7010705@hamiltontel.com> <42C13B5D.5020705@centtech.com> <42C16363.7080207@hamiltontel.com> <42C16569.2010308@centtech.com> In-Reply-To: <42C16569.2010308@centtech.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-isp@freebsd.org Subject: Re: option 82 on isc dhcp X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2005 16:49:18 -0000 lease-file-name "/var/db/dhcpd.leases"; ddns-update-style none; authoritative; option agent.circuit-id 2 ; default-lease-time 3100; # 51 minutes. max-lease-time 604800; # 1 week subnet 10.10.10.0 netmask 255.255.255.0 { option routers 10.10.10.1; option subnet-mask 255.255.255.0; option broadcast-address 10.10.10.255; # The latest input from layer-9 required us to shift the dynamic # range from the top half of the subnet down to the bottom half. # This pool clause will elicit NAKs for the old leases while the # clients migrate. Remember to remove this once they've all booted # once or expired. pool { range 10.10.10.12 10.10.10.127; } if exists agent.circuit-id { log ( info, concat( "Lease for ", binary-to-ascii (10, 8, ".", leased-ad dress), " is connected to interface ", binary-to-ascii (10, 8, "/", suffix ( option agent.circuit-id, 2)), " (a dd 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-ad dress), " raw option-82 info is CID: ", binary-to-ascii (10, 8, ".", option agen t.circuit-id), " AID: ", binary-to-ascii(16, 8, ".", option agent.remote-id))); Eric Anderson wrote: > Dan Ross wrote: > >> Eric, >> Thanks I have tried using that in my conf file but the original >> author didnt seem to know where he got his stuff for data entries. I >> am struggling to even understand his logging entry in the conf file. >> How does one submit a mail to the isc-org. dhcp server mailing >> list. I have the entry in my conf file but no entries are added to >> my log file even though the server spews out an address. Any ideas? > > > Can you post your config file? (minus any extra junk we don't need) > > Eric > > > >> Eric Anderson wrote: >> >>> Dan Ross wrote: >>> >>>> Hello; >>>> I am trying to configure my freebsd ISC dhcp server to support and >>>> log option 82 requests. Can anybody direct me to a how to page or >>>> even maybe render some assistance if they have done this before? >>> >>> >>> >>> >>> I don't know all the details, but maybe these snippets and links can >>> help you: >>> >>> agent.circuit-id is also known as option 82 >>> >>> http://www.archivum.info/dhcp-server%40isc.org/2005-02/msg00026.html >>> http://www.archivum.info/dhcp-server%40isc.org/2005-06/msg00142.html >>> >>> man dhcp-options >>> man dhcp-eval >>> >>> http://www.faqs.org/rfcs/rfc3046.html >>> >>> dhcpd.conf hints: >>> Top of dhcpd.conf (you may have to do this, you may not): >>> option agent.circuit-id code 82 = string; # is it a string? >>> >>> That's all I could conjure up.. >>> >>> Eric >>> >>> >>> >>> >>> > >