Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. #
  2. # Sample configuration file for ISC dhcpd for Debian
  3. #
  4. # $Id: dhcpd.conf,v 1.1.1.1 2002/05/21 00:07:44 peloy Exp $
  5. #
  6.  
  7. # The ddns-updates-style parameter controls whether or not the server will
  8. # attempt to do a DNS update when a lease is confirmed. We default to the
  9. # behavior of the version 2 packages ('none', since DHCP v2 didn't
  10. # have support for DDNS.)
  11. ddns-update-style none;
  12.  
  13. # option definitions common to all supported networks...
  14. option domain-name "switchfreedom.lan";
  15. option domain-name-servers 192.168.0.156;
  16.  
  17. default-lease-time 600;
  18. max-lease-time 7200;
  19.  
  20. # If this DHCP server is the official DHCP server for the local
  21. # network, the authoritative directive should be uncommented.
  22. #authoritative;
  23.  
  24. # Use this to send dhcp log messages to a different log file (you also
  25. # have to hack syslog.conf to complete the redirection).
  26. log-facility local7;
  27.  
  28. ######## OUR STUFF
  29.  
  30. option option-150 code 150 = text;
  31. option option-155 code 155 = text;
  32. option option-160 code 160 = text;
  33. option sip-server code 151 = text;
  34. #option vlan-flag code 190 = unsigned integer 8;
  35. #option voice-vlan-id code 191 = unsigned integer 16;
  36. #option data-vlan-id code 192 = unsigned integer 16;
  37. #option voice-vlan code 128 = unsigned integer 16;
  38.  
  39.  
  40. class "Phones" {
  41. match if (
  42. #Aastra
  43. (substring(hardware,1,3)=00:08:5d)or
  44. #GrandStream
  45. (substring(hardware,1,3)=00:0b:82)or
  46. #Polycom
  47. (substring(hardware,1,3)=00:04:f2)or
  48. #Linksys
  49. (substring(hardware,1,3)=00:0e:08)or
  50. #Snom
  51. (substring(hardware,1,3)=00:04:13)or
  52. #Yealink
  53. (substring(hardware,1,3)=00:15:65)
  54. );
  55. }
  56.  
  57. subnet 10.10.10.0 netmask 255.255.255.0 {
  58. pool {
  59. allow members of "Phones";
  60. dynamic-bootp-lease-length 3600;
  61. authoritative;
  62. range 10.10.10.2 10.10.10.50;
  63. option subnet-mask 255.255.255.0;
  64. option broadcast-address 10.10.10.255;
  65.  
  66. }
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement