在同一子网中具有单个dhcp服务器的多个cobbler服务器

时间:2013-11-08 12:08:38

标签: dhcp tftp

*我有两个Cobbler服务器和一个dhcp服务器,让我们说10.xx51和10.xx52(cobbler服务器),10.xx53(dhcp服务器)。我已经从iso安装了配置文件每个cobbler服务器。我创建了两个pxe启用的裸机,并在10.xx53的/etc/dhcp/dhcpd.conf中配置了mac地址

现在,当我尝试启动pxe启用裸机时,我可以从dhcp获取ip并加载kernal软件包但在启动时我面临问题(检查镜像并停在那里)。它正在工作如果dhcp服务器是个别补鞋匠设置的本地服务器。*

1 个答案:

答案 0 :(得分:1)

分组是dhcp中可用的概念,因此如果我们配置它,我们可以使用多个cobbler服务器维护常见的dhcp。

的dhcpd.conf:

allow booting;
allow bootp;

    ignore client-updates;
    set vendorclass = option vendor-class-identifier;

    subnet 10.x.x.0 netmask 255.255.255.0 {
          option routers 10.x.x.1;
          option domain-name "test.co.in";
          option domain-name-servers      10.x.x.100;
          option subnet-mask      255.255.255.0;
          range   10.x.x.122 10.x.x.132;
          default-lease-time 21600;
           max-lease-time  43200;
     }

    group {
               filename "/pxelinux.0";
               next-server 10.x.x.51;

               host vmone { hardware ethernet <mac_address_baremetal_1>; }
           }

    group {
               filename "/pxelinux.0";
               next-server 10.x.x.52;

               host vmtow { hardware ethernet <mac_address_baremetal_2>; }

          }