Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Sample configuration file for ISC dhcpd for Debian
- #
- # $Id: dhcpd.conf,v 1.1.1.1 2002/05/21 00:07:44 peloy Exp $
- #
- # The ddns-updates-style parameter controls whether or not the server will
- # attempt to do a DNS update when a lease is confirmed. We default to the
- # behavior of the version 2 packages ('none', since DHCP v2 didn't
- # have support for DDNS.)
- ddns-update-style none;
- # option definitions common to all supported networks...
- option domain-name "switchfreedom.lan";
- option domain-name-servers 192.168.0.156;
- default-lease-time 600;
- max-lease-time 7200;
- # If this DHCP server is the official DHCP server for the local
- # network, the authoritative directive should be uncommented.
- #authoritative;
- # Use this to send dhcp log messages to a different log file (you also
- # have to hack syslog.conf to complete the redirection).
- log-facility local7;
- ######## OUR STUFF
- option option-150 code 150 = text;
- option option-155 code 155 = text;
- option option-160 code 160 = text;
- option sip-server code 151 = text;
- #option vlan-flag code 190 = unsigned integer 8;
- #option voice-vlan-id code 191 = unsigned integer 16;
- #option data-vlan-id code 192 = unsigned integer 16;
- #option voice-vlan code 128 = unsigned integer 16;
- class "Phones" {
- match if (
- #Aastra
- (substring(hardware,1,3)=00:08:5d)or
- #GrandStream
- (substring(hardware,1,3)=00:0b:82)or
- #Polycom
- (substring(hardware,1,3)=00:04:f2)or
- #Linksys
- (substring(hardware,1,3)=00:0e:08)or
- #Snom
- (substring(hardware,1,3)=00:04:13)or
- #Yealink
- (substring(hardware,1,3)=00:15:65)
- );
- }
- subnet 10.10.10.0 netmask 255.255.255.0 {
- pool {
- allow members of "Phones";
- dynamic-bootp-lease-length 3600;
- authoritative;
- range 10.10.10.2 10.10.10.50;
- option subnet-mask 255.255.255.0;
- option broadcast-address 10.10.10.255;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement