From owner-freebsd-current@FreeBSD.ORG Mon May 11 16:17:00 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 6EDF01065686; Mon, 11 May 2009 16:17:00 +0000 (UTC) (envelope-from mister.olli@googlemail.com) Received: from mail-fx0-f216.google.com (mail-fx0-f216.google.com [209.85.220.216]) by mx1.freebsd.org (Postfix) with ESMTP id BD38D8FC20; Mon, 11 May 2009 16:16:59 +0000 (UTC) (envelope-from mister.olli@googlemail.com) Received: by fxm12 with SMTP id 12so2834753fxm.43 for ; Mon, 11 May 2009 09:16:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:subject:from:reply-to:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=6RvmIdt6nww0cTAredowatNtXSQ38sFWpjyNu45pB44=; b=v2VoaJ9rVP9ylAdei+t2VmcgRipLSBeFmPz4ELsI0EZyGSdyDwTJgW3EkZAZr4sWHX x5Yitp/aEH9+OmgLd+PuDC9JUjxjRIQh9H71eLYUdeKJFdAm2mu6ii4IQduPWg1QisY/ qfuj2EisrfJ4ORh2oZhtHYYRbQA2y5q+pHujs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=subject:from:reply-to:to:cc:in-reply-to:references:content-type :date:message-id:mime-version:x-mailer:content-transfer-encoding; b=mea+bx0wc9W5+7c5FqarXUJQpt2nfKyVHfv0+VVqU2B5/E7YwHKMYHaLLwyb6rw3Rd qc19TLak61x7EiFjMMBDaSACQDkHlPJCQVSOtTuaG6ZJiutip1ZEvqy/26uV73EoqlCD gaN66IwGxoY+Qzl2ZSQvr8Yi07Zt2zUikGBjo= Received: by 10.204.118.70 with SMTP id u6mr7043843bkq.198.1242058617942; Mon, 11 May 2009 09:16:57 -0700 (PDT) Received: from ?10.30.1.130? (vpn-or.studi-planet.com [78.47.172.52]) by mx.google.com with ESMTPS id k29sm8120833fkk.31.2009.05.11.09.16.51 (version=SSLv3 cipher=RC4-MD5); Mon, 11 May 2009 09:16:57 -0700 (PDT) From: Mister Olli To: Bob Bishop In-Reply-To: <57A9FCBA-CBCB-45D2-9B95-5E5DBC0DB964@gid.co.uk> References: <1241623255.12407.6.camel@phoenix.blechhirn.net> <57A9FCBA-CBCB-45D2-9B95-5E5DBC0DB964@gid.co.uk> Content-Type: text/plain Date: Mon, 11 May 2009 18:16:39 +0200 Message-Id: <1242058599.25870.26.camel@phoenix.blechhirn.net> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 Content-Transfer-Encoding: 7bit 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 Reply-To: mister.olli@googlemail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 May 2009 16:17:01 -0000 Hi, I had a short look on google for this parameters, and from my understanding the NFS diskless client is using the informations out of it to set the appropriate settings on the network interface. So no luck when supplying them as kernel parameters. Oh and btw I'm not sure how to setup kernel options. Normally this is done in 'loader.conf', but since para-virtualized xen does start the kernel directly there's no way to do this via loader.conf. Does anyone have some idea or hints how to solve this problem? Regards, --- Mr. Olli On Wed, 2009-05-06 at 17:52 +0100, Bob Bishop wrote: > 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 > > > >