how to config class
Julie Xu
xll40 at hotmail.com
Fri Nov 22 04:03:55 UTC 2013
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
>
>
>
>
>
>
More information about the dhcp-users
mailing list