BBB File /etc/dhcp/dhcpd.conf

From Wiki
Jump to: navigation, search

This file is obsolete, and left over from before I realized the BBB's Debian distro came with 'udhcpd' already enabled. However, since it could be useful, I'm preserving it for posterity.

#
# 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 "practiscore.net";
#option domain-name-servers 172.16.0.1;
#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;

subnet 192.168.17.0 netmask 255.255.255.0 {
  range 192.168.17.2 192.168.17.128;
  option domain-name "private.com";
  option domain-name-servers 172.16.0.1;
  option routers 192.168.17.1;
  option subnet-mask 255.255.255.0;
  option broadcast-address 192.168.17.255;
  default-lease-time 600;
  max-lease-time 7200;
}

#
# Fixed IP addresses can also be specified for hosts.   These addresses should
# not also be listed as being available for dynamic assignment.  Hosts for
# which fixed IP addresses have been specified can boot using BOOTP or DHCP.
# Hosts for which no fixed address is specified can only be booted with DHCP,
# unless there is an address range on the subnet to which a BOOTP client is
# connected which has the dynamic-bootp flag set.
#

#host fantasia {
#  hardware ethernet 08:00:07:26:c0:a5;
#  fixed-address fantasia.fugue.com;
#}