Skip to content

Instantly share code, notes, and snippets.

@ac101m
Created December 1, 2018 18:57
Show Gist options
  • Save ac101m/dbddb59386704c82c34c9c573a8c0e0e to your computer and use it in GitHub Desktop.
Save ac101m/dbddb59386704c82c34c9c573a8c0e0e to your computer and use it in GitHub Desktop.
The full configuration file for my dhcp server
# 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 "my.lan";
option domain-name-servers 8.8.8.8, 8.8.4.4;
# Lease times. How long should IPs remain allocated?
default-lease-time 600;
max-lease-time 7200;
# This is the main DHCP server
authoritative;
# Declaration of the subnet
subnet 10.10.10.0 netmask 255.255.255.0 {
range 10.10.10.150 10.10.10.250;
option routers 10.10.10.1;
}
# My main desktop and head node
host ShootThemLater {
hardware ethernet 38:2C:4A:B8:D2:E6;
fixed-address 10.10.10.80;
}
# SCREWLOOSE - a spare machine I own
host SCREWLOOSE {
hardware ethernet 50:E5:49:40:40:BE;
fixed-address 10.10.10.82;
}
# DampSponge - another spare machine
host DampSponge {
hardware ethernet ac:16:2d:9b:f7:68;
fixed-address 10.10.10.81;
}
# Cluster node 4
host FivesACrowd4 {
hardware ethernet 68:B5:99:B5:39:22;
fixed-address 10.10.10.54;
}
# Cluster node 3
host FivesACrowd3 {
hardware ethernet 78:E7:D1:61:EF:CE;
fixed-address 10.10.10.53;
}
# Cluster node 2
host FivesACrowd2 {
hardware ethernet 98:4B:E1:73:92:5A;
fixed-address 10.10.10.52;
}
# Cluster node 1
host FivesACrowd1 {
hardware ethernet 78:E7:D1:61:EF:52;
fixed-address 10.10.10.51;
}
# Cluster node 0
host FivesACrowd0 {
hardware ethernet 68:B5:99:C8:ED:34;
fixed-address 10.10.10.50;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment