daily pastebin goal
52%
SHARE
TWEET

Untitled

a guest Jan 29th, 2012 15 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. # option definitions common to all supported networks...
  16. option domain-name "itbhu.ac.in";
  17. option domain-name-servers 8.8.8.8;
  18.  
  19. default-lease-time 86400;
  20. max-lease-time 604800;
  21.  
  22. # If this DHCP server is the official DHCP server for the local
  23. # network, the authoritative directive should be uncommented.
  24. authoritative;
  25.  
  26. # Use this to send dhcp log messages to a different log file (you also
  27. # have to hack syslog.conf to complete the redirection).
  28. log-facility local7;
  29.  
  30. # No service will be given on this subnet, but declaring it helps the
  31. # DHCP server to understand the network topology
  32.  
  33. subnet 192.168.1.0 netmask 255.255.255.0 {
  34. range 192.168.1.10 192.168.1.250;
  35. interface eth1;
  36. filename "pxelinux.0";
  37. option subnet-mask 255.255.255.0;
  38. option broadcast-address 192.168.1.255;
  39. option routers 192.168.1.1;
  40. }
  41.  
  42. # This is a very basic subnet declaration.
  43.  
  44. #subnet 10.254.239.0 netmask 255.255.255.224 {
  45. #  range 10.254.239.10 10.254.239.20;
  46.  
  47. #  option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
  48. #}
  49.  
  50. # This declaration allows BOOTP clients to get dynamic addresses,
  51. # which we don't really recommend.
  52.  
  53. #subnet 10.254.239.32 netmask 255.255.255.224 {
  54. #  range dynamic-bootp 10.254.239.40 10.254.239.60;
  55. #  option broadcast-address 10.254.239.31;
  56. #  option routers rtr-239-32-1.example.org;
  57. #}
  58.  
  59. # A slightly different configuration for an internal subnet.
  60. #subnet 10.5.5.0 netmask 255.255.255.224 {
  61. #  range 10.5.5.26 10.5.5.30;
  62. #  option domain-name-servers ns1.internal.example.org;
  63. #  option domain-name "internal.example.org";
  64. #  option routers 10.5.5.1;
  65. #  option broadcast-address 10.5.5.31;
  66. #  default-lease-time 600;
  67. #  max-lease-time 7200;
  68. #}
  69.  
  70. # Hosts which require special configuration options can be listed in
  71. # host statements.   If no address is specified, the address will be
  72. # allocated dynamically (if possible), but the host-specific information
  73. # will still come from the host declaration.
  74.  
  75. #host passacaglia {
  76. #  hardware ethernet 0:0:c0:5d:bd:95;
  77. #  filename "vmunix.passacaglia";
  78. #  server-name "toccata.fugue.com";
  79. #}
  80.  
  81. # Fixed IP addresses can also be specified for hosts.   These addresses
  82. # should not also be listed as being available for dynamic assignment.
  83. # Hosts for which fixed IP addresses have been specified can boot using
  84. # BOOTP or DHCP.   Hosts for which no fixed address is specified can only
  85. # be booted with DHCP, unless there is an address range on the subnet
  86. # to which a BOOTP client is connected which has the dynamic-bootp flag
  87. # set.
  88. #host fantasia {
  89. #  hardware ethernet 08:00:07:26:c0:a5;
  90. #  fixed-address fantasia.fugue.com;
  91. #}
  92.  
  93. # You can declare a class of clients and then do address allocation
  94. # based on that.   The example below shows a case where all clients
  95. # in a certain class get addresses on the 10.17.224/24 subnet, and all
  96. # other clients get addresses on the 10.0.29/24 subnet.
  97.  
  98. #class "foo" {
  99. #  match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
  100. #}
  101.  
  102. #shared-network 224-29 {
  103. #  subnet 10.17.224.0 netmask 255.255.255.0 {
  104. #    option routers rtr-224.example.org;
  105. #  }
  106. #  subnet 10.0.29.0 netmask 255.255.255.0 {
  107. #    option routers rtr-29.example.org;
  108. #  }
  109. #  pool {
  110. #    allow members of "foo";
  111. #    range 10.17.224.10 10.17.224.250;
  112. #  }
  113. #  pool {
  114. #    deny members of "foo";
  115. #    range 10.0.29.10 10.0.29.230;
  116.  
  117.   GNU nano 2.2.6                                       File: /etc/dhcp/dhcpd.conf                                                                                      
  118.  
  119. # based on that.   The example below shows a case where all clients
  120. # in a certain class get addresses on the 10.17.224/24 subnet, and all
  121. # other clients get addresses on the 10.0.29/24 subnet.
  122.  
  123. #class "foo" {
  124. #  match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
  125. #}
  126.  
  127. #shared-network 224-29 {
  128. #  subnet 10.17.224.0 netmask 255.255.255.0 {
  129. #    option routers rtr-224.example.org;
  130. #  }
  131. #  subnet 10.0.29.0 netmask 255.255.255.0 {
  132. #    option routers rtr-29.example.org;
  133. #  }
  134. #  pool {
  135. #    allow members of "foo";
  136. #    range 10.17.224.10 10.17.224.250;
  137. #  }
  138. #  pool {
  139. #    deny members of "foo";
  140. #    range 10.0.29.10 10.0.29.230;
  141. #  }
  142. #}
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top