dhcp服務器端配置

yum -y install dhcp

vim /etc/dhcp/dhcpd.conf

#dhcpd.conf

default-lease-time 7200;

max-lease-time 7200;

subnet 172.16.0.0 netmask 255.255.0.0 {

range 172.16.0.100 172.16.0.200;

option domain-name-servers 202.106.0.20,202.16.46.151;

option domain-name "abc.com";

option routers 172.16.0.1;

option broadcast-address 172.16.255.255;

}

hosts fileserver {

hardware ethernet 00:0C:5D:71:cc:dd:cc;

fixed-address 172.16.0.10;

}

hosts printserver {

hardware ethernet 00:0C:5D:71:cc:dd:cf;

fixed-address 172.16.0.20;

}

service dhcpd restart 

chkconfig dhcpd on


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章