From owner-freebsd-doc Tue Sep 19 8: 0: 9 2000 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 00B4F37B42C for ; Tue, 19 Sep 2000 08:00:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id IAA51171; Tue, 19 Sep 2000 08:00:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Tue, 19 Sep 2000 08:00:02 -0700 (PDT) Message-Id: <200009191500.IAA51171@freefall.freebsd.org> To: freebsd-doc@freebsd.org Cc: From: Eric Ogren Subject: Re: docs/21399: Handbook DHCP section doesn't mention bpf Reply-To: Eric Ogren Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR docs/21399; it has been noted by GNATS. From: Eric Ogren To: dpelleg+bsd@cs.cmu.edu Cc: freebsd-gnats-submit@FreeBSD.ORG Subject: Re: docs/21399: Handbook DHCP section doesn't mention bpf Date: Tue, 19 Sep 2000 10:50:05 -0400 --ew6BAiZeqk4r7MaW Content-Type: text/plain; charset=us-ascii On Tue, Sep 19, 2000 at 10:47:48AM -0400, Eric Ogren wrote: > The attached patch should do it. I don't know if that big note about the And now the actual patch... Eric --ew6BAiZeqk4r7MaW Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="DHCP.patch" Index: chapter.sgml =================================================================== RCS file: /usr/local/doctree/doc/en_US.ISO_8859-1/books/handbook/advanced-networking/chapter.sgml,v retrieving revision 1.30 diff -u -r1.30 chapter.sgml --- chapter.sgml 2000/09/01 21:31:46 1.30 +++ chapter.sgml 2000/09/19 14:40:26 @@ -2626,29 +2626,60 @@ execute dhclient, and if successful, will fill in the network configuration information automatically. - To have your system use DHCP to obtain network information - upon startup, edit your /etc/rc.conf to - include the following: + There are two things you must do to have your system use + DHCP upon startup: + + + + Make sure that the bpf + device is compiled into your kernel. To do this, add + psuedo-device bpf to your kernel + configuration file, and rebuild the kernel. For more + information about building kernels, see . + The bpf device is already + part of the GENERIC kernel that is + supplied with FreeBSD, so if you don't have a custom + kernel, you shouldn't need to create one in order to get + DHCP working. + + For those who are particularly security conscious, + you should be warned that bpf + is also the device that allows packet sniffers to work + correctly (although they still have to be run as + root). bpf + is required to use DHCP, but if + you are very sensitive about security, you probably + shouldn't add bpf to your + kernel in the expectation that at some point in the + future you will be using DHCP. + + + + Edit your /etc/rc.conf to + include the following: - + ifconfig_fxp0="DHCP" - + - - Be sure to replace fxp0 with the - designation for the interface that you wish to dynamically - configure. - + + Be sure to replace fxp0 with the + designation for the interface that you wish to dynamically + configure. + - If you are using a different location for - dhclient, or if you wish to pass additional - flags to dhclient, also include the - following (editing as necessary): + If you are using a different location for + dhclient, or if you wish to pass additional + flags to dhclient, also include the + following (editing as necessary): - + dhcp_program="/sbin/dhclient" dhcp_flags="" - + + + The DHCP server, dhcpd, is included as part of the isc-dhcp2 port in the ports --ew6BAiZeqk4r7MaW-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message