Usr/local/etc/dhcpd.conf: Difference between revisions

From WirelessAfrica
m (Usr/local/etc/dhcp.conf moved to Usr/local/etc/dhcpd.conf)
No edit summary
 
Line 1: Line 1:
server-identifier meshy.dhcp.icomtek.csir.co.za;
server-identifier meshy.dhcp.icomtek.csir.co.za;
max-lease-time 43200;
max-lease-time 43200;
server-identifier meshy.dhcp.icomtek.csir.co.za;
server-identifier meshy.dhcp.icomtek.csir.co.za;
option domain-name-servers 172.20.1.1;
option domain-name-servers 172.20.1.1;
option domain-name "icomtek.csir.co.za";
option domain-name "icomtek.csir.co.za";
option subnet-mask 255.255.255.0;
option subnet-mask 255.255.255.0;
option broadcast-address 172.20.1.255;
option broadcast-address 172.20.1.255;
option routers 172.20.1.1;
option routers 172.20.1.1;


option ntp-servers 172.20.1.1;
option ntp-servers 172.20.1.1;


option space PXE;
option space PXE;
option PXE.mtftp-ip code 1 = ip-address;
option PXE.mtftp-ip code 1 = ip-address;
option PXE.mtftp-cport code 2 = unsigned integer 16;
option PXE.mtftp-cport code 2 = unsigned integer 16;
option PXE.mtftp-sport code 3 = unsigned integer 16;
option PXE.mtftp-sport code 3 = unsigned integer 16;
option PXE.mtftp-tmout code 4 = unsigned integer 8;
option PXE.mtftp-tmout code 4 = unsigned integer 8;
option PXE.mtftp-delay code 5 = unsigned integer 8;
option PXE.mtftp-delay code 5 = unsigned integer 8;
option PXE.discovery-control code 6 = unsigned integer 8;
option PXE.discovery-control code 6 = unsigned integer 8;
option PXE.discovery-mcast-addr code 7 = ip-address;
option PXE.discovery-mcast-addr code 7 = ip-address;


ddns-update-style none;
ddns-update-style none;


default-lease-time 43200;
default-lease-time 43200;
max-lease-time 43200;
max-lease-time 43200;


class "pxe-soekris" {
class "pxe-soekris" {
         match if (substring(option vendor-class-identifier, 0, 9) = "PXEClient") and
         match if (substring(option vendor-class-identifier, 0, 9) = "PXEClient") and
             (substring(pick-first-value(option dhcp-client-identifier,hardware),            0, 4) = 1:00:00:24);
             (substring(pick-first-value(option dhcp-client-identifier,hardware),            0, 4) = 1:00:00:24);

Latest revision as of 16:19, 10 March 2006

server-identifier meshy.dhcp.icomtek.csir.co.za;
max-lease-time 43200;
server-identifier meshy.dhcp.icomtek.csir.co.za;
option domain-name-servers 172.20.1.1;
option domain-name "icomtek.csir.co.za";
option subnet-mask 255.255.255.0;
option broadcast-address 172.20.1.255;
option routers 172.20.1.1;
option ntp-servers 172.20.1.1;
option space PXE;
option PXE.mtftp-ip code 1 = ip-address;
option PXE.mtftp-cport code 2 = unsigned integer 16;
option PXE.mtftp-sport code 3 = unsigned integer 16;
option PXE.mtftp-tmout code 4 = unsigned integer 8;
option PXE.mtftp-delay code 5 = unsigned integer 8;
option PXE.discovery-control code 6 = unsigned integer 8;
option PXE.discovery-mcast-addr code 7 = ip-address;
ddns-update-style none;
default-lease-time 43200;
max-lease-time 43200;
class "pxe-soekris" {
       match if (substring(option vendor-class-identifier, 0, 9) = "PXEClient") and
           (substring(pick-first-value(option dhcp-client-identifier,hardware),            0, 4) = 1:00:00:24);
       option vendor-class-identifier "PXEClient";
       vendor-option-space PXE;
       option PXE.discovery-control 11;
       filename "pxeboot";
       next-server 146.64.5.1;
       #option root-path "146.64.5.1:/export/diskless/current";
       option root-path "146.64.5.1:/export/diskless/soekris";

}

class "pxe-via" {

       match if (substring(option vendor-class-identifier, 0, 9) = "PXEClient") and
          (substring(pick-first-value(option dhcp-client-identifier,hardware),
           0, 4) = 1:00:40:63);
       option vendor-class-identifier "PXEClient";
       vendor-option-space PXE;
       option PXE.discovery-control 11;
       #filename "pxeboot";
       filename "pxelinux.0";
       next-server 172.20.1.1;
       #option root-path "172.20.1.1:/export/freebsd/6-stable";
       #option root-path "172.20.1.1:/export/linux/ubuntu";
       #option root-path "172.20.1.1:/export/linux/knoppix";
       #option root-path "146.64.5.1:/export/diskless/soekris";

}

subnet 172.20.1.0 netmask 255.255.255.0 {

       range 172.20.1.100 172.20.1.219;
       use-host-decl-names on;

}

group {

       option broadcast-address 172.20.1.255;
       option routers 172.20.1.1;
       host meshy-rtr {
               hardware ethernet 00:12:a9:86:4b:a0;
               fixed-address 172.20.1.2;
       }

}

group {

       option vendor-class-identifier "PXEClient";
       vendor-option-space PXE;
       option PXE.discovery-control 11;
       filename "pxelinux.0";
       next-server 172.20.1.1;
       #option root-path "172.20.1.1:/export/linux/ubuntu";
       #option root-path "172.20.1.1:/export/linux/knoppix";
       include "/home/jhay/snmp/dhcpd.inc";

}