MENU

Linux dhcp 服务

January 12, 2018 • Read: 4382 • 环境搭建

安装

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 服务
}

兼总条贯 知至知终

无标签
最后编辑于: March 24, 2018