dhcp-users Digest, Vol 61, Issue 24

Julie Xu xll40 at hotmail.com
Fri Nov 22 05:13:38 UTC 2013


how to write  match if A and not B ??
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20131121/8fd15efd/attachment-0001.html>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 21 Nov 2013 15:42:33 +0000
> From: "Simon Hobson" <dhcp1 at thehobsons.co.uk>
> To: Users of ISC DHCP <dhcp-users at lists.isc.org>
> Subject: RE: how to config class
> Message-ID: <0B47B1D65F2EB20968520E6EB2D77A53E at thehobsons.co.uk>
> Content-Type: text/plain; charset=us-ascii
>
> "Stier, Matthew" wrote:
>> Order?
>> As written, both classes are true, so the later one overwrites the settings of the prior one.
>
>
> No, order is not significant within the config file - at least, not in that way for class definitions. Some things are evaluated in a specific order, but that is implementation dependent and may change at any time without warning.
>
>
>> I need most subnets PXE server ip address as 10.1.1.10, and only subnet 10.2.2.0/24 need PXE server address as 10.2.2.10
>> How can I write the class statement using two classes. I have tried netboot from my laptop on ip 10.2.2.100, but, I still get server-identifier 10.1.1.10.
>
>> could anyone advice what I did wrong?
>
> It's messy (especially if you start to extend it), but re-write the main class so as to exclude the other devices :
>
> class ...
> match if A and B
>
> class ...
> match if A and not B
>
> In this case, A issubstring( option vendor-class-identifier, 0, 9 ) = "PXEClient" and B isbinary-to-ascii(10,8, ".", packet(24,4)) = "10.2.2.1"
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 21 Nov 2013 15:45:55 +0000
> From: "Simon Hobson" <dhcp1 at thehobsons.co.uk>
> To: Users of ISC DHCP <dhcp-users at lists.isc.org>
> Subject: Re: Mac block or Prevent DOS attack in DHCPv6
> Message-ID: <0DA40EFECFD801C7A67D215FD7836925A at thehobsons.co.uk>
> Content-Type: text/plain; charset=us-ascii
>
> Sten Carlsen wrote:
>> Some printers, I have heard, require a VERY(like 2 years) long lease
>> to be happy.
>
> I've had this at my last job - it was a Minolta Di620 multifunction copier with RIP, I could never get it to accept a lease and so configured it manually. I later found out that it needs a 2 year lease - you have to wonder about the mindset of some people !
>
>
> ------------------------------
>
> Message: 4
> Date: Fri, 22 Nov 2013 14:51:47 +1100
> From: Julie Xu <xll40 at hotmail.com>
> To: dhcp list <dhcp-users at lists.isc.org>
> Subject: RE: dhcp-users Digest, Vol 61, Issue 23
> Message-ID: <BLU174-W27DC6BDC8265394DA9097AB3E00 at phx.gbl>
> Content-Type: text/plain; charset="iso-8859-1"
>
> tested, even put class vlan418RIS still get 10.1.1.10.
>
> any advice?
>
> ---------------
>
>> Message: 3
>> Date: Thu, 21 Nov 2013 11:59:29 +0000
>> From: "Stier, Matthew" <Matthew.Stier at us.fujitsu.com>
>> To: Users of ISC DHCP <dhcp-users at lists.isc.org>
>> Subject: RE: how to config class
>> Message-ID:
>> <430FB7087F60DD4FB40A1408F257458B7B34BE5E at RCHEXMBP1.fnc.net.local>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Order?
>>
>> As written, both classes are true, so the later one overwrites the settings of the prior one.
>>
>> From: dhcp-users-bounces+matthew.stier=us.fujitsu.com at lists.isc.org [mailto:dhcp-users-bounces+matthew.stier=us.fujitsu.com at lists.isc.org] On Behalf Of Julie Xu
>> Sent: Thursday, November 21, 2013 1:21 AM
>> To: dhcp list
>> Subject: how to config class
>>
>> hi
>>
>>
>> I need most subnets PXE server ip address as 10.1.1.10, and only subnet 10.2.2.0/24 need PXE server address as 10.2.2.10
>>
>> How can I write the class statement using two classes. I have tried netboot from my laptop on ip 10.2.2.100, but, I still get server-identifier 10.1.1.10.
>>
>> could anyone advice what I did wrong?
>>
>> below is my configure:
>>
>> class "vlan418RIS" {
>> # This is only for subnet 10.2.2.0/24 subnet
>> # this dhcp server is on different subnet, the address 10.2.2.1 is relay agent - router
>> match if ( binary-to-ascii(10,8, ".", packet(24,4)) = "10.2.2.1" and
>> substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" );
>> option vendor-class-identifier "PXEClient";
>> server-identifier 10.2.2.10;
>> }
>>
>> class "MicrosoftRIS" {
>> # This is default, all my subnets using this class, except 10.2.2.0/24
>> match if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient";
>> option vendor-class-identifier "PXEClient";
>> server-identifier 10.1.1.10;
>> }
>>
>>
>> subnet 10.2.2.0 netmask 255.255.255.0 {
>> option routers 10.2.2.1;
>> option broadcast-address 10.2.2.255;
>> }
>>
>> Any comments will be appreciated
>>
>> Thanks in advance
>>
>> julie
>>
>>
>>
>>
>>
>>
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20131121/f5325378/attachment.html>
>>
>> ------------------------------
>>
>> _______________________________________________
>> dhcp-users mailing list
>> dhcp-users at lists.isc.org
>> https://lists.isc.org/mailman/listinfo/dhcp-users
>>
>> End of dhcp-users Digest, Vol 61, Issue 23
>> ******************************************
>
> ------------------------------
>
> Message: 5
> Date: Fri, 22 Nov 2013 15:03:55 +1100
> From: Julie Xu <xll40 at hotmail.com>
> To: dhcp list <dhcp-users at lists.isc.org>
> Subject: RE: how to config class
> Message-ID: <BLU174-W820E1A5AEDF2FCD62FC00B3E00 at phx.gbl>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,?
>
> have tested put class vlan418RIS class below MicrsoftRIS not work.
> have tested put the class vlan418RIS in subnet and not work also.
>
> is possible I can modify the class MicrosoftRIS to achive:
> ? ? if?vendor-class-identifier "PXEClient"
> ? ? ? ? ?then
> ? ? ? ? ? ? ? if relay agent ip address 10.2.2.1
> ? ? ? ? ? ? ? ?then
> ? ? ? ? ? ? ? ? ? ?server-identifier 10.2.2.10
> ? ? ? ? ? ? ? ?else
> ? ? ? ? ? ? ? ? ? ?server-identifier 10.1.1.10
> ? ? ? ? ? ? ? ? fi
> ? ? ? ? ? ?fi
>
> please advice
>
> xll
>
> ________________________________
>> From: xll40 at hotmail.com
>> To: dhcp-users at lists.isc.org
>> Subject: how to config class
>> Date: Thu, 21 Nov 2013 06:20:35 +0000
>>
>> hi
>>
>>
>> I need most subnets PXE server ip address as 10.1.1.10, and only subnet
>> 10.2.2.0/24 need PXE server address as 10.2.2.10
>>
>> How can I write the class statement using two classes. I have tried
>> netboot from my laptop on ip 10.2.2.100, but, I still get
>> server-identifier 10.1.1.10.
>>
>> could anyone advice what I did wrong?
>>
>> below is my configure:
>>
>> class "vlan418RIS" {
>> # This is only for subnet 10.2.2.0/24 subnet
>> # this dhcp server is on different subnet, the address 10.2.2.1 is
>> relay agent - router
>> match if ( binary-to-ascii(10,8, ".", packet(24,4)) = "10.2.2.1" and
>> substring( option vendor-class-identifier, 0, 9 ) =
>> "PXEClient" );
>> option vendor-class-identifier "PXEClient";
>> server-identifier 10.2.2.10;
>> }
>>
>> class "MicrosoftRIS" {
>> # This is default, all my subnets using this class, except 10.2.2.0/24
>> match if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient";
>> option vendor-class-identifier "PXEClient";
>> server-identifier 10.1.1.10;
>> }
>>
>>
>> subnet 10.2.2.0 netmask 255.255.255.0 {
>> option routers 10.2.2.1;
>> option broadcast-address 10.2.2.255;
>> }
>>
>> Any comments will be appreciated
>>
>> Thanks in advance
>>
>> julie
>>
>>
>>
>>
>>
>>
>
> ------------------------------
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
>
> End of dhcp-users Digest, Vol 61, Issue 24
> ****************************************** 		 	   		  


More information about the dhcp-users mailing list