Advertisement
Guest User

zaliczenie cz.2

a guest
Dec 17th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.25 KB | None | 0 0
  1. # dhcpd.conf
  2. #
  3. # Sample configuration file for ISC dhcpd
  4. #
  5. #INTERFACE=enp0s3
  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.  
  10. default-lease-time 600;
  11. max-lease-time 345600;
  12.  
  13. # The ddns-updates-style parameter controls whether or not the server will
  14. # attempt to do a DNS update when a lease is confirmed. We default to the
  15. # behavior of the version 2 packages ('none', since DHCP v2 didn't
  16. # have support for DDNS.)
  17. ddns-update-style none;
  18.  
  19. # If this DHCP server is the official DHCP server for the local
  20. # network, the authoritative directive should be uncommented.
  21. #authoritative;
  22.  
  23. # Use this to send dhcp log messages to a different log file (you also
  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.0.1.0 netmask 255.255.255.0 {
  36. # range 10.0.1.100 10.0.1.254;
  37. # option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
  38. #}
  39.  
  40. subnet 192.168.0.0 netmask 255.255.255.0 {
  41. range 192.168.0.200 192.168.0.210;
  42. option broadcast-address 192.168.0.255;
  43. option domain-name "zaliczenie.org";
  44. option domain-name-servers 8.8.8.8;
  45. option routers 192.168.0.2;
  46. }
  47.  
  48. subnet 10.0.0.0 netmask 255.255.255.0 {
  49. range 10.0.0.2 10.0.0.10;
  50. option broadcast-address 10.0.0.255;
  51. option domain-name "zaliczenie.org";
  52. option domain-name-servers 8.8.8.8;
  53. option routers 10.0.0.1;
  54.  
  55. }
  56.  
  57. host debian3{
  58. hardware ethernet 08:00:27:bc:56:fe;
  59. fixed-address 192.168.0.100;
  60. }
  61.  
  62. host debian2{
  63. hardware ethernet 08:00:27:3d:c0:6d;
  64. fixed-address 10.0.0.55;
  65. }
  66.  
  67. # This declaration allows BOOTP clients to get dynamic addresses,
  68. # which we don't really recommend.
  69.  
  70. #subnet 10.254.239.32 netmask 255.255.255.224 {
  71. # range dynamic-bootp 10.254.239.40 10.254.239.60;
  72. # option broadcast-address 10.254.239.31;
  73. # option routers rtr-239-32-1.example.org;
  74. #}
  75.  
  76. # A slightly different configuration for an internal subnet.
  77. #subnet 10.5.5.0 netmask 255.255.255.224 {
  78. # range 10.5.5.26 10.5.5.30;
  79. # option domain-name-servers ns1.internal.example.org;
  80. # option domain-name "internal.example.org";
  81. # option routers 10.5.5.1;
  82. # option broadcast-address 10.5.5.31;
  83. # default-lease-time 600;
  84. # max-lease-time 7200;
  85. #}
  86.  
  87. # Hosts which require special configuration options can be listed in
  88. # host statements. If no address is specified, the address will be
  89. # allocated dynamically (if possible), but the host-specific information
  90. # will still come from the host declaration.
  91.  
  92. #host passacaglia {
  93. # hardware ethernet 0:0:c0:5d:bd:95;
  94. # filename "vmunix.passacaglia";
  95. # server-name "toccata.example.com";
  96. #}
  97.  
  98. # Fixed IP addresses can also be specified for hosts. These addresses
  99. # should not also be listed as being available for dynamic assignment.
  100. # Hosts for which fixed IP addresses have been specified can boot using
  101. # BOOTP or DHCP. Hosts for which no fixed address is specified can only
  102. # be booted with DHCP, unless there is an address range on the subnet
  103. # to which a BOOTP client is connected which has the dynamic-bootp flag
  104. # set.
  105. #host fantasia {
  106. # hardware ethernet 08:00:07:26:c0:a5;
  107. # fixed-address fantasia.example.com;
  108. #}
  109.  
  110. #host debian3{
  111. # hardware ethernet 08:00:27:bc:56:fe;
  112. # fixed-address 10.0.1.102;
  113. #}
  114.  
  115. # You can declare a class of clients and then do address allocation
  116. # based on that. The example below shows a case where all clients
  117. # in a certain class get addresses on the 10.17.224/24 subnet, and all
  118. # other clients get addresses on the 10.0.29/24 subnet.
  119.  
  120. #class "foo" {
  121. # match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
  122. #}
  123.  
  124. #shared-network 224-29 {
  125. # subnet 10.17.224.0 netmask 255.255.255.0 {
  126. # option routers rtr-224.example.org;
  127. # }
  128. # subnet 10.0.29.0 netmask 255.255.255.0 {
  129. # option routers rtr-29.example.org;
  130. # }
  131. # pool {
  132. # allow members of "foo";
  133. # range 10.17.224.10 10.17.224.250;
  134. # }
  135. # pool {
  136. # deny members of "foo";
  137. # range 10.0.29.10 10.0.29.230;
  138. # }
  139. #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement