PXE and Cobbler
1,pxe
PEX全称:预引导执行环境(Preboot execute
environment)
PXE依赖ftp,http,tftp,dhcp
搭建dhcp:dynamin host configuration protocol
www.Isc.org
[root@Pxe ~]#yum -y install dhcp
[root@Pex ~]# ifconfig eth2 10.5.5.1/24 up
[root@Pex ~]# cp
/usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample /etc/dhcp/dhcpd.conf
cp: overwrite `/etc/dhcp/dhcpd.conf'? y
[root@Pex ~]#vim /etc/dhcp/dhcpd.conf
option domain-name "example.org";搜索域域名
option domain-name-servers ns1.example.org,
ns2.example.org; dns服务器
default-lease-time 600;默认租约期限
max-lease-time 7200;最大租约期限
log-facility local7;记录日志使用的那个facility
subnet 10.152.187.0 netmask 255.255.255.0 {
}定义一个为其分配地址的网络
subnet 10.5.5.0 netmask 255.255.255.0 {
range 10.5.5.2