Re: Assign IP address and hostname via kernel parameter

From: Bob Bishop <rb_at_gid.co.uk>
Date: Wed, 6 May 2009 17:52:53 +0100
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_at_gid.co.uk
Received on Wed May 06 2009 - 15:08:41 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:47 UTC