# DHCP server options.
# See dhcpd.conf(5) and dhcpd(8) for more information.
#
# Network: 172.16.1.0/255.255.255.0
# Domain name: openbsd.mydomain.com
# Name servers: 172.16.1.106 and 172.16.1.107
# Default router: 172.16.1.107
# Addresses: 172.16.1.1 - 172.16.1.220
#
############################
# this is to specify to the dhcpd server that
# some of the subnets share the same network information
############################
shared-network MY-NETWORK {
############################
# The three lines below are to specify the shared resources
# for all the subnets specified below
#
# order of options
# Lease duration: one week (7 days)
# domain name for DNS and such
# DNS servers to use for lookups
############################
default-lease-time 604800;
option domain-name "openbsd.mydomain.com";
option domain-name-servers 172.16.1.106, 172.16.1.107;
############################
# Specify the subnet to give ips on and the netmask
# given with the ip address
############################
subnet 172.16.1.0 netmask 255.255.255.0 {
#specify the subnet again (see below NB***)
option subnet-mask 255.255.255.0;
#specify the broadcast address for the subnet
option broadcast-address 172.16.1.255;
#specify the gateway to use
option routers 172.16.1.107;
#specify the range of IPaddresses to lease
range 172.16.1.1 172.16.1.220;
}
# If you want a pseudo-static IP
host rainel {
hardware ethernet 00:13:D4:1B:27:A0;
fixed-address 172.16.1.51;
}
}
~~~~~~~~~~~
* Content dhcpd.interfaces
~~~~~~~~~~~
# $OpenBSD: dhcpd.interfaces,v 1.1 1998/08/19 04:25:45 form Exp $
#
# List of network interfaces served by dhcpd(8).
#
# ep0
# ed0 le0
# de1
de0
~~~~~~~~~~~
Workstation dhcp template
host ws1 {
hardware ethernet 00:13:D4:1B:27:A1;
fixed-address 172.16.1.51;
}
host ws2 {
hardware ethernet 00:13:D4:1B:27:A2;
fixed-address 172.16.1.51;
}
host ws3 {
hardware ethernet 00:13:D4:1B:27:A3;
fixed-address 172.16.1.51;
}
host ws4 {
hardware ethernet 00:13:D4:1B:27:A4;
fixed-address 172.16.1.51;
}
host ws5 {
hardware ethernet 00:13:D4:1B:27:A5;
fixed-address 172.16.1.51;
}
host ws6 {
hardware ethernet 00:13:D4:1B:27:A6;
fixed-address 172.16.1.51;
}
host ws7 {
hardware ethernet 00:13:D4:1B:27:A7;
fixed-address 172.16.1.51;
}
host ws8 {
hardware ethernet 00:13:D4:1B:27:A8;
fixed-address 172.16.1.51;
}
host ws9 {
hardware ethernet 00:13:D4:1B:27:A9;
fixed-address 172.16.1.51;
}
host ws10 {
hardware ethernet 00:13:D4:1B:27:A0;
fixed-address 172.16.1.51;
}