forked from RackHD/on-dhcp-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dhcpd.conf
61 lines (50 loc) · 1.72 KB
/
dhcpd.conf
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
# Copyright 2016, EMC, Inc.
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;
# --- REQUIRED FLAGS ---
# Do this to prevent multiple IPs being handed out to the same machine
ignore-client-uids true;
deny duplicates;
# 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;
option tftp-server code 66 = string;
class "arista" {
match if substring (hardware, 1, 3) = 00:1c:73;
}
class "cisco" {
match if substring (hardware, 1, 3) = b0:aa:77
or substring (hardware, 1, 3) = 00:c1:64
or substring (hardware, 1, 3) = 00:42:68;
}
subnet 10.1.1.0 netmask 255.255.255.0 {
# cisco switches
pool {
allow members of "cisco";
# Cisco POAP requires a minimum lease time of 3600 seconds
default-lease-time 3600;
range 10.1.1.231 10.1.1.240;
# Cisco POAP required DHCP options
option routers 10.1.1.1;
option domain-name-servers 10.1.1.1;
option tftp-server "10.1.1.1";
# Cisco POAP only supports TFTP downloads
option bootfile-name "cisco-poap.py";
}
# arista switches
pool {
allow members of "arista";
range 10.1.1.241 10.1.1.250;
# Arista ZTP supports downloading python/bash scripts directly via http
option bootfile-name "http://10.1.1.1:9080/api/current/profiles/switch/arista";
}
# compute nodes
pool {
range 10.1.1.2 10.1.1.230;
# Use this option to signal to the PXE client that we are doing proxy DHCP
option vendor-class-identifier "PXEClient";
}
}