centos 6.5 dhcp配置
配置文件位置 /etc/dhcp/dhcpd.conf
subnet 192.168.10.0 netmask 255.255.255.0 {
range 192.168.10.60 192.168.10.119;
option domain-name-servers 192.168.10.61;
option domain-name "server.qv-china.com";
option routers 192.168.10.5;
option broadcast-address 192.168.10.255;
default-lease-time 60;
max-lease-time 720;
}
host demo1 {
hardware ethernet 08:00:07:26:c0:a5;
fixed-address 192.168.10.20;
}
指定配置文件運行
dhcpd -cf /dhcpd.conf
service dhcpd restart
/var/log/messages調試信息
多個網卡 指定網卡配置文件中網卡接口
DHCPDARGS=eth0;
/etc/sysconfig
vim dhcpd
posted on 2017-02-06 21:48 AlanTop 閱讀(303) 評論(0) 編輯 收藏 引用 所屬分類: Linux 使用技巧

