1
0
Fork 0

Remove ISC DHCP server

This commit is contained in:
Braiden Vasco 2017-09-17 08:50:49 +00:00
parent 04d9b6f4c5
commit 5e5512779d
4 changed files with 0 additions and 47 deletions

View file

@ -329,18 +329,6 @@ systemctl disable hwclock.sh
fake-hwclock save
EOF
##
# ISC DHCP server
#
on_chroot << EOF
apt-get install -y isc-dhcp-server
EOF
apply_patch '08-dhcp-server.diff'
apply_dir '/etc/dhcp/dhcpd.conf.d/'
apply_file 644 '/etc/dhcp/dhcpd.conf.d/192.168.82.0.conf'
##
# Unmount virtual file systems.
#

View file

@ -1,6 +0,0 @@
subnet 192.168.82.0 netmask 255.255.255.0 {
range 192.168.82.2 192.168.82.254;
option routers 192.168.82.1;
option broadcast-address 192.168.82.255;
}

View file

@ -1,28 +0,0 @@
--- rootfs.orig/etc/dhcp/dhcpd.conf
+++ rootfs/etc/dhcp/dhcpd.conf
@@ -10,20 +10,22 @@
ddns-update-style none;
# option definitions common to all supported networks...
-option domain-name "example.org";
-option domain-name-servers ns1.example.org, ns2.example.org;
+option domain-name "barnacleos.local";
+option domain-name-servers 8.8.8.8, 8.8.4.4;
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;
+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;
+include "/etc/dhcp/dhcpd.conf.d/192.168.82.0.conf";
+
# No service will be given on this subnet, but declaring it helps the
# DHCP server to understand the network topology.

View file

@ -4,4 +4,3 @@
04-bashrc.diff
05-useradd.diff
07-path.diff
08-dhcp-server.diff