Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2015
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. #
  2. # Sample configuration file for ISC dhcpd for Debian
  3. #
  4. # Attention: If /etc/ltsp/dhcpd.conf exists, that will be used as
  5. # configuration file instead of this file.
  6. #
  7. #
  8.  
  9. # The ddns-updates-style parameter controls whether or not the server will
  10. # attempt to do a DNS update when a lease is confirmed. We default to the
  11. # behavior of the version 2 packages ('none', since DHCP v2 didn't
  12. # have support for DDNS.)
  13. ddns-update-style none;
  14.  
  15.  
  16. # If this DHCP server is the official DHCP server for the local
  17. # network, the authoritative directive should be uncommented.
  18. authoritative;
  19.  
  20. # Use this to send dhcp log messages to a different log file (you also
  21. # have to hack syslog.conf to complete the redirection).
  22. log-facility local7;
  23.  
  24. # No service will be given on this subnet, but declaring it helps the
  25. # DHCP server to understand the network topology.
  26.  
  27. #subnet 192.168.2.0 netmask 255.255.255.0 {
  28. # range 192.168.2.50 192.168.2.255;
  29. # filename "pxelinux.0";
  30. # option subnet-mask 255.255.255.0;
  31. # option broadcast-address 192.168.2.255;
  32. # option routers 192.168.1.1;
  33. #}
  34.  
  35. # This declaration allows BOOTP clients to get dynamic addresses,
  36. # which we don't really recommend.
  37.  
  38. #subnet 10.254.239.32 netmask 255.255.255.224 {
  39. # range dynamic-bootp 10.254.239.40 10.254.239.60;
  40. # option broadcast-address 10.254.239.31;
  41. # option routers rtr-239-32-1.example.org;
  42. #}
  43.  
  44. # A slightly different configuration for an internal subnet.
  45. subnet 192.168.0.0 netmask 255.255.0.0 {
  46. range 192.168.2.100 192.168.2.102;
  47. option subnet-mask 255.255.0.0;
  48. option broadcast-address 192.168.255.255;
  49. option routers 192.168.1.1;
  50. option domain-name-servers <dns ip>;
  51. default-lease-time 180;
  52. max-lease-time 360;
  53.  
  54. host coreos-01 {
  55. hardware ethernet <mac address>;
  56. fixed-address 192.168.2.131;
  57. }
  58.  
  59. host coreos-02 {
  60. hardware ethernet <mac address>;
  61. fixed-address 192.168.2.132;
  62. }
  63.  
  64. host coreos-04 {
  65. hardware ethernet <mac address>;
  66. fixed-address 192.168.2.134;
  67. }
  68.  
  69. host coreos-05 {
  70. hardware ethernet <mac address>;
  71. fixed-address 192.168.2.135;
  72. }
  73.  
  74. host coreos-06 {
  75. hardware ethernet <mac address>;
  76. fixed-address 192.168.2.136;
  77. }
  78. }
  79.  
  80. allow booting;
  81. allow bootp;
  82. #option option-128 code 128 = string;
  83. #option option-129 code 129 = text;
  84. option magic code 208 = string;
  85. option configfile code 209 = text;
  86. option pathprefix code 210 = text;
  87. option reboottime code 211 = unsigned integer 32;
  88. #next-server 192.168.2.130;
  89. filename "pxelinux.0";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement