1 .\" $OpenBSD: dhcp.8,v 1.24 2008/06/08 03:03:37 jdixon Exp $
4 .\" Copyright (c) 1999 Aaron Campbell
5 .\" All rights reserved.
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
11 .\" 1. Redistributions of source code must retain the above copyright
12 .\" notice, this list of conditions and the following disclaimer.
13 .\" 2. Redistributions in binary form must reproduce the above copyright
14 .\" notice, this list of conditions and the following disclaimer in the
15 .\" documentation and/or other materials provided with the distribution.
17 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 .Nd configuring DragonFly for DHCP
35 The Dynamic Host Configuration Protocol (DHCP) allows hosts on a TCP/IP network
36 to configure one or more network interfaces based on information collected from
37 a DHCP server in response to a DHCP request.
38 This mechanism is often used, for example, by cable modem and DSL network
39 providers to simplify network configurations for their clients/customers.
41 Information typically contained within a DHCP response includes an IP
42 address for the interface, subnet mask, broadcast address, router (gateway)
43 listing, domain name server listing, and the interface's MTU.
48 .Bl -enum -offset indent
50 For each interface that is to be configured via DHCP, add
53 .Va ifconfig_ Ns Aq Ar interface
58 for more information on the format of this file.
62 script reads each of these variables at boot-time and runs the
64 program for each interface that is to be configured via DHCP.
66 [Optional] To tweak settings, edit
67 .Pa /etc/dhclient.conf .
68 This file is shipped with the system.
79 .Bl -enum -offset indent
87 .Pa /usr/local/etc/dhcp/dhcpd.conf .
102 daemon at boot-time and listen for DHCP requests on the local network.
103 To start it manually, execute the following command:
105 .Dl # /usr/local/sbin/dhcpd [netif1 netif2 ...]
108 The DHCP client and server use the Berkeley Packet Filter (BPF).
109 Ensure the kernel has been compiled with BPF support
112 file exists per broadcast network interface that is attached to the system.
113 This is almost always the case and should only be considered if all other
114 troubleshooting options have failed.
118 for information on other available options.
119 Note, however, that most of the flags are useful only for debugging purposes.
121 .Bl -tag -width /usr/local/etc/dhcpd.conf
122 .It Pa /usr/local/etc/dhcp/dhcpd.conf
123 DHCP server configuration file
125 configuration file where
126 DHCP client configuration is set for individual interfaces and
129 .It Pa /etc/dhclient.conf
130 DHCP client configuration file
133 .Xr dhclient.conf 5 ,
134 .Xr dhcpd.conf 5 Pq Pa net/isc-dhcp42-server ,
136 .Xr dhcpd 8 Pq Pa net/isc-dhcp42-server ,
137 .Xr dhcrelay 8 Pq Pa net/isc-dhcp42-relay