客户机不运行时从命令行添加带有网络信息的客户机(方法 A)
按照这些步骤来在客户机不运行时从命令行添加带有网络信息的客户机。
在 NIM 主控机上输入:
# nim -o define -t standalone -a platform=PlatformType \
-a netboot_kernel=NetbootKernelType \
-a if1=InterfaceDescription \
-a net_definition=DefinitionName -a ring_speed1=SpeedValue \
-a cable_type1=TypeValue -a iplrom_emu=DeviceName MachineName示例 1:
添加具有以下配置的主机名为
machine1 的机器:host name=machine1
platform=chrp
kernel=up
network type=ethernet
subnet mask=255.255.240.0
default gateway=gw1
default gateway used by NIM master=gw_master
cable type=bnc
network boot capability=yes (no emulation needed)输入以下命令序列:
# nim -o define -t standalone -a platform="chrp" \
-a netboot_kernel="up" -a if1="find_net machine1 0" \
-a cable_type1="bnc" \
-a net_definition="ent 255.255.240.0 gw1 gw_master" machine1示例 2:
添加具有以下配置的主机名为
machine2 的机器:host name=machine2
platform=chrp
netboot_kernel=up
network type=token ring
subnet mask=255.255.225.0
default gateway=gw2
default gateway used by NIM master=gw_master
ring speed=16
输入以下命令序列:
# nim -o define -t standalone -a platform="chrp" \
-a netboot_kernel="up" -a if1="find_net machine2 0" \
-a ring_speed1="16" \
-a net_definition="tok 255.255.225.0 gw2 gw_master" machine2注意:
- 如果在 if 属性中的 find_net 关键字导致 NIM 成功将网络定义与客户机定义匹配,那么忽略 net_definition 属性。
- 有关定义 NIM 客户机时可以指定的属性的更多信息,请参阅 定义 NIM 客户机