From owner-freebsd-bugs Sat Dec 21 16:50: 7 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C26B37B405 for ; Sat, 21 Dec 2002 16:50:05 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D03143EEC for ; Sat, 21 Dec 2002 16:50:04 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gBM0o4NS098540 for ; Sat, 21 Dec 2002 16:50:04 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gBM0o4Vh098539; Sat, 21 Dec 2002 16:50:04 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C33237B401 for ; 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 ; 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 Reply-To: Sten Spans To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: conf/46454: dhcp_interfaces should be configurable in rc.conf Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 46454 >Category: conf >Synopsis: dhcp_interfaces should be configurable in rc.conf >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Dec 21 16:50:03 PST 2002 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message