码迷,mamicode.com
首页 > 其他好文 > 详细

dhcp 配置及排错

时间:2016-08-12 21:53:28      阅读:275      评论:0      收藏:0      [点我收藏+]

标签:centos6 dhcp

兴起,配置dhcp

yum search dhcp
yum install -y dhcp
 cp /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample /etc/dhcp/dhcpd.conf

# more /etc/dhcp/dhcpd.conf
option domain-name "lib01.com";
option domain-name-servers 192.168.20.10;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;

subnet 192.168.20.0 netmask 255.255.255.0 {
  range 192.168.20.100 192.168.20.200;
  option routers 192.168.20.10;
  option broadcast-address 192.168.20.255;
  default-lease-time 600;
  max-lease-time 7200;
}

/etc/init.d/dhcpd start

启动失败,查看/var/log/messages:

Aug 12 17:26:56 lib01 dhcpd: Can‘t chown new lease file: Operation not permitted

修改 /etc/init.d/dhcpd

user=root

group=root



参考:

http://www.tuicool.com/articles/raM7naV

http://www.linuxidc.com/Linux/2015-02/112985.htm

本文出自 “千面” 博客,请务必保留此出处http://oslibo.blog.51cto.com/10854638/1837386

dhcp 配置及排错

标签:centos6 dhcp

原文地址:http://oslibo.blog.51cto.com/10854638/1837386

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!