- 论坛徽章:
- 0
|
linux新手,目前在学习linux中,今天在学习搭建PXE+kickstart无人安装的时候需要配置DHCP服务,我按着要求配置了DHCP服务,但是还是无法启动。
1.下面为dhcp.conf配置文件
[root@test-pxe ~]# cat /etc/dhcp/dhcpd.conf
ddns-update-style none;
ignore client-updates;
subnet 192.168.99.0 netmask 255.255.255.0 {
range 192.168.99.2 192.168.99.250;
option subnet-mask 255.255.255.0;
default-lease-time 21600;
max-lease-time 43200;
next-server 192.168.100.100;
filename "/pxelinux.0";
}
2.因为涉及到多块网卡,我从网上找了下资料编辑了/etc/sysconfig/dhcpd,在下面增加了一行。
DHCPDARGS=eno16777736
3.使用systemctl start dhcpd.service的时候报如下错误:
[root@test-pxe ~]# systemctl start dhcpd
Job for dhcpd.service failed because the control process exited with error code. See "systemctl status dhcpd.service" and "journalctl -xe" for details.
4.通过systemctl status dhcpd.service,有如下报错,也姑姑了下面的报错信息,但是确实没有找到有用的解决方法。
[root@test-pxe ~]# systemctl status dhcpd.service
● dhcpd.service - DHCPv4 Server Daemon
Loaded: loaded (/usr/lib/systemd/system/dhcpd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2018-04-15 11:57:59 CST; 1min 7s ago
Docs: man:dhcpd(
man:dhcpd.conf(5)
Process: 15995 ExecStart=/usr/sbin/dhcpd -f -cf /etc/dhcp/dhcpd.conf -user dhcpd -group dhcpd --no-pid (code=exited, status=1/FAILURE)
Main PID: 15995 (code=exited, status=1/FAILURE)
Apr 15 11:57:59 test-pxe dhcpd[15995]: it work better with this distribution.
Apr 15 11:57:59 test-pxe dhcpd[15995]:
Apr 15 11:57:59 test-pxe dhcpd[15995]: Please report for this software via the Red Hat Bugzilla site:
Apr 15 11:57:59 test-pxe dhcpd[15995]: http://bugzilla.redhat.com
Apr 15 11:57:59 test-pxe dhcpd[15995]:
Apr 15 11:57:59 test-pxe dhcpd[15995]: exiting.
Apr 15 11:57:59 test-pxe systemd[1]: dhcpd.service: main process exited, code=exited, status=1/FAILURE
Apr 15 11:57:59 test-pxe systemd[1]: Failed to start DHCPv4 Server Daemon.
Apr 15 11:57:59 test-pxe systemd[1]: Unit dhcpd.service entered failed state.
Apr 15 11:57:59 test-pxe systemd[1]: dhcpd.service failed.
|
|