# yum install dhcp
# cp /usr/share/doc/dhcp*/dhcpd.conf.sample /etc/dhcp/dhcpd.conf
# vi /etc/dhcp/dhcpd.conf
 - option domain-name "dhcp.dinsen.com"
 - option domain-name-servers 172.22.15.4, 8.8.8.8;
 - default-lease-time 86400;
 - max-lease-time 85400;
 - ddns-update-style interim;
 - ignore client-updates;
 - subnet 172.22.14.0 netmask 255.255.254.0 {
 range 172.22.14.240 172.22.14.242; #khoang ip duoc phep cap phat
 option routers 172.22.15.254; #gateway
 option ip-forwarding off;
 }
 - host computer-name {
 option netbios-name-servers 172.22.15.5; #WINS
 option routers 172.22.15.243 #gateway
   hardware ehternet MAC-adderss #dia chi MAC cua client
 fixed-address 172.22.15.30 #ip cap phat co dinh cho client
# service dhcpd start
 
沒有留言:
張貼留言