//将生成的加密密码加入到配置文件
[root@linuxidc ~]# vim /etc/cobbler/settings
………………………… default_password_crypted: "$1$29572$Kgcy/Dq/5BIFjGXm8.Yfm/"
………………………………
//重启cobbler
[root@linuxidc ~]# systemctl restart cobblerd
[root@linuxidc ~]# ss -antl
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 128 *:22 *:*
LISTEN 0 100 127.0.0.1:25 *:*
LISTEN 0 5 127.0.0.1:25151 *:*
LISTEN 0 5 *:873 *:*
LISTEN 0 128 :::80 :::*
LISTEN 0 128 :::22 :::*
LISTEN 0 100 ::1:25 :::*
LISTEN 0 128 :::443 :::*
LISTEN 0 5 :::873 :::*
//通过cobbler check 核对当前设置是否有问题
[root@linuxidc ~]# cobbler check
………………这处是两个关于debian系统的错误,请忽略
//这步重启
[root@linuxidc ~]# reboot
关闭防火墙*******************
//核对当前设置是否有问题
[root@linuxidc ~]# cobbler check
//配置cobbler dhcp 修改cobbler配置文件,让cobbler控制dhcp
[root@linuxidc ~]# sed -i '/^manage_dhcp/s/0/1/g' /etc/cobbler/settings
[root@linuxidc ~]# sed -n '/^manage_dhcp/p' /etc/cobbler/settings
manage_dhcp: 1
//配置dhcp
[root@linuxidc ~]# vim /etc/cobbler/dhcp.template
subnet 192.168.209.0 netmask 255.255.255.0 {
option routers 192.168.209.12;
option domain-name-servers 192.168.209.12;
option subnet-mask 255.255.255.0;
range dynamic-bootp 192.168.209.100 192.168.209.250;
default-lease-time 21600;
max-lease-time 43200;
next-server $next_server;
//重启服务并同步配置,改完dhcp必须要sync同步配置
[root@linuxidc ~]# systemctl restart cobblerd
[root@linuxidc ~]# cobbler sync