summaryrefslogtreecommitdiff
path: root/keama/tests/dhcp3/common.dhcpd.orig
blob: 4c55c83836c009c5a0c4ba7b954a6e8ae5e7a3a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# NATIONAL DHCPD Master Configuration File
# 2010-12-14 ~bpeterson
#
# All non-unique DHCP configuration to be placed here.
# !                           !
# !          CAUTION          !
# !                           !
# All dhcp configuration files are handled by cfengine at
#  meles.srv.pavlovmedia.corp
# Non-unique configuration is contained in dhcp3/folder.dhcpd/master.dhcpd
# Individual dhcp scopes are defined by sitecode as shared networks in
#  dhcp3/folder.dhcpd/$SITECODE.dhcpd
# Files are included into the dhcpd.conf with include statements in
#  dhcp3/includes.dhcpd

# Define DHCPD logging to its own facility
log-facility local0;


# So that the vendor-class-identifier shows in dhcpd.leases file
set vendor-string = option vendor-class-identifier;


# Authoritation is defined at the network level for each shared network
not authoritative;

include "dhcp3/events.dhcpd";

# We are not currently implenting reverse DNS
ddns-update-style none;
ddns-updates off;

deny duplicates;

# OMAPI configuration
omapi-port 7911;

key omapi_key {
algorithm HMAC-MD5;
secret "InHgN5hAa9m7eCkkPCrVBsLpmKhfWZ3L9+X8pLkg/uM=";
};

omapi-key omapi_key;

# Default lease times can be over-ridden at the network or subnet level
## CHEAT SHEET #####
# 8 hours = 28800  #
# 7 hours = 25200  #
# 6 hours = 21600  #
# 5 hours = 14400  #
# 4 hours = 10800  #
# 2 hours =  7200  #
# 1 hour  =  3600  #
####################

# Changelog:
# ----------
# 08/22/13 - rsaska: set to 14,400 (4 hours)
default-lease-time 14400;
max-lease-time 14400;
min-lease-time 3600;

# Define option 43 for Ruckus devices as text
option space VendorInfo;
option VendorInfo.acsurl code 1 = text;

# Define option 43 for UniFi
option space ubnt;
option ubnt.unifi-address code 1 = ip-address;

# Define device classes
class "cm-unregistered" {
        match if substring (option vendor-class-identifier, 0, 6) = "docsis";
    }

class "ruckus" {
        match if ( option vendor-class-identifier = "Ruckus CPE" ) or ( option vendor-class-identifier = "Ruckus" );
        vendor-option-space VendorInfo;
        option VendorInfo.acsurl "http://172.25.207.18/intune/server";
    }

class "Trapeze" {
        match if option vendor-class-identifier = "WIRELESS-AP:MP_522";
    }
class "Trapeze2" {
        match if option vendor-class-identifier = "WIRELESS-AP:WLA522-US";
    }

class "ubnt" {
    	match if ( option vendor-class-identifier = "ubnt" ) or ( option vendor-class-identifier = "udhcp 1.11.2" );
        option vendor-class-identifier "ubnt";
        vendor-option-space ubnt;
	option ubnt.unifi-address 66.253.253.32;
}

class "unifi" {
    	match if option vendor-class-identifier  = "udhcp 1.11.2";
	option ubnt.unifi-address 66.253.253.32;
    }

class "3010s" {
        match if ((substring(option host-name,0,10) = "DES-3010PA"));
    }

class "HP"  {
     match if option vendor-class-identifier = "Colubris-AP";
}

class "BEC" {
     match if ( substring(hardware,1,3) = 00:04:ED );
}


# Include includes file with individual site configuration files
# also includes everything from dhcp_hosts at this level.
include "dhcp3/includes.dhcpd";

# Include configurations for CMTS sites
include "dhcp3/cmts/sites/includes.dhcpd";