标签:dhcp作用域
vim /etc/dhcpd.conf
subnet 192.168.1.0 netmask 255.255.255.0 {
.. ..
默认网关、DNS服务器、默认租约2小时、最大租约4小时;
range 192.168.1.128 192.168.1.254;
}
.. ..
[root@svr1 ~]# service dhcpd restart
客户端测试(修改网卡连接模式):
释放IP租约 dhclient -r eth0
申请IP租约 dhclient -d eth0
-------------------------------------------------
限制监听接口:
# vim /etc/sysconfig/dhcpd
DHCPDARGS="eth1"
本文出自 “Pyacker” 博客,谢绝转载!
标签:dhcp作用域
原文地址:http://pyacker.blog.51cto.com/9333627/1552215