From sten@ford.blinkenlights.nl  Sat Dec 21 16:47:36 2002
Return-Path: <sten@ford.blinkenlights.nl>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7C33237B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 21 Dec 2002 16:47:36 -0800 (PST)
Received: from ford.blinkenlights.nl (uplink-1.ford.blinkenlights.nl [213.196.13.2])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D471D43EDA
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 21 Dec 2002 16:47:35 -0800 (PST)
	(envelope-from sten@ford.blinkenlights.nl)
Received: by ford.blinkenlights.nl (Postfix, from userid 101)
	id DE15655E7; Sun, 22 Dec 2002 01:47:22 +0100 (CET)
Message-Id: <20021222004722.DE15655E7@ford.blinkenlights.nl>
Date: Sun, 22 Dec 2002 01:47:22 +0100 (CET)
From: Sten Spans <sten@blinkenlights.nl>
Reply-To: Sten Spans <sten@blinkenlights.nl>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: dhcp_interfaces should be configurable in rc.conf
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         46454
>Category:       conf
>Synopsis:       dhcp_interfaces should be configurable in rc.conf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 21 16:50:03 PST 2002
>Closed-Date:    Sun Feb 02 05:00:07 PST 2003
>Last-Modified:  Sun Feb 02 05:00:07 PST 2003
>Originator:     Sten Spans
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
none
>Environment:
System: FreeBSD ford.blinkenlights.nl 4.7-STABLE FreeBSD 4.7-STABLE #1: Mon Nov 11 01:04:34 CET 2002 root@ford.blinkenlights.nl:/usr/obj/usr/src/sys/FORD i386


	FreeBSD 4.7-STABLE
>Description:
	I have a machine with a vlan interface created with the
	following rc.conf entries:

	cloned_interfaces="vlan4" 
	ifconfig_vlan4="vlan 4 vlandev fxp0"


	this vlan interface has to do dhcp for it's ip
	address, however I can't do :

	cloned_interfaces="vlan4" 
	ifconfig_vlan4="DCHP"

	because that leaves the vlandev is un-configured.
>How-To-Repeat:
	not aplicable
>Fix:

	don't empty dhcp_interfaces in rc.network line 194
	( dhcp_interfaces="" ) which enables the following setup :
	
	cloned_interfaces="vlan4"
	ifconfig_vlan4="vlan 4 vlandev fxp0"
	dhcp_interfaces="vlan4"

	Which makes sense because you can specify network, ipv6_network
	and gif interfaces in rc.conf as well. This change makes dhcp
	possible on interfaces that need ifconfigging before they
	are dhcp ready. I think that this is a better solution than
	using /etc/start_if.${ifn} scripts because it keeps the config
	in rc.conf where it belongs. I also don't see why the emptying
	of dhcp_interfaces in rc.network is needed.


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Sun Feb 2 04:57:56 PST 2003 
State-Changed-Why:  

The start_if mechanism exists for just these kind of edge cases. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=46454 
>Unformatted:
