Avec ces définitions de classe, les clients SPARC demandent un bail et obtiennent des informations spécifiques à SPARC, tandis que les clients x86 demandent et obtiennent des informations spécifiques à x86. Les exemples ci-après présentent l'intégralité du fichier dhcpd.conf :
# option definitions common to all supported networks...
option domain-name "example.com";
option domain-name-servers 192.168.0.1;
default-lease-time 600;
max-lease-time 86400;
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;
# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;
# This is an easy way to discriminate on SPARC clients
class "SPARC" {
match if ( substring (option vendor-class-identifier, 0, 5) = "SUNW." ) and not
( option vendor-class-identifier = "SUNW.i86pc" );
filename "http://192.168.0.1:5555/cgi-bin/wanboot-cgi";
}
# This is a class to discriminate on PXE booting x86 clients
class "PXEBoot" {
option dhcp-class-identifier "PXEClient";
filename "install_test_ai_x86";
next-server 192.168.0.1;
}
# This is a very basic subnet declaration
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.2 192.168.0.100;
option routers 192.168.0.1;
}