MENU

Linux dhcp服务

安装

yum install dhcp -y

配置

cat /etc/dhcp/dhcpd.conf

subnet 10.0.0.0 netmask 255.0.0.0 {
range 10.10.10.1 10.10.19.255;
option routers 10.0.0.1;
option domain-name-servers 10.255.255.254;
}

启动

service dhcpd start
#启动服务
chkconfig  dhcpd on 
#加入开机启动 

pxe 启动参考

subnet 10.254.239.32 netmask 255.255.255.224 {
range dynamic-bootp 10.254.239.40 10.254.239.60;
option routers 10.0.0.1;
filename "pxelinux.0"; #pxe启动文件
next-server 10.0.0.2; #tftp 服务
}

Tags: None
Archives QR Code
QR Code for this page
Tipping QR Code