分类: BSD
2008-11-07 09:05:22
配置 /usr/local/etc/dhcpd.conf
option domain-name "hshh.org";
option domain-name-servers 61.129.66.79;
default-lease-time 600;
max-lease-time 7200;
ddns-update-style none;
log-facility local7;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.100;
option routers 192.168.1.254;
option subnet-mask 255.255.255.0;
option root-path "192.168.1.200:/path/mnt";
filename "boot/pxeboot";
next-server 192.168.1.200;
}
编辑 /path/mnt/boot/loader.rc
load /boot/kernel/kernel
load -t mfs_root /boot/mfsroot
set vfs.root.mountfrom=ufs:/dev/md0c
boot
配置 /etc/inetd.conf
tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /path/mnt
配置 /etc/exports
/path/mnt -ro 192.168.1.100
配置/etc/rc.conf
dhcpd_enable="yes"
rpcbind_enable="yes"
mountd_enable="yes"
nfs_server_enable="yes"
inetd_enable="yes"
启动服务
/etc/rc.d/rpcbind start
/etc/rc.d/nfsd start
/etc/rc.d/mountd start
/usr/local/etc/rc.d/isc-dhcpd start
启动要的服务器,设置从启动
正常安装
当在选择安装介质时,选择NFS, 配置网络为dhcp, NFS源 192.168.1.200:/path/mnt