通过在 ok 提示符后为 wanclient-1 设置网络引导参数,然后引导客户机,可以执行无人参与安装。
ok setenv network-boot-arguments host-ip=192.168.198.210, router-ip=192.168.198.1,subnet-mask=255.255.255.0,hostname=wanclient-1, file=http://192.168.198.2/cgi-bin/wanboot-cgi ok boot net - install Resetting ... Sun Blade 100 (UltraSPARC-IIe), No Keyboard Copyright 1998-2003 Sun Microsystems, Inc. All rights reserved. OpenBoot 4.x.build_28, 512 MB memory installed, Serial #50335475. Ethernet address 0:3:ba:e:f3:75, Host ID: 83000ef3. Rebooting with command: boot net - install Boot device: /pci@1f,0/network@c,1 File and args: - install <time unavailable> wanboot progress: wanbootfs: Read 68 of 68 kB (100%) <time unavailable> wanboot info: wanbootfs: Download complete Fri Jun 20 09:16:06 wanboot progress: miniroot: Read 166067 of 166067 kB (100%) Fri Jun 20Tue Apr 15 09:16:06 wanboot info: miniroot: Download complete SunOS Release 5.10 Version WANboot10:04/11/03 64-bit Copyright 1983-2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Configuring devices. |
将设置以下变量。
客户机 IP 地址被设置为 192.168.198.210。
客户机的路由器 IP 地址被设置为 192.168.198.1
客户机的子网掩码被设置为 255.255.255.0
客户机的主机名被设置为 wanclient-1
wanboot-cgi 程序位于 http://192.168.198.2/cgi-bin/wanboot-cgi
客户机通过 WAN 进行安装。如果 wanboot 程序没有找到所需的所有安装信息,则可能会提示您在命令行输入缺少的信息。