From owner-freebsd-net@FreeBSD.ORG Tue Dec 9 17:58:57 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 36C19106564A for ; Tue, 9 Dec 2008 17:58:57 +0000 (UTC) (envelope-from jespasac@minibofh.org) Received: from smtp01.cdmon.com (smtp01.cdmon.com [212.36.75.232]) by mx1.freebsd.org (Postfix) with ESMTP id ED3BA8FC1D for ; Tue, 9 Dec 2008 17:58:56 +0000 (UTC) (envelope-from jespasac@minibofh.org) Received: from jespasac.cdmon.com (62.Red-217-126-43.staticIP.rima-tde.net [217.126.43.62]) by smtp01.cdmon.com (Postfix) with ESMTP id 92C33F75AC for ; Tue, 9 Dec 2008 18:40:29 +0100 (CET) Message-ID: <493EAD8B.8040605@minibofh.org> Date: Tue, 09 Dec 2008 18:40:27 +0100 From: Jordi Espasa Clofent User-Agent: Thunderbird 2.0.0.18 (X11/20081120) MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: start_if. comments X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Dec 2008 17:58:57 -0000 Hi all, I'm testing the use of /etc/start_if. instead the classical 'ifconfig....' in /etc/rc.conf. All seems work fine, but if I comment a line in /etc/start_if., any interface is loaded by the system! If I use $ cat /etc/start_if.nfe0 /sbin/ifconfig $1 inet netmask 255.255.254.0 /sbin/ifconfig $1 alias netmask 0xffffffff /sbin/ifconfig $1 alias netmask 0xffffffff all works fine. But if I use $ cat /etc/start_if.nfe0 /sbin/ifconfig $1 inet netmask 255.255.254.0 #/sbin/ifconfig $1 alias netmask 0xffffffff /sbin/ifconfig $1 alias netmask 0xffffffff any nfe0 associated interface is loaded! I don't understand this issue, because according to rc.conf: "If the /etc/start_if. file is present, it is read and executed by the sh(1) interpreter before configuring the interface as specified in the ifconfig_ and ifconfig__alias variables." and all of us know that sh(1) symbol of comment is always '#' żIs it normal or is it a bug? -- Thanks, Jordi Espasa Clofent