From 49b85ed37256d6ef1874af90824d89a8c20546fa Mon Sep 17 00:00:00 2001 From: Vladimir Vitkov Date: Sun, 6 Oct 2019 11:15:06 +0300 Subject: [PATCH] isc-dhcpd config --- misc/dhcp/dhcpd.conf | 88 +++++++++++++++++++++++++++++++++++++++ misc/dhcp/isc-dhcp-server | 18 ++++++++ 2 files changed, 106 insertions(+) create mode 100644 misc/dhcp/dhcpd.conf create mode 100644 misc/dhcp/isc-dhcp-server diff --git a/misc/dhcp/dhcpd.conf b/misc/dhcp/dhcpd.conf new file mode 100644 index 0000000..154bbeb --- /dev/null +++ b/misc/dhcp/dhcpd.conf @@ -0,0 +1,88 @@ +# +# Sample configuration file for ISC dhcpd for Debian +# +# + +# 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 "example.org"; +#option domain-name-servers ns1.example.org, ns2.example.org; + +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; + +# No service will be given on this subnet, but declaring it helps the +# DHCP server to understand the network topology. + +#subnet 10.152.187.0 netmask 255.255.255.0 { +#} + +# This is a very basic subnet declaration. + +#subnet 10.254.239.0 netmask 255.255.255.224 { +# range 10.254.239.10 10.254.239.20; +# option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org; +#} + +# philharmonic +subnet 192.168.1.0 netmask 255.255.255.0 { + range 192.168.1.10 192.168.1.254; + option routers 192.168.1.1; + option domain-name-servers 192.168.1.1; +} + +# MGMT +subnet 10.20.0.0 netmask 255.255.255.0 { + range 10.20.0.20 10.20.0.250; + option routers 10.20.0.1; + option domain-name-servers 10.20.0.1; +} + +# VIDEO +subnet 10.23.0.0 netmask 255.255.255.0 { + range 10.23.0.100 10.23.0.250; + option routers 10.23.0.1; + option domain-name-servers 10.23.0.1; +} + +# overflow +subnet 10.24.0.0 netmask 255.255.255.0 { + range 10.24.0.10 10.24.0.250; + option routers 10.24.0.1; + option domain-name-servers 10.24.0.1; +} + +# wired +subnet 10.21.0.0 netmask 255.255.252.0 { + range 10.21.1.10 10.21.3.250; + option routers 10.21.0.1; + option domain-name-servers 10.21.0.1; +} + +# wireless +subnet 10.22.0.0 netmask 255.255.252.0 { + range 10.22.0.10 10.22.3.250; + option routers 10.22.0.1; + option domain-name-servers 10.22.0.1; +} + +# phones +subnet 10.25.0.0 netmask 255.255.255.0 { + range 10.25.0.10 10.25.0.200; + option routers 10.25.0.1; + option domain-name-servers 10.25.0.1; + next-server 10.25.0.1; +} diff --git a/misc/dhcp/isc-dhcp-server b/misc/dhcp/isc-dhcp-server new file mode 100644 index 0000000..614ce88 --- /dev/null +++ b/misc/dhcp/isc-dhcp-server @@ -0,0 +1,18 @@ +# Defaults for isc-dhcp-server (sourced by /etc/init.d/isc-dhcp-server) + +# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf). +#DHCPDv4_CONF=/etc/dhcp/dhcpd.conf +#DHCPDv6_CONF=/etc/dhcp/dhcpd6.conf + +# Path to dhcpd's PID file (default: /var/run/dhcpd.pid). +#DHCPDv4_PID=/var/run/dhcpd.pid +#DHCPDv6_PID=/var/run/dhcpd6.pid + +# Additional options to start dhcpd with. +# Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead +#OPTIONS="" + +# On what interfaces should the DHCP server (dhcpd) serve DHCP requests? +# Separate multiple interfaces with spaces, e.g. "eth0 eth1". +INTERFACESv4="bond0.20 bond0.21 bond0.22 bond0.23 bond0.24 bond0.25" +INTERFACESv6=""