diskless netmask problem

alexs at analytic.mv.ru alexs at analytic.mv.ru
Wed Apr 22 05:47:44 UTC 2009


* alexs at analytic.mv.ru <alexs at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org"

-- 
alexs


More information about the freebsd-stable mailing list