兴起,配置dhcp
yumsearchdhcp yuminstall-ydhcp cp/usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample/etc/dhcp/dhcpd.conf #more/etc/dhcp/dhcpd.conf optiondomain-name"lib01.com"; optiondomain-name-servers192.168.20.10; default-lease-time600; max-lease-time7200; log-facilitylocal7; subnet192.168.20.0netmask255.255.255.0{ range192.168.20.100192.168.20.200; optionrouters192.168.20.10; optionbroadcast-address192.168.20.255; default-lease-time600; max-lease-time7200; }
/etc/init.d/dhcpd start
启动失败,查看/var/log/messages:
Aug1217:26:56lib01dhcpd:Can'tchownnewleasefile:Operationnotpermitted
修改 /etc/init.d/dhcpd
user=root
group=root
参考:
http://www.tuicool.com/articles/raM7naV
http://www.linuxidc.com/Linux/2015-02/112985.htm