Assign IP address and hostname via kernel parameter

Mister Olli mister.olli at
Mon May 11 16:17:01 UTC 2009


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?

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=""
> boot.netif.hwaddr="00:15:17:47:14:fc"
> boot.netif.ip=""
> boot.netif.netmask=""
> 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

More information about the freebsd-questions mailing list