option domain-name "station15.example.com";
但在工作站用光盘启动,开始安装REDHAT 9,用的是DHCP,安装完成之后香不到域名,域名成了:localhost
老大,在你的dhcp config中应该有这个吧
option domain-name "example.com";
是这样的,应该怎么改?
[root@gateway etc]# cat dhcpd.conf
default-lease-time 2160000;
ddns-update-style ad-hoc;
subnet 192.168.4.0 netmask 255.255.255.0
{
range 192.168.4.30 192.168.4.230;
option broadcast-address 192.168.4.255;
option routers 192.168.4.9;
option domain-name-servers 192.168.4.6,202.102.14.141,210.15.22.2,210.78.21.1;
option netbios-name-servers 192.168.4.10;
# host pxeclient
# {
# hardware ethernet 00:02:2E:F4:66:98;
# fixed-address 192.168.4.12;
# next-server 192.168.4.181;
# filename "pxelinux.0";
# next-server 192.168.4.13;
# }
# host pxeclient1
# {
# hardware ethernet 00:20:Ed:ab:47:ee;
# fixed-address 192.168.4.13;
# next-server 192.168.4.181;
# filename "pxelinux.0";
# next-server 192.168.4.181;
# }
host station15
{
hardware ethernet 00:05:5D:FE:CE:D1;
fixed-address 192.168.4.15;
option domain-name "station15.example.com";
}
}
option domain-name-servers 192.168.4.6,202.102.14.141,210.15.22.2,210.78.21.1;
option domain-name "example.com";
option netbios-name-servers 192.168.4.10;
改成了这样:
default-lease-time 2160000;
ddns-update-style ad-hoc;
subnet 192.168.4.0 netmask 255.255.255.0
{
range 192.168.4.30 192.168.4.230;
option broadcast-address 192.168.4.255;
option routers 192.168.4.9;
option domain-name "example.com";
option domain-name-servers 192.168.4.6,202.102.14.141,210.15.22.2,210.78.21.1;
option netbios-name-servers 192.168.4.10;
# host pxeclient
# {
# hardware ethernet 00:02:2E:F4:66:98;
# fixed-address 192.168.4.12;
# next-server 192.168.4.181;
# filename "pxelinux.0";
# next-server 192.168.4.13;
# }
# host pxeclient1
# {
# hardware ethernet 00:20:Ed:ab:47:ee;
# fixed-address 192.168.4.13;
# next-server 192.168.4.181;
# filename "pxelinux.0";
# next-server 192.168.4.181;
# }
host station15
{
hardware ethernet 00:05:5D:FE:CE:D1;
fixed-address 192.168.4.15;
}
}
结果还是一样。
终于找到了,原来是要用:option host-name "station15.exampe.com";
文章来源于领测软件测试网 https://www.ltesting.net/
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备2023014753号-2
技术支持和业务联系:info@testage.com.cn 电话:010-51297073