1 # ******************************************************************
2 # Cobbler managed dhcpd.conf file
4 # generated from cobbler dhcp.conf template ($date)
5 # Do NOT make changes to /etc/dhcpd.conf. Instead, make your changes
6 # in /etc/cobbler/dhcp.template, as /etc/dhcpd.conf will be
9 # ******************************************************************
11 ddns-update-style interim;
16 ignore client-updates;
17 set vendorclass = option vendor-class-identifier;
19 option pxe-system-type code 93 = unsigned integer 16;
21 subnet 10.30.51.0 netmask 255.255.255.0 {
22 option routers 10.30.51.1;
23 option domain-name "linuxfoundation.org";
24 option domain-name-servers 1.1.1.1, 8.8.8.8;
25 option subnet-mask 255.255.255.0;
26 range dynamic-bootp 10.30.51.2 10.30.51.254;
27 default-lease-time 600;
29 next-server $next_server;
31 match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
32 if option pxe-system-type = 00:02 {
33 filename "ia64/elilo.efi";
34 } else if option pxe-system-type = 00:06 {
35 filename "grub/grub-x86.efi";
36 } else if option pxe-system-type = 00:07 {
37 filename "grub/grub-x86_64.efi";
39 filename "pxelinux.0";
44 #for dhcp_tag in $dhcp_tags.keys():
45 ## group could be subnet if your dhcp tags line up with your subnets
46 ## or really any valid dhcpd.conf construct ... if you only use the
47 ## default dhcp tag in cobbler, the group block can be deleted for a
49 # group for Cobbler DHCP tag: $dhcp_tag
51 #for mac in $dhcp_tags[$dhcp_tag].keys():
52 #set iface = $dhcp_tags[$dhcp_tag][$mac]
54 hardware ethernet $mac;
55 #if $iface.ip_address:
56 fixed-address $iface.ip_address;
59 option host-name "$iface.hostname";
62 option subnet-mask $iface.netmask;
65 option routers $iface.gateway;
67 #if $iface.enable_gpxe:
68 if exists user-class and option user-class = "gPXE" {
69 filename "http://$cobbler_server/cblr/svc/op/gpxe/system/$iface.owner";
70 } else if exists user-class and option user-class = "iPXE" {
71 filename "http://$cobbler_server/cblr/svc/op/gpxe/system/$iface.owner";
73 filename "undionly.kpxe";
76 filename "$iface.filename";
78 ## Cobbler defaults to $next_server, but some users
79 ## may like to use $iface.system.server for proxied setups
80 next-server $next_server;
81 ## next-server $iface.next_server;