Advertisement
Guest User

Untitled

a guest
Sep 18th, 2021
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. root@infra1:/etc/dhcp# cat dhcpd.conf
  2. # dhcpd.conf
  3.  
  4.  
  5. # option definitions common to all supported networks...
  6. option domain-name "lab.test";
  7.  
  8. # option domain-name-servers ns1.example.org, ns2.example.org;
  9. option domain-name-servers infra1.lab.test;
  10.  
  11. # For dynamic updates
  12. ddns-updates on;
  13. ddns-update-style interim;
  14. ignore client-updates;
  15. update-static-leases on;
  16. authoritative;
  17.  
  18. default-lease-time 600;
  19. max-lease-time 7200;
  20.  
  21. # The ddns-updates-style parameter controls whether or not the server will
  22. # attempt to do a DNS update when a lease is confirmed. We default to the
  23. # behavior of the version 2 packages ('none', since DHCP v2 didn't
  24. # have support for DDNS.)
  25. ddns-update-style none;
  26.  
  27. # If this DHCP server is the official DHCP server for the local
  28. # network, the authoritative directive should be uncommented.
  29. authoritative;
  30.  
  31. # Use this to send dhcp log messages to a different log file (you also
  32. # have to hack syslog.conf to complete the redirection).
  33. #log-facility local7;
  34. #
  35. include "/etc/dhcp/ddns-keyfile.key";
  36.  
  37. zone lab.test. {
  38. primary 127.0.0.1;
  39. key ddns-key;
  40. }
  41.  
  42. zone 10.10.10.in-addr.arpa. {
  43. primary 127.0.0.1;
  44. key ddns-key;
  45. }
  46.  
  47. # A slightly different configuration for an internal subnet.
  48. subnet 10.10.10.0 netmask 255.255.255.0 {
  49. range 10.10.10.100 10.10.10.200;
  50. option domain-name-servers infra1.lab.test;
  51. option domain-name "lab.test";
  52. option routers 10.10.10.1;
  53. option broadcast-address 10.10.10.255;
  54. default-lease-time 600;
  55. max-lease-time 7200;
  56. }
  57.  
  58. host testhost {
  59. hardware ethernet xx:xx:xx:xx:xx:xx;
  60. fixed-address 10.10.10.25;
  61. }
  62.  
  63.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement