Date: Tue, 28 Jun 2005 11:51:12 -0500 From: Dan Ross <dan.ross@hamiltontel.com> To: Eric Anderson <anderson@centtech.com> Cc: freebsd-isp@freebsd.org Subject: Re: option 82 on isc dhcp Message-ID: <42C18000.8050803@hamiltontel.com> In-Reply-To: <42C16569.2010308@centtech.com> References: <42C070E6.7010705@hamiltontel.com> <42C13B5D.5020705@centtech.com> <42C16363.7080207@hamiltontel.com> <42C16569.2010308@centtech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 >>> >>> >>> >>> >>> > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42C18000.8050803>