Advertisement
amartin

dhcpd.conf

Apr 1st, 2014
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. default-lease-time 86400; # 1 day
  2. max-lease-time 86400; # 1 day
  3. option domain-name "example2.com";
  4. option routers 192.168.0.1;
  5. option domain-name-servers 192.168.0.101, 192.168.0.102;
  6. authoritative; # We are the "REAL" DHCP server
  7. ddns-update-style none;
  8. use-host-decl-names on; # names provided will be sent as hostname to client
  9. option classless-routes code 121 = array of unsigned integer 8;
  10. option classless-routes-win code 249 = array of unsigned integer 8;
  11.  
  12. #failover block (primary)
  13. failover peer dhcp-failover {
  14. primary;
  15. address 192.168.0.101;
  16. port 647;
  17. peer address 192.168.0.102;
  18. peer port 647;
  19. max-response-delay 60;
  20. max-unacked-updates 10;
  21. load balance max seconds 3;
  22. mclt 3600;
  23. split 128;
  24. }
  25.  
  26.  
  27. shared-network NET1 {
  28. allow bootp;
  29. subnet 192.168.0.0 netmask 255.255.255.0 {
  30. option subnet-mask 255.255.255.0;
  31. option broadcast-address 192.168.0.255;
  32. option routers 192.168.0.1;
  33. option ntp-servers 192.168.0.101, 192.168.0.102;
  34. option domain-name-servers 192.168.0.101, 192.168.0.102;
  35.  
  36. pool {
  37. failover peer "dhcp-failover";
  38. range 192.168.0.150 192.168.0.254;
  39. }
  40.  
  41. # Network Hardware
  42. group {
  43. host host1 { hardware ethernet 00:00:00:00:00:00; fixed-address 192.168.0.21; }
  44. ...
  45. }
  46. }
  47.  
  48. shared-network NET2 {
  49. ...
  50. }
  51.  
  52. shared-network NET3 {
  53. ...
  54. }
  55.  
  56. shared-network NET4 {
  57. ...
  58. }
  59.  
  60. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement