我目前正在使用运行 Solaris 10 8/10 的 Sparc Sun-Fire-280R。该机器从一开始就预先配置了 dhcp-server 以使用 NIS,但我不知道这些配置文件存储在哪里。我尝试了各种方法,例如将资源类型从 SUNWbinfiles 更改为 SUNWfiles 等,但运气不佳。
以下是我正在处理的内容:
root@host # dhcpconfig -C -p /var/dhcp -r SUNWfiles
dhcpconfig: Error - reading DHCP configuration file. No such file or directory
root@host # dhcpconfig -U -hx
Unconfigure will stop the DHCP service and remove the DHCP configuration file.
Are you SURE you want to unconfigure the DHCP service? ([Y]/N): y
dhcpconfig: Error - reading DHCP configuration file. No such file or directory
root@host # dhcpconfig -S -r
dhcpconfig: Error - failed to read DHCP server parameters.
root@host # pntadm -L
Warning: No DHCP configuration file exists. There is no way to verify the
data store version for this operation.
pntadm: null is not a valid resource.
root@host # pntadm -R
Warning: No DHCP configuration file exists. There is no way to verify the
data store version for this operation.
root@host # svcs | grep dhcp-server
offline 3:54:11 svc:/network/dhcp-server:default
请帮帮我。我该如何重新配置 dhcp 服务器。
谢谢
答案1
我可以这样修复这个问题:
检查文件 /etc/inet/dhcpsvc.conf 是否存在。如果不存在,则创建它
重启 DHCP 服务器
dhcpconfig -S -r
重新配置 dhcp 服务器
dhcpconfig -C -p /var/dhcp -r SUNWfiles
取消配置
dhcpconfig -U -hx
检查配置详细信息(以确保万无一失)
dhtadm -P
重新配置
dhcpconfig -D -r SUNWfiles -p /var/dhcp -h dns -y 192.168.x.xx -l 480 -d 192.168.x.xx -a 192.168.x.xx