将上面内容的文件输出为一个批处理文件,批处理文件内容如下:
set myip=192.168.3.11
set subnetmask=255.255.0.0
set gateways=192.168.1.1
set tftpip=192.168.3.58
set dnsservers=202.96.128.86,202.96.128.166
set ipsegment4=11
输出批处理文件说明:
myip就是YIAddr=后面的
subnetmask对应Subnet mask
gateways对应Gateways
tftpip对应SIAddr
dnsservers对应DNS server
ipsegment4值为YIAddr IP地址的最后一段