扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
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";
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者