Bug 46531

Summary: DHCP server and relay startup and configuration
Product: Base System Reporter: Linh Pham <question>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.7-STABLE   
Hardware: Any   
OS: Any   

Description Linh Pham 2002-12-26 02:30:01 UTC
Although ISC-DHCP is included in the base install of FreeBSD 4.x, I've noticed
that there is no facility in rc.conf to start up either the DHCP server nor
the relay agent, nor are there any example configuration files under /etc.

Fix: 

I would like to propose adding the facilities to init and rc so that one can
start either the included DHCP server daemon and/or the relay agent by adding
lines to /etc/rc.conf. The variables could be something like:

dhcpd_enable="YES|NO"
dhcpd_flags=""
dhcpd_config="/etc/dhcpd.conf"

dhcrelay_enable="YES|NO"
dhcrelay_flags=""

Then add the necessary lines in /etc/rc.network to parse the variables and
start the daemon or the relay agent if enabled. Also, the ISC-DHCP port under
net/isc-dhcp3 installs an example dhcpd.conf file that the user can base a
the daemon's configuration on. The port also installs startup script examples
under /usr/local/etc and /usr/local/etc/rc.d that could be used as the basis
for the startup bits under /etc/rc.network.

I think this will reduce the need of having to install the port or even
require the person to figure out how to start the services and configure them
and lead to even more messages sent to -questions or -newbies.
How-To-Repeat: Did a grep on /etc/defaults/rc.conf for the DHCP daemon and the relay agent
and found no entry for it, nor found dhcpd.conf under /etc.
Comment 1 setantae 2002-12-26 13:20:55 UTC
On Wed, Dec 25, 2002 at 06:28:14PM -0800, Linh Pham wrote:

> Although ISC-DHCP is included in the base install of FreeBSD 4.x, I've noticed
> that there is no facility in rc.conf to start up either the DHCP server nor
> the relay agent, nor are there any example configuration files under /etc.

Only the client is included in the base system, dhcpd and dhcrelay are not.

Ceri
-- 
By the fierce brothers of the Creator, your destruction is here!
Comment 2 Linh Pham 2002-12-26 15:19:35 UTC
On 2002-12-26 13:20 +0000, Ceri Davies <setantae@submonkey.net> wrote:

# Only the client is included in the base system, dhcpd and dhcrelay are not.

Oops... is there a reason for it not being included in the base system?

-- 
Linh Pham                                         question@closedsrc.org
Webmaster and FreeBSD Geek                          http://closedsrc.org
Apprentice Manager Editor and Writer           http://www.daemonnews.org
Courage: The things I do for love | And So Western Civilization Crumbles
Comment 3 setantae 2002-12-27 21:34:22 UTC
On Thu, Dec 26, 2002 at 07:19:35AM -0800, Linh Pham wrote:
> On 2002-12-26 13:20 +0000, Ceri Davies <setantae@submonkey.net> wrote:
> 
> # Only the client is included in the base system, dhcpd and dhcrelay are not.
> 
> Oops... is there a reason for it not being included in the base system?

I'm not sure, but I suspect it's for the same reasons that there's no httpd
in the base system.

Ceri
-- 
In the name of my elders, the valiant brothers, and the forge!
Comment 4 Ceri Davies freebsd_committer freebsd_triage 2002-12-27 21:34:50 UTC
State Changed
From-To: open->closed

dhcpd and dhcrelay are not part of the base system, and therefore 
starting them out of rc.network is not practical.