歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Unix知識 >> 關於Unix

網絡安裝FreeBSD


需要一台bsd服務器, 假該BSD ip為192.168.1.200
安裝rsync, isc-dhcp3-server, 都在/usr/ports/net下面可找到
上傳bsd disc1 iso到服務器
# mdconfig -a -t vnode -u 0 -f /path/fbsd_disc1.iso
# mount_cd9660 /dev/md0 /mnt
# rsync -av /mnt /path
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
tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /path/mnt
配置 /etc/exports
/path/mnt -ro 192.168.1.100
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
啟動要安裝的服務器,設置從網絡啟動
正常安裝freebsd
當在選擇安裝介質時,選擇NFS, 配置網絡為dhcp, NFS源 192.168.1.200:/path/mnt
Copyright © Linux教程網 All Rights Reserved