分组是 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>; }
}