首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >读取DHCP配置文件时出错。文件或目录不存在。Solaris 10

读取DHCP配置文件时出错。文件或目录不存在。Solaris 10
EN

Server Fault用户
提问于 2012-03-16 04:44:17
回答 1查看 1.3K关注 0票数 0

我目前正在开发一个运行Solaris 10 8/10的Sparc Sun-Fire-280 r。这台机器配置了dhcp服务器,从一开始就使用NIS,但我不知道这些配置文件存储在哪里。我尝试过各种方法,如将资源类型从SUNWbinfiles更改为SUNWfiles等,但运气不佳。

下面是我的工作:

代码语言:javascript
复制
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服务器。

谢谢

EN

回答 1

Server Fault用户

发布于 2012-03-16 12:51:48

我用这个解决了这个问题:

检查文件/etc/inet/dhcpsvc.conf是否存在。如果没有创建它,

重启DHCP服务器

代码语言:javascript
复制
dhcpconfig -S -r

重新配置dhcp服务器

代码语言:javascript
复制
dhcpconfig -C -p /var/dhcp -r SUNWfiles

取消配置it

代码语言:javascript
复制
dhcpconfig -U -hx

检查配置细节(只是为了确保)

代码语言:javascript
复制
dhtadm -P

重新配置it

代码语言:javascript
复制
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
票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/370332

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档