configurationDHCPD使用选项66,在特定的子网中

我正在尝试configurationDHCP以使用选项66向Sunray瘦客户机提供TFTP服务器。 特定子网中的客户端必须使用特定的TFTP服务器,以便为其子网提供特定的configuration服务。 我可以按如下方式将选项放置在子networking块中:

subnet 192.168.1.128 netmask 255.255.255.128 { # don't let clients modify their own A records ignore client-updates; # options option subnet-mask 255.255.255.128; option broadcast-address 192.168.1.255; option domain-name "domain.com"; option domain-name-servers 192.168.3.55, 192.168.3.56; option routers 192.168.1.129; option 66 ip 192.168.16.21; option ntp-servers 192.168.3.57; option interface-mtu 1500; ddns-domainname "dhcp.domain.com."; ddns-rev-domainname "dhcp.in-addr.arpa."; pool { failover peer "dhcp-failover"; range 192.168.1.140 192.168.1.249; } 

}

在isc-dhcp-server中,我创build全局选项 ,然后在主机级别使用它。 您应该也可以在子网级别使用供应商选项空间

 option space SunRay; option SunRay.FWSrvr code 31 = ip-address; option SunRay.FWSrvr 10.99.90.160; option SunRay.AuthSrvr code 21 = ip-address; option SunRay.AuthSrvr 10.99.90.160; option SunRay.AltAuth code 35 = array of ip-address; option SunRay.AltAuth 10.99.90.161, 10.99.90.160; host 10.96.0.11 { vendor-option-space SunRay; hardware ethernet 00:ff:ff:ff:ff:ff; fixed-address 10.96.0.11; }