how to config class
Stier, Matthew
Matthew.Stier at us.fujitsu.com
Thu Nov 21 11:59:29 UTC 2013
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-0001.html>
More information about the dhcp-users
mailing list