Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Apr 2009 09:47:40 +0400
From:      alexs@analytic.mv.ru
To:        freebsd-stable@freebsd.org
Subject:   Re: diskless netmask problem
Message-ID:  <20090422054740.GA49349@mail.analytic.mv.ru>
In-Reply-To: <20090421095114.GA35757@mail.analytic.mv.ru>
References:  <20090421095114.GA35757@mail.analytic.mv.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
* alexs@analytic.mv.ru <alexs@analytic.mv.ru> [2009-04-21 13:51:14 +0400]:

> Setup diskless in ip/22 subnet
> 
> dhcpd.conf
> subnet 192.168.0.0 netmask 255.255.252.0 {
>   use-host-decl-names on;
>   option subnet-mask 255.255.252.0;
>   option broadcast-address 192.168.3.255;
> 
>   host bart {
>     hardware ethernet 00:1c:c0:85:48:fe;
>     fixed-address 192.168.0.72;
>     filename "pxeboot";
>     option root-path "192.168.0.160:/export/diskless/freebsd71";
>   }
> }
> 
> System starts ok, but netmask on interface is not 255.255.252.0,
> it gets 255.255.255.0
> 
> if put nfs server in 192.168.1.0-192.168.3.255, i have nfs_mountroot error.

Solved by place in /export/diskless/freebsd71/boot/loader.conf
boot.netif.netmask="255.255.252.0"

But it is dirty. 
netmask must taken from dhcp..


> 
> -- 
> alexs
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"

-- 
alexs



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090422054740.GA49349>