Added dhcpd.conf
This commit is contained in:
89
aries/dhcpd/dhcpd.conf
Normal file
89
aries/dhcpd/dhcpd.conf
Normal file
@@ -0,0 +1,89 @@
|
||||
include "/usr/local/etc/namedb/rndc.key";
|
||||
|
||||
log-facility local7;
|
||||
|
||||
#ddns-updates on;
|
||||
#ddns-update-style interim;
|
||||
|
||||
use-host-decl-names on;
|
||||
allow unknown-clients;
|
||||
|
||||
authoritative;
|
||||
|
||||
zone secmayl.com. {
|
||||
# primary 192.168.0.1;
|
||||
primary 127.0.0.1;
|
||||
# key rndc-key;
|
||||
}
|
||||
|
||||
zone 168.192.in-addr.arpa. {
|
||||
# primary 192.168.0.1;
|
||||
primary 127.0.0.1;
|
||||
# key rndc-key;
|
||||
}
|
||||
|
||||
# subnet for wired devices
|
||||
subnet 192.168.0.0 netmask 255.255.255.0 {
|
||||
range 192.168.0.100 192.168.0.254;
|
||||
|
||||
option subnet-mask 255.255.255.0;
|
||||
option broadcast-address 192.168.0.255;
|
||||
option routers 192.168.0.1;
|
||||
option domain-name-servers 192.168.0.1;
|
||||
option domain-name "secmayl.com";
|
||||
|
||||
# ddns-domainname "secmayl.com.";
|
||||
# ddns-rev-domainname "168.192.in-addr-arpa.";
|
||||
|
||||
one-lease-per-client on;
|
||||
|
||||
default-lease-time 604800;
|
||||
max-lease-time 604800;
|
||||
}
|
||||
|
||||
# subnet for wireless devices
|
||||
#subnet 192.168.1.0 netmask 255.255.255.0 {
|
||||
# range 192.168.1.100 192.168.1.254;
|
||||
|
||||
# option subnet-mask 255.255.255.0;
|
||||
# option broadcast-address 192.168.1.255;
|
||||
# option routers 192.168.1.1;
|
||||
# option domain-name-servers 192.168.1.1;
|
||||
# option domain-name "secmayl.com";
|
||||
|
||||
## ddns-domainname "secmayl.com.";
|
||||
## ddns-rev-domainname "168.192.in-addr-arpa.";
|
||||
|
||||
# one-lease-per-client on;
|
||||
|
||||
# default-lease-time 604800;
|
||||
# max-lease-time 604800;
|
||||
#}
|
||||
|
||||
# static hosts
|
||||
|
||||
host viziocastdisplay {
|
||||
# result from initial DHCP communication:
|
||||
#starts 2 2018/07/10 00:16:45;
|
||||
#ends 2 2018/07/17 00:16:45;
|
||||
#cltt 2 2018/07/10 01:13:19;
|
||||
#binding state active;
|
||||
#next binding state free;
|
||||
#rewind binding state free;
|
||||
#hardware ethernet c4:1c:ff:f9:33:9c;
|
||||
#set vendor-class-identifier = "dhcpcd-5.2.10:Linux-3.10.0:armv7l:Sigma TRIX-SX7 board";
|
||||
#client-hostname "viziocastdisplay";
|
||||
|
||||
hardware ethernet c4:1c:ff:f9:33:9c;
|
||||
fixed-address 192.168.0.240;
|
||||
}
|
||||
|
||||
##################################################
|
||||
# Events
|
||||
|
||||
#on commit {
|
||||
# set clientName = pick-first-value(option fqdn.hostname, option host-name);
|
||||
# set clientIp = binary-to-ascii(10, 8, ".", loaded-address);
|
||||
# set clientMac = binary-to-ascii(16, 8, ":", sunstring(hardware, 1, 6));
|
||||
# execute("shell.sh", "commit", clientName, clientIp, clientMac);
|
||||
#}
|
||||
Reference in New Issue
Block a user