SHARE
TWEET

Untitled

a guest Feb 17th, 2017 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. dhcpd.conf:
  2.  
  3. allow booting;
  4. allow bootp;
  5. option domain-name "somedomain";
  6. option domain-name-servers 10.6.0.10, 10.6.0.11, 10.6.0.16, 10.6.0.17;
  7. option ntp-servers 10.6.0.16, 10.6.0.17;
  8. # Lease time - 7 days (604800 seconds)
  9. max-lease-time 604800;
  10. default-lease-time 604800;
  11. get-lease-hostname;
  12. filename "el6/pxelinux.0";
  13. log-facility local1;
  14.  
  15. # The next-server line is required even though we point to ourselves.
  16. # Resolves some issues relating to pxeboot across subnets.
  17. next-server 10.6.48.23;
  18.  
  19. omapi-port 7911;
  20. key omapi_key {
  21.   algorithm HMAC-MD5;
  22.   secret "*";
  23. }
  24. omapi-key omapi_key;
  25.  
  26. #!------------------------------------------------------------------!#
  27. # Include additional files - append new includes when you start a new
  28. # pool or application group
  29. #!------------------------------------------------------------------!#
  30.  
  31. include "/etc/dhcp/conf.d/linux.leases";
  32. include "/etc/dhcp/conf.d/solr.leases";
  33. include "/etc/dhcp/conf.d/dev.leases";
  34. include "/etc/dhcp/conf.d/qa.leases";
  35. include "/etc/dhcp/conf.d/journaling.leases";
  36. include "/etc/dhcp/conf.d/idrac.leases";
  37. include "/etc/dhcp/conf.d/pdu.leases";
  38.  
  39. #!------------------------------------------------------------------!#
  40. # Master Lease section
  41. # Specify scopes, pools, and pool options below
  42. #!------------------------------------------------------------------!#
  43.  
  44.  
  45. # vlan-name: prod_somenet_01
  46. # vlan-id: 1000
  47. # Description: Some-VLAN-Network
  48. subnet 10.6.16.0   netmask 255.255.255.0 {
  49.     authoritative;
  50.     option routers 10.6.16.1;
  51.     pool {
  52.         range 10.6.16.101 10.6.16.253;
  53.         ignore unknown-clients;
  54.         max-lease-time 86400;
  55.     }
  56. }
  57.  
  58.  
  59.  
  60.  
  61.  
  62. config.d/linux.conf:
  63.  
  64. # Generic Linux host leases
  65.  
  66. group {
  67.   use-host-decl-names on;
  68.   option domain-name "somedomain.com";
  69.  
  70.  
  71. host somehost01.somedomain.com { hardware ethernet 00:50:56:b6:32:34; fixed-address somehost01.somedomain.com; }
  72. host somehost02.somedomain.com { hardware ethernet 00:50:56:b6:6d:4e; fixed-address somehost02.somedomain.com; }
  73. host somehost03.somedomain.com { hardware ethernet 00:50:56:b6:6b:e8; fixed-address somehost03.somedomain.com; }
  74. host somehost04.somedomain.com { hardware ethernet 00:50:56:b6:7d:b7; fixed-address somehost04.somedomain.com; }
  75.  
  76. }
RAW Paste Data
Top