phpDHCPAdmin release & questions regarding dhcpd.conf syntax

Jason Gerfen jason.gerfen at gmail.com
Sat Sep 20 02:40:12 UTC 2008


I hope you guys don't see this email as spam or a solicitation but I
have been working diligently on a new release for a piece of software
I have named phpDHCPAdmin.

It has quite a few features that might benefit administrators in large
networked environments. I have tried to adhere to the RFC documents
regarding the ISC DHCPD daemon and am ready for the tool to be tested.

http://sourceforge.net/project/showfiles.php?group_id=102005

Some of the features I have included are listed here:
Multiple users
Multiple groups
Multiple access levels
Multiple subnets
Multiple PXE groups
Multiple DNS Zones

A ton more features are planned and a couple that I would like to
incorporate but have some questions regarding DNSSEC, failover and of
course the DNS Zone directives.

Here is a sample configuration file to help you see how robust I have
"attempted" to make this application.

** It is quite abbreviated

#### Global Configuration Options ####
option domain-name "scl";
default-lease-time 600;
max-lease-time 7200;
option time-offset 300;
option domain-name-servers 192.168.186.2, 192.168.186.3;
ddns-update-style ad-hoc;
authoritative;
allow bootp;

#### Global PXE Configuration Options ####
option space PXE;
option PXE.mtftp-ip code 1 = ip-address;
option PXE.mtftp-cport code 2 = unsigned integer 16;
option PXE.stftp-cport 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;

#### DNSSEC Key Definitions ####
key test {
     algorithm DSA;
     secret passphrase;
}

#### DNS Zone Definitions ####
zone "mmc" {
     type master;
     file "mmc.zone";
     allow-update { key test; };
};
zone "mmc" {
     type master;
     file "mmc.zone";
     allow-update { key test; };
};
zone mmc {
     primary 127.0.0.1;
     key test;
}
zone anothertest {
     primary 127.0.0.1;
     key test;
}
zone "mmctest" {
     type master;
     file "mmctest.zone";
     allow-update { key test; };
};
zone "anothertest" {
     type master;
     file "mmctest.zone";
     allow-update { key test; };
};
zone mmctest {
     primary 127.0.0.1;
     key test;
}
zone anothertest {
     primary 127.0.0.1;
     key test;
}

#### Failover configuration ####
failover peer "failover" {
     primary;
     address xxx.xxx.xxx.xxx;
     port 519;
     peer address xxx.xxx.xxx.xxx;
     peer port 520;
     max-response-delay 60;
     max-unpacked-updates 10;
     mclt 300;
     split 128;
     load balance max seconds 3;
}

#### Subnet Definitions ####

### mac_lib_staff Subnet Definition ###
subnet xxx.xxx.xxx.xxx
netmask xxx.xxx.xxx.xxx {
     option domain-name-servers xxx.xxx.xxx.xxx, xxx.xxx.xxx.xxx;
     option routers xxx.xxx.xxx.xxx;
}

### Vlan-151 Subnet Definition ###
subnet xxx.xxx.xxx.xxx
netmask xxx.xxx.xxx.xxx {
     option domain-name-servers xxx.xxx.xxx.xxx, xxx.xxx.xxx.xxx;
     option routers xxx.xxx.xxx.xxx;
}

#### PXE Groups w/ Static Hosts ####
## PXE Group RH-PXE ##
group {
          filename "linux";
          next-server server.com;

          ### Static Hosts Assigned to PXE Group ###
          host RLPC-02 {
               hardware ethernet 00:0e:0c:cf:86:b0;
               fixed-address xxx.xxx.xxx.xxx;
          }
          host RLPC-03 {
               hardware ethernet 00:0e:0c:cf:86:86;
               fixed-address xxx.xxx.xxx.xxx;
          }
}

## PXE Group PCGroup ##
group {
          filename "linux";
          next-server server.com;

          ### Static Hosts Assigned to PXE Group ###
          host PStaff-02 {
               hardware ethernet 00:1b:21:01:68:b1;
               fixed-address xxx.xxx.xxx.xxx;
          }
          host ptech-04 {
               hardware ethernet 00:0E:0C:B6:11:4F;
               fixed-address xxx.xxx.xxx.xxx;
          }
}

#### Static Hosts w/o PXE Group Membership ####
host Mark-01 {
     hardware ethernet 00:0C:6E:BB:28:AE;
     fixed-address xxx.xxx.xxx.xxx;
}
host mmac-1 {
     hardware ethernet 00:16:cb:c0:dd:b7;
     fixed-address xxx.xxx.xxx.xxx;
}
host testbed-6 {
     hardware ethernet 00:02:B3:EB:08:1D;
     fixed-address xxx.xxx.xxx.xxx;
}

-- 
Jason Gerfen
jason.gerfen at gmail.com

~ tomorrow ain't promised so we live for today


More information about the dhcp-users mailing list