#rpm –ivh dhcp-3.0.1-12_EL.I386.rpm |
#cp /usr/share/doc/dhcp-3.0.1/dhcpd.conf.sample /etc/dhcpd.conf #vi /etc/dhcpd.conf |
Subnet 192.168.1.0 netmask 255.255.255.0 { ranga 192.168.1.2 192.168.1.128 ; …….. } |
default—lease—time 21600; max—lease—time 43200; |
option routers 192.168.1.1; option subnet-mask 255.255.255.0; |
#cat /etc/sysconfig/dhcpd #Command line options here DHCPDARGS= |
DHCPDARGD=eth0 |
service dhcpd restart |
上一篇:查看Apache的在线用户数方法