Advertisement
devinteske

dhcpd.conf changes for pxe-config.sh

Jun 8th, 2015
418
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 3.95 KB | None | 0 0
  1. --- dhcpd.conf.example  2014-02-08 03:09:27.000000000 -0800
  2. +++ dhcpd.conf  2015-06-08 07:29:50.000000000 -0700
  3. @@ -4,14 +4,14 @@
  4.  #
  5.  
  6.  # option definitions common to all supported networks...
  7. -option domain-name "example.org";
  8. -option domain-name-servers ns1.example.org, ns2.example.org;
  9. +option domain-name "shxd.cx";
  10. +option domain-name-servers 209.244.0.3, 74.82.42.42, 8.8.8.8;
  11.  
  12. -default-lease-time 600;
  13. -max-lease-time 7200;
  14. +default-lease-time 21600;
  15. +max-lease-time 43200;
  16.  
  17.  # Use this to enble / disable dynamic dns updates globally.
  18. -#ddns-update-style none;
  19. +ddns-update-style interim;
  20.  
  21.  # If this DHCP server is the official DHCP server for the local
  22.  # network, the authoritative directive should be uncommented.
  23. @@ -21,84 +21,14 @@ max-lease-time 7200;
  24.  # have to hack syslog.conf to complete the redirection).
  25.  log-facility local7;
  26.  
  27. -# No service will be given on this subnet, but declaring it helps the
  28. -# DHCP server to understand the network topology.
  29. -
  30. -subnet 10.152.187.0 netmask 255.255.255.0 {
  31. -}
  32. -
  33. -# This is a very basic subnet declaration.
  34. -
  35. -subnet 10.254.239.0 netmask 255.255.255.224 {
  36. -  range 10.254.239.10 10.254.239.20;
  37. -  option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
  38. -}
  39. -
  40. -# This declaration allows BOOTP clients to get dynamic addresses,
  41. -# which we don't really recommend.
  42. -
  43. -subnet 10.254.239.32 netmask 255.255.255.224 {
  44. -  range dynamic-bootp 10.254.239.40 10.254.239.60;
  45. -  option broadcast-address 10.254.239.31;
  46. -  option routers rtr-239-32-1.example.org;
  47. -}
  48. -
  49. -# A slightly different configuration for an internal subnet.
  50. -subnet 10.5.5.0 netmask 255.255.255.224 {
  51. -  range 10.5.5.26 10.5.5.30;
  52. -  option domain-name-servers ns1.internal.example.org;
  53. -  option domain-name "internal.example.org";
  54. -  option routers 10.5.5.1;
  55. -  option broadcast-address 10.5.5.31;
  56. -  default-lease-time 600;
  57. -  max-lease-time 7200;
  58. -}
  59. -
  60. -# Hosts which require special configuration options can be listed in
  61. -# host statements.   If no address is specified, the address will be
  62. -# allocated dynamically (if possible), but the host-specific information
  63. -# will still come from the host declaration.
  64. -
  65. -host passacaglia {
  66. -  hardware ethernet 0:0:c0:5d:bd:95;
  67. -  filename "vmunix.passacaglia";
  68. -  server-name "toccata.fugue.com";
  69. -}
  70. -
  71. -# Fixed IP addresses can also be specified for hosts.   These addresses
  72. -# should not also be listed as being available for dynamic assignment.
  73. -# Hosts for which fixed IP addresses have been specified can boot using
  74. -# BOOTP or DHCP.   Hosts for which no fixed address is specified can only
  75. -# be booted with DHCP, unless there is an address range on the subnet
  76. -# to which a BOOTP client is connected which has the dynamic-bootp flag
  77. -# set.
  78. -host fantasia {
  79. -  hardware ethernet 08:00:07:26:c0:a5;
  80. -  fixed-address fantasia.fugue.com;
  81. -}
  82. -
  83. -# You can declare a class of clients and then do address allocation
  84. -# based on that.   The example below shows a case where all clients
  85. -# in a certain class get addresses on the 10.17.224/24 subnet, and all
  86. -# other clients get addresses on the 10.0.29/24 subnet.
  87. -
  88. -class "foo" {
  89. -  match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
  90. -}
  91. -
  92. -shared-network 224-29 {
  93. -  subnet 10.17.224.0 netmask 255.255.255.0 {
  94. -    option routers rtr-224.example.org;
  95. -  }
  96. -  subnet 10.0.29.0 netmask 255.255.255.0 {
  97. -    option routers rtr-29.example.org;
  98. -  }
  99. -  pool {
  100. -    allow members of "foo";
  101. -    range 10.17.224.10 10.17.224.250;
  102. -  }
  103. -  pool {
  104. -    deny members of "foo";
  105. -    range 10.0.29.10 10.0.29.230;
  106. -  }
  107. +subnet 192.168.1.0 netmask 255.255.255.0 {
  108. +   option routers          192.168.1.1;
  109. +   option subnet-mask      255.255.255.0;
  110. +   option domain-name      "shxd.cx";
  111. +   option domain-name-servers  192.168.1.1;
  112. +   option time-offset      -18000; # Pacific Standard Time
  113. +   range dynamic-bootp 192.168.1.100 192.168.1.109;
  114. +   next-server 192.168.1.1;
  115. +   ignore client-updates;
  116. +   filename "lpxelinux.0";
  117.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement