免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 1702 | 回复: 10
打印 上一主题 下一主题

关于DHCP [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-11-28 09:37 |只看该作者 |倒序浏览
Solaris设定IP地址是通过/etc/hosts文件,为网络端口名指定IP地址来实现的。但如果我用的是DHCP,从DHCP SERVER来获得IP地址,那么我在/etc/hosts里面不能加设端口名到IP地址的映射。DHCP生效后重起,NODENAME不生效了,主机名变成了UNKNOW。这个有办法解决吗?

如果只建立/etc/hostname.hme0文件,在里面添加端口名,而不在/etc/hosts里面添加映射。然后touch /etc/dhcp.hem0文件,DHCP还会生效吗?

论坛徽章:
0
2 [报告]
发表于 2003-11-28 10:08 |只看该作者

关于DHCP

DHCP Server里设置每个IP对应的Nodename即可

论坛徽章:
0
3 [报告]
发表于 2003-11-28 10:11 |只看该作者

关于DHCP

server端设置吧

论坛徽章:
0
4 [报告]
发表于 2003-11-28 10:11 |只看该作者

关于DHCP

http://docs.sun.com/db/doc/806-5529

球球 。。这个给你。。

论坛徽章:
0
5 [报告]
发表于 2003-11-28 10:17 |只看该作者

关于DHCP

我也碰到过这个问题

是不是hostname也要从DHCP SERVER获得啊?

论坛徽章:
0
6 [报告]
发表于 2003-11-28 10:22 |只看该作者

关于DHCP

现在是有个问题解释不了。如果IP地址来自DHCP,在DHCP SERVER上设置了IP地址对名称的对应表格。那客户端每次启动系统,都会随机获得一个主机名?主机名是不断变化的?

论坛徽章:
0
7 [报告]
发表于 2003-11-28 10:25 |只看该作者

关于DHCP

DCHP SERVER 是 怎么做的?
用MAC mount 死。

论坛徽章:
0
8 [报告]
发表于 2003-11-28 10:31 |只看该作者

关于DHCP

我是用小区宽带的DHCP SERVER做的实验。所以我不知道DHCP SERVER如何设置的。但是我的房间里还有4,5台Windows的主机,他们的主机名都没有产生变化。

论坛徽章:
0
9 [报告]
发表于 2003-11-28 10:34 |只看该作者

关于DHCP

倒。
那你就把CLEITN HOSTNAME 写好。

抓他的IP 就好了。

论坛徽章:
0
10 [报告]
发表于 2003-11-28 10:35 |只看该作者

关于DHCP

How to Enable a Solaris Client to Request Specific Host Name
On the client system, edit the /etc/default/dhcpagent file as root.

Find the keyword REQUEST_HOSTNAME in the /etc/default/dhcpagent file and modify it as follows:



REQUEST_HOSTNAME=yes


If there is a comment sign (#) in front of the keyword, remove the #. If the keyword is not present, insert it.

Edit the /etc/hostname.interface file on the client system and add the following line:

inet hostname
where hostname is the name you want the client to use.

As root, type the following commands to have the client perform a full DHCP negotiation upon rebooting:



# pkill dhcpagent
# rm /etc/dhcp/interface.dhc
# reboot


The DHCP server makes sure that the host name is not in use by another system on the network before the server assigns it to the client. Depending how it is configured, the DHCP server may update name services with the client's host name.

找到方法了,晚上回去试
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP