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 DHCP client,
67 for each interface that is to be configured via DHCP.
69 [Optional] To tweak settings, edit
70 .Pa /etc/dhclient.conf
72 .Cm dhcp_client="dhclient" )
76 .Cm dhcp_client="dhcpcd" ) .
87 .Bl -enum -offset indent
95 .Pa /usr/local/etc/dhcp/dhcpd.conf .
110 daemon at boot-time and listen for DHCP requests on the local network.
111 To start it manually, execute the following command:
113 .Dl # /usr/local/sbin/dhcpd [netif1 netif2 ...]
116 The DHCP client and server use the Berkeley Packet Filter (BPF).
117 Ensure the kernel has been compiled with BPF support
120 file exists per broadcast network interface that is attached to the system.
121 This is almost always the case and should only be considered if all other
122 troubleshooting options have failed.
126 for information on other available options.
127 Note, however, that most of the flags are useful only for debugging purposes.
129 .Bl -tag -width /usr/local/etc/dhcpd.conf
131 configuration file where
132 DHCP client configuration is set for individual interfaces and
135 .It Pa /etc/dhclient.conf
136 DHCP client configuration file for
138 .It Pa /etc/dhcpcd.conf
139 DHCP client configuration file for
141 .It Pa /usr/local/etc/dhcp/dhcpd.conf
142 DHCP server configuration file
145 .Xr dhclient.conf 5 ,
147 .Xr dhcpd.conf 5 Pq Pa net/isc-dhcp44-server ,
150 .Xr dhcpd 8 Pq Pa net/isc-dhcp44-server ,
151 .Xr dhcrelay 8 Pq Pa net/isc-dhcp44-relay