Files
toallab-automation/templates/dhcpd.conf.j2
2018-12-06 16:29:26 -05:00

77 lines
2.1 KiB
Django/Jinja

# dhcpd.conf
#
# Configuration file for ISC dhcpd
#
# option definitions common to all supported networks...
option domain-name "toal.ca";
option domain-name-servers 192.168.1.1;
default-lease-time 600;
max-lease-time 7200;
# 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 interim;
update-static-leases on;
# 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.
# LAN Subnet (Currently served by pfSense)
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.101 192.168.1.160;
option domain-name "lan.toal.ca";
option domain-search "toal.ca", "lan.toal.ca";
}
# Lab Subnet
subnet 192.168.90.0 netmask 255.255.255.0 {
range 192.168.90.10 192.168.90.240;
option routers 192.168.90.1;
option domain-name "lab.toal.ca";
}
host sat6 {
hardware ethernet 00:1a:4a:16:01:52;
fixed-address sat6.lab.toal.ca;
# filename "vmunix.passacaglia";
# server-name "toccata.example.com";
}
# You can declare a class of clients and then do address allocation
# based on that. The example below shows a case where all clients
# in a certain class get addresses on the 10.17.224/24 subnet, and all
# other clients get addresses on the 10.0.29/24 subnet.
#class "foo" {
# match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
#}
#shared-network 224-29 {
# subnet 10.17.224.0 netmask 255.255.255.0 {
# option routers rtr-224.example.org;
# }
# subnet 10.0.29.0 netmask 255.255.255.0 {
# option routers rtr-29.example.org;
# }
# pool {
# allow members of "foo";
# range 10.17.224.10 10.17.224.250;
# }
# pool {
# deny members of "foo";
# range 10.0.29.10 10.0.29.230;
# }
#}