DHCP服务分配IP时能否绑定MAC

ZDNet软件频道 时间:2009-12-06 作者:论坛整理 | zdnet网络安全 我要评论()
本文关键词:DHCP服务器 DHCP协议 DHCP 网络协议
在工作站用光盘启动,开始安装REDHAT 9,用的是DHCP,安装完成之后香不到域名,域名成了:localhost。

  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";


百度大联盟认证黄金会员Copyright© 1997- CNET Networks 版权所有。 ZDNet 是CNET Networks公司注册服务商标。
中华人民共和国电信与信息服务业务经营许可证编号:京ICP证010391号 京ICP备09041801号-159
京公网安备:1101082134