Kickstart 서버를 설정하려고 하는데 dhcpd
dhcpd.conf를 업데이트한 후 서버를 다시 시작하려고 하면 "실패" 오류가 발생합니다.
Oracle VirtualBox에 가상 머신으로 설치된 CentOS 머신에 Kickstart 서버를 설치하고 있습니다. 로컬 머신의 네트워크와 가상 머신의 네트워크를 연결했습니다.
[root@server1 ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:56:0D:1A
inet addr:192.168.1.29 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe56:d1a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:66790 errors:0 dropped:0 overruns:0 frame:0
TX packets:20761 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:73822713 (70.4 MiB) TX bytes:2525478 (2.4 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:97 errors:0 dropped:0 overruns:0 frame:0
TX packets:97 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7083 (6.9 KiB) TX bytes:7083 (6.9 KiB)
dhcpd.conf 파일을 업데이트해 보았습니다.
[root@server1 ~]# vi /etc/dhcp/dhcpd.conf
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
# see 'man 5 dhcpd.conf'
#
class "PXE" {
match if substring(option vendor-class-identifier, 0, 9) = "PXEClient";
option vendor-class-identifier "PXEClient";
vendor-option-space PXE;
next-server 192.168.179.128;
filename = "pxelinux.0";
}
server-identifier 192.168.179.128;
subnet 192.168.179.0 netmask 255.255.255.0 {
range dynamic-bootp 192.168.179.125 192.168.179.225;
#option routers 1.2.3.1;
#option broadcast-address 1.2.3.225;
default-lease-time 600;
max-lease-time 7200;
next-server 192.168.179.128;
filename "pxelinux.0";
}