summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2008-10-03 11:41:21 +0000
committersthen <sthen@openbsd.org>2008-10-03 11:41:21 +0000
commitebeee9449220b36b244a55483074935f4e54ec7e (patch)
tree6b0aa6c83883aca770365cde72882de298741b6a
parentUse correct function signature when calling the write_host_header hook. (diff)
downloadwireguard-openbsd-ebeee9449220b36b244a55483074935f4e54ec7e.tar.xz
wireguard-openbsd-ebeee9449220b36b244a55483074935f4e54ec7e.zip
Remove shared-network from the sample config, people who need
that should expect to read the manual anyway and it's caused some confusion in the past. Add example entries for fixed-address and pxeboot. ok krw@
-rw-r--r--etc/dhcpd.conf23
1 files changed, 16 insertions, 7 deletions
diff --git a/etc/dhcpd.conf b/etc/dhcpd.conf
index a137f20b3ab..b795c394c8b 100644
--- a/etc/dhcpd.conf
+++ b/etc/dhcpd.conf
@@ -1,4 +1,4 @@
-# $OpenBSD: dhcpd.conf,v 1.1 1998/08/19 04:25:45 form Exp $
+# $OpenBSD: dhcpd.conf,v 1.2 2008/10/03 11:41:21 sthen Exp $
#
# DHCP server options.
# See dhcpd.conf(5) and dhcpd(8) for more information.
@@ -10,13 +10,22 @@
# Default router: 192.168.1.1
# Addresses: 192.168.1.32 - 192.168.1.127
#
-shared-network LOCAL-NET {
- option domain-name "my.domain";
- option domain-name-servers 192.168.1.3, 192.168.1.5;
+option domain-name "my.domain";
+option domain-name-servers 192.168.1.3, 192.168.1.5;
- subnet 192.168.1.0 netmask 255.255.255.0 {
- option routers 192.168.1.1;
+subnet 192.168.1.0 netmask 255.255.255.0 {
+ option routers 192.168.1.1;
- range 192.168.1.32 192.168.1.127;
+ range 192.168.1.32 192.168.1.127;
+
+ host static-client {
+ hardware ethernet 22:33:44:55:66:77;
+ fixed-address 192.168.1.200;
+ }
+
+ host pxe-client {
+ hardware ethernet 02:03:04:05:06:07;
+ filename "pxeboot";
+ next-server 192.168.1.1;
}
}