From owner-freebsd-current@FreeBSD.ORG Wed May 6 17:08:41 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 891051065678; Wed, 6 May 2009 17:08:41 +0000 (UTC) (envelope-from rb@gid.co.uk) Received: from mx0.gid.co.uk (mx0.gid.co.uk [194.32.164.250]) by mx1.freebsd.org (Postfix) with ESMTP id E020D8FC16; Wed, 6 May 2009 17:08:40 +0000 (UTC) (envelope-from rb@gid.co.uk) Received: from gidgate.gid.co.uk (80-46-130-69.static.dsl.as9105.com [80.46.130.69]) by mx0.gid.co.uk (8.14.2/8.14.2) with ESMTP id n46Gr0bq026326; Wed, 6 May 2009 17:53:00 +0100 (BST) (envelope-from rb@gid.co.uk) Received: from [194.32.164.28] ([194.32.164.6]) by gidgate.gid.co.uk (8.13.8/8.13.8) with ESMTP id n46GqrWL062404; Wed, 6 May 2009 17:52:53 +0100 (BST) (envelope-from rb@gid.co.uk) Message-Id: <57A9FCBA-CBCB-45D2-9B95-5E5DBC0DB964@gid.co.uk> From: Bob Bishop To: mister.olli@googlemail.com In-Reply-To: <1241623255.12407.6.camel@phoenix.blechhirn.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Wed, 6 May 2009 17:52:53 +0100 References: <1241623255.12407.6.camel@phoenix.blechhirn.net> X-Mailer: Apple Mail (2.930.3) Cc: freebsd-current@freebsd.org, "freebsd-questions@freebsd.org" Subject: Re: Assign IP address and hostname via kernel parameter X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 May 2009 17:08:41 -0000 Hi, On 6 May 2009, at 16:20, Mister Olli wrote: > is there a way to configure IP address and hostname on freebsd systems > via kernel command line parameters? [etc] When running diskless, the loader sets kernel variables like: boot.netif.gateway="192.168.198.1" boot.netif.hwaddr="00:15:17:47:14:fc" boot.netif.ip="192.168.198.8" boot.netif.netmask="255.255.255.0" to values obtained from BOOTP or DHCP, and the right things happen. I guess you could just set these in loader.conf or at the loader prompt. -- Bob Bishop rb@gid.co.uk