From 027a1e6acead355fa11696a367b2788d89f370ff Mon Sep 17 00:00:00 2001 From: sthen <> Date: Fri, 3 Oct 2008 11:41:21 +0000 Subject: [PATCH] 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@ --- src/etc/dhcpd.conf | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/src/etc/dhcpd.conf b/src/etc/dhcpd.conf index a137f20b..b795c394 100644 --- a/src/etc/dhcpd.conf +++ b/src/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; } }