Send dhcp-users mailing list submissions to dhcp-users@lists.isc.org
To subscribe or unsubscribe via the World Wide Web, visit https://lists.isc.org/mailman/listinfo/dhcp-users or, via email, send a message with subject or body 'help' to dhcp-users-requ...@lists.isc.org You can reach the person managing the list at dhcp-users-ow...@lists.isc.org When replying, please edit your Subject line so it is more specific than "Re: Contents of dhcp-users digest..." Today's Topics: 1. Re: How to access delegated prefix (Andr? Keller) 2. Option 82 logging on dhcpd 4.1.1 and red hat 6 (project722) 3. Re: Option 82 logging on dhcpd 4.1.1 and red hat 6 (Alex Moen) 4. Re: Option 82 logging on dhcpd 4.1.1 and red hat 6 (project722) 5. Re: Option 82 logging on dhcpd 4.1.1 and red hat 6 (project722) ---------------------------------------------------------------------- Message: 1 Date: Tue, 4 Oct 2016 14:15:10 +0200 From: Andr? Keller <a...@list.ak.cx> To: dhcp-users@lists.isc.org Subject: Re: How to access delegated prefix Message-ID: <e892903f-cdb3-3546-871c-3a5cbf08d...@list.ak.cx> Content-Type: text/plain; charset=utf-8 Hi Mike, On 03.10.2016 21:05, Mike wrote: > On 10/1/2016 9:26 AM, Andr? Keller wrote: >> Any idea how I can access the PD reply sent by the server? > > I obtain the PD delegated by using the environment variables passed in > to the dhclient-exit-hooks script. I have no dhclient running. I need to have this information available on the dhcp server handing out the prefix. Regards Andr? ------------------------------ Message: 2 Date: Tue, 4 Oct 2016 10:27:47 -0500 From: project722 <project...@gmail.com> To: dhcp-users@lists.isc.org Subject: Option 82 logging on dhcpd 4.1.1 and red hat 6 Message-ID: <CAPBQMZC5cSGvycMHqfRZWkFwT=-g-hnnsj2+ctpba79k_ry...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Hello DHCP experts! We are implementing Option 82 in our network and I am just scratching the surface of how to setup my server. I have successfully created my first Option 82 ACL based on the agent circuit ID that is contained in the packet, now I just need guidance on how I get the Option 82 data into the logs. Here is my O82 setup on the server: ## Option 82 Class class "myvendor" { match if option agent.circuit-id = 00:04:00:6b:00:84; } # Test Option 82 logging if exists agent.circuit-id { log (info, concat( "Lease for ", option agent.circuit-id (leased-address), "is an address assigned using Option82")); } pool { allow members of "myvendor"; range x.x.x.x x.x.x.x; } The problem I am having is when I go to check the conf before restarting dhcpd I am getting the error: etc/dhcp/dhcpd.conf line 135: right parenthesis expected. log (info, concat( "Lease for ", option agent.circuit-id ( ^ Can anyone tell me what I am doing wrong and how to fix this error? -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20161004/1d2d6d2a/attachment-0001.html> ------------------------------ Message: 3 Date: Tue, 4 Oct 2016 11:12:32 -0500 From: Alex Moen <al...@ndtel.com> To: dhcp-users@lists.isc.org Subject: Re: Option 82 logging on dhcpd 4.1.1 and red hat 6 Message-ID: <c3767693-56f0-a28b-c225-2f9960ad0...@ndtel.com> Content-Type: text/plain; charset=utf-8; format=flowed Just comparing with mine, it seems that the "option agent.circuit-id" needs to be in parens. And, I don't know the use of the "(leased-address)" is. So, try this: ----------------------------------------------------- ## Option 82 Class class "myvendor" { match if option agent.circuit-id = 00:04:00:6b:00:84; } # Test Option 82 logging if exists agent.circuit-id { log (info, concat( "Lease for ", binary-to-ascii (10, 8, ".", leased-address), " with circuit-id ", (option agent.circuit-id), " is assigned using Option82" )); } pool { allow members of "myvendor"; range x.x.x.x x.x.x.x; } ----------------------------------------------------- This should give you a line that looks something like: Lease for 192.168.0.10 with circuit-id Ethernet 5 is assigned using Option82 Obviously, your circuit-id will most likely be something other than "Ethernet 5", but you get the idea. If I'm way off base, someone please correct me! Good luck, Alex On 10/04/2016 10:27 AM, project722 wrote: > Hello DHCP experts! We are implementing Option 82 in our network and I > am just scratching the surface of how to setup my server. I have > successfully created my first Option 82 ACL based on the agent circuit > ID that is contained in the packet, now I just need guidance on how I > get the Option 82 data into the logs. Here is my O82 setup on the server: > > ## Option 82 Class > class "myvendor" { > match if option agent.circuit-id = 00:04:00:6b:00:84; > } > > # Test Option 82 logging > if exists agent.circuit-id > { > log (info, concat( "Lease for ", option agent.circuit-id > (leased-address), "is an address assigned using Option82")); > } > > pool { > allow members of "myvendor"; > range x.x.x.x x.x.x.x; > } > > The problem I am having is when I go to check the conf before > restarting dhcpd I am getting the error: > > etc/dhcp/dhcpd.conf line 135: right parenthesis expected. > log (info, concat( "Lease for ", option agent.circuit-id ( > ^ > Can anyone tell me what I am doing wrong and how to fix this error? > > > _______________________________________________ > dhcp-users mailing list > dhcp-users@lists.isc.org > https://lists.isc.org/mailman/listinfo/dhcp-users -- Alex Moen NSTII Calix System Specialist North Dakota Telephone Company 701-662-6481 ------------------------------ Message: 4 Date: Tue, 4 Oct 2016 11:25:52 -0500 From: project722 <project...@gmail.com> To: Users of ISC DHCP <dhcp-users@lists.isc.org> Subject: Re: Option 82 logging on dhcpd 4.1.1 and red hat 6 Message-ID: <capbqmzdux4smvjfo7fm6snorgxuzycbzp+wce3fpfhyi8fp...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Alfred - thanks but your setup is much more complex than mine. Alex, I have put in the changes as you suggested and it passed validation. I'll report back what the logs look like or if I have any further problems. Thanks! On Tue, Oct 4, 2016 at 11:12 AM, Alex Moen <al...@ndtel.com> wrote: > Just comparing with mine, it seems that the "option agent.circuit-id" > needs to be in parens. And, I don't know the use of the "(leased-address)" > is. So, try this: > > ----------------------------------------------------- > ## Option 82 Class > class "myvendor" { > match if option agent.circuit-id = 00:04:00:6b:00:84; > } > > # Test Option 82 logging > if exists agent.circuit-id > { > log (info, concat( > "Lease for ", binary-to-ascii (10, 8, ".", leased-address), > " with circuit-id ", (option agent.circuit-id), > " is assigned using Option82" > )); > } > > pool { > allow members of "myvendor"; > range x.x.x.x x.x.x.x; > } > ----------------------------------------------------- > > This should give you a line that looks something like: > > Lease for 192.168.0.10 with circuit-id Ethernet 5 is assigned using > Option82 > > Obviously, your circuit-id will most likely be something other than > "Ethernet 5", but you get the idea. > > If I'm way off base, someone please correct me! > > Good luck, > > Alex > > > > On 10/04/2016 10:27 AM, project722 wrote: > >> Hello DHCP experts! We are implementing Option 82 in our network and I am >> just scratching the surface of how to setup my server. I have successfully >> created my first Option 82 ACL based on the agent circuit ID that is >> contained in the packet, now I just need guidance on how I get the Option >> 82 data into the logs. Here is my O82 setup on the server: >> >> ## Option 82 Class >> class "myvendor" { >> match if option agent.circuit-id = 00:04:00:6b:00:84; >> } >> >> # Test Option 82 logging >> if exists agent.circuit-id >> { >> log (info, concat( "Lease for ", option agent.circuit-id >> (leased-address), "is an address assigned using Option82")); >> } >> >> pool { >> allow members of "myvendor"; >> range x.x.x.x x.x.x.x; >> } >> >> The problem I am having is when I go to check the conf before restarting >> dhcpd I am getting the error: >> >> etc/dhcp/dhcpd.conf line 135: right parenthesis expected. >> log (info, concat( "Lease for ", option agent.circuit-id ( >> ^ >> Can anyone tell me what I am doing wrong and how to fix this error? >> >> >> _______________________________________________ >> dhcp-users mailing list >> dhcp-users@lists.isc.org >> https://lists.isc.org/mailman/listinfo/dhcp-users >> > > > -- > Alex Moen > NSTII > Calix System Specialist > North Dakota Telephone Company > 701-662-6481 > > _______________________________________________ > dhcp-users mailing list > dhcp-users@lists.isc.org > https://lists.isc.org/mailman/listinfo/dhcp-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20161004/40f3bf03/attachment-0001.html> ------------------------------ Message: 5 Date: Tue, 4 Oct 2016 11:49:25 -0500 From: project722 <project...@gmail.com> To: Users of ISC DHCP <dhcp-users@lists.isc.org> Subject: Re: Option 82 logging on dhcpd 4.1.1 and red hat 6 Message-ID: <CAPBQMZDN5RDQALZqFbQ=fdzqevmdcshonv-0soar2g0luau...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Hmmm.. OK here is the log for the test client. Oct 4 11:39:20 dhcpd: Lease for X.X.X.X with circuit-id That's all it said. I know that my ACL class for circuit id works as it was allowed to get an IP address. The log line reported back the correct IP so I know that the "Lease for ", binary-to-ascii (10, 8, ".", leased-address), Line in my logging clause works. But why did it stop there? Do I need to remove the parethesis around "option agent.circuit-id" since I am not using parenthesis in my ACL class? On Tue, Oct 4, 2016 at 11:25 AM, project722 <project...@gmail.com> wrote: > Alfred - thanks but your setup is much more complex than mine. > > Alex, I have put in the changes as you suggested and it passed validation. > I'll report back what the logs look like or if I have any further problems. > > Thanks! > > On Tue, Oct 4, 2016 at 11:12 AM, Alex Moen <al...@ndtel.com> wrote: > >> Just comparing with mine, it seems that the "option agent.circuit-id" >> needs to be in parens. And, I don't know the use of the "(leased-address)" >> is. So, try this: >> >> ----------------------------------------------------- >> ## Option 82 Class >> class "myvendor" { >> match if option agent.circuit-id = 00:04:00:6b:00:84; >> } >> >> # Test Option 82 logging >> if exists agent.circuit-id >> { >> log (info, concat( >> "Lease for ", binary-to-ascii (10, 8, ".", leased-address), >> " with circuit-id ", (option agent.circuit-id), >> " is assigned using Option82" >> )); >> } >> >> pool { >> allow members of "myvendor"; >> range x.x.x.x x.x.x.x; >> } >> ----------------------------------------------------- >> >> This should give you a line that looks something like: >> >> Lease for 192.168.0.10 with circuit-id Ethernet 5 is assigned using >> Option82 >> >> Obviously, your circuit-id will most likely be something other than >> "Ethernet 5", but you get the idea. >> >> If I'm way off base, someone please correct me! >> >> Good luck, >> >> Alex >> >> >> >> On 10/04/2016 10:27 AM, project722 wrote: >> >>> Hello DHCP experts! We are implementing Option 82 in our network and I >>> am just scratching the surface of how to setup my server. I have >>> successfully created my first Option 82 ACL based on the agent circuit ID >>> that is contained in the packet, now I just need guidance on how I get the >>> Option 82 data into the logs. Here is my O82 setup on the server: >>> >>> ## Option 82 Class >>> class "myvendor" { >>> match if option agent.circuit-id = 00:04:00:6b:00:84; >>> } >>> >>> # Test Option 82 logging >>> if exists agent.circuit-id >>> { >>> log (info, concat( "Lease for ", option agent.circuit-id >>> (leased-address), "is an address assigned using Option82")); >>> } >>> >>> pool { >>> allow members of "myvendor"; >>> range x.x.x.x x.x.x.x; >>> } >>> >>> The problem I am having is when I go to check the conf before restarting >>> dhcpd I am getting the error: >>> >>> etc/dhcp/dhcpd.conf line 135: right parenthesis expected. >>> log (info, concat( "Lease for ", option agent.circuit-id ( >>> ^ >>> Can anyone tell me what I am doing wrong and how to fix this error? >>> >>> >>> _______________________________________________ >>> dhcp-users mailing list >>> dhcp-users@lists.isc.org >>> https://lists.isc.org/mailman/listinfo/dhcp-users >>> >> >> >> -- >> Alex Moen >> NSTII >> Calix System Specialist >> North Dakota Telephone Company >> 701-662-6481 >> >> _______________________________________________ >> dhcp-users mailing list >> dhcp-users@lists.isc.org >> https://lists.isc.org/mailman/listinfo/dhcp-users >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20161004/942a4955/attachment.html> ------------------------------ Subject: Digest Footer _______________________________________________ dhcp-users mailing list dhcp-users@lists.isc.org https://lists.isc.org/mailman/listinfo/dhcp-users ------------------------------ End of dhcp-users Digest, Vol 96, Issue 4 *****************************************