From owner-freebsd-net@FreeBSD.ORG Thu Mar 15 23:27:31 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 86433106566C for ; Thu, 15 Mar 2012 23:27:31 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 16EC08FC0A for ; Thu, 15 Mar 2012 23:27:30 +0000 (UTC) Received: by wern13 with SMTP id n13so4436400wer.13 for ; Thu, 15 Mar 2012 16:27:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=oPQTW4wkLxnFZyv5XpGf27wIFys+FhHpjTDq4btGsQg=; b=ojTAF3HZD4Be4BL0mHwnlETyq5paL2XN1kluz6amzpqvcl0Fgv+/udx4NhGpomheVw nlMpB2wY2pvTiHMLi/A0fpgiUeg0PdoXpxNcTe6TR9JJInGa9xS+zmjW0secELi6TJ9d UltwvobkSRlHn0QQEsYJ07MROrQ20R84CkraGSyxgpTniQ4Fts2B7EzbP5iCikBujeYn e1hOsWPnTD9W1X0H7xiJQeZKIqW6kA0pwxRPmAiL7o6nntD+aPKyY7TWLRv2V2NndLxU xKwK2L10Z0reb+Px081AzLy/pdSTfq0HYKuDiwc8b2ugjGMS35VhoS9PwxgTH1aeOnQf ltIA== MIME-Version: 1.0 Received: by 10.180.78.233 with SMTP id e9mr30444449wix.0.1331854049925; Thu, 15 Mar 2012 16:27:29 -0700 (PDT) Received: by 10.223.143.3 with HTTP; Thu, 15 Mar 2012 16:27:29 -0700 (PDT) In-Reply-To: <4F61769B.2040809@rdtc.ru> References: <4F607EDF.4010505@rdtc.ru> <4F61769B.2040809@rdtc.ru> Date: Thu, 15 Mar 2012 16:27:29 -0700 Message-ID: From: Kevin Oberman To: Eugene Grosbein Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org, hiren panchasara Subject: Re: Use of network_interfaces in rc.conf 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: Thu, 15 Mar 2012 23:27:31 -0000 2012/3/14 Eugene Grosbein : > 15.03.2012 06:33, hiren panchasara =D0=C9=DB=C5=D4: > >> =9A =9A network_interfaces is basically historic rudiment >> =9A =9A used in 2.2.x FreeBSD version and alike. >> >> =9A =9A In general, you should not use it in modern version at all. >> >> >> Thanks Eugene. >> >> So, the only way to specify boottime configuration (that survives reboot= s) for an interface in rc.conf is: >> ifconfig_em0=3D"dhcp" ? > > Yes, thats what man rc.conf says. Minor correction, but the man page says 'ifconfig_em0=3D"DHCP". It may not be case sensitive, but I have always uded CAPS like the man page specifies. Also, I usually end up specifying SYNCDHCP to avoid having something else that requires network starting before the interface is configured. Of course, ifconfig_* may have any valid ifconfig argument in it, but remember the rc.conf is shell, so you must put all of the definition in a single statement. You can't do: ifconfig_em0=3D"DHCP" ifconfig_em0=3D"mediaopt half-duplex" That will not do DHCP, so hte interface will not come up. Of course, you can concatinate a second entry to the first using normal sh syntax. --=20 R. Kevin Oberman, Network Engineer E-mail: kob6558@gmail.com