From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 27 19:21:43 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4445416A41C for ; Mon, 27 Jun 2005 19:21:43 +0000 (GMT) (envelope-from nike_d@cytexbg.com) Received: from mail.interbgc.com (mx01.interbgc.com [217.9.224.225]) by mx1.FreeBSD.org (Postfix) with SMTP id 86E9143D4C for ; Mon, 27 Jun 2005 19:21:42 +0000 (GMT) (envelope-from nike_d@cytexbg.com) Received: (qmail 95514 invoked from network); 27 Jun 2005 19:21:39 -0000 Received: from nike_d@cytexbg.com by keeper.interbgc.com by uid 1002 with qmail-scanner-1.14 (uvscan: v4.2.40/v4374. spamassassin: 2.63. Clear:SA:0(-2.6/8.0):. Processed in 3.363679 secs); 27 Jun 2005 19:21:39 -0000 X-Spam-Status: No, hits=-2.6 required=8.0 Received: from 213-240-205-251.1697748.ddns.cablebg.net (HELO tormentor.totalterror.net) (213.240.205.251) by mx01.interbgc.com with SMTP; 27 Jun 2005 19:21:36 -0000 Received: (qmail 53165 invoked from network); 27 Jun 2005 19:21:34 -0000 Received: from qmail by qscan (mail filter); 27 Jun 2005 19:21:34 +0000 Received: from unknown (HELO ?10.0.0.3?) (10.0.0.3) by tormentor.totalterror.net with SMTP; 27 Jun 2005 19:21:34 -0000 Message-ID: <42C051D3.2080709@cytexbg.com> Date: Mon, 27 Jun 2005 22:21:55 +0300 From: Niki Denev User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Darren Pilgrim References: <002501c57b45$3d72c9e0$0b2a15ac@SMILEY> In-Reply-To: <002501c57b45$3d72c9e0$0b2a15ac@SMILEY> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org Subject: Re: How to disable at-boot configuration of a network interface but permit manual use of rc.d? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2005 19:21:43 -0000 Darren Pilgrim wrote: > There are some conditions to the task given by the subject: > > 1: The interface must be present at boot. > 2: Use of /etc/rc.d scripts to start and stop the interface is > desirable. > > The first condition poses no problem, just don't include the relevant > ifconfig_ifn line in /etc/rc.conf and the interface won't be configured. > But rc.d/dhclient and rc.d/netif won't work without an ifconfig line for > the interface. > > Adding the ifconfig line and then listing every interface but the one I > want configured in network_interfaces does prevent it from being > configured at boot while having an ifconfig line in rc.conf, but if I > try to use rc.d/netif to start the interface, rc.d/netif does nothing > because it tests the interface against the contents of > network_interfaces and cloned_interfaces, so the interface I left out > will be excluded. > > Have I overlooked an option somewhere? > Hi, What happens if you configure the interface in 'down' state, like : ifconfig_fxp0="inet 192.168.0.10 netmask 0xffffff00 down" P.S.: Just an idea, never tried it :) --niki