dhcp快速配置

  sre
yum install dhcp -y

修改/etc/dhcp/dhcpd.conf文件,变动为:

ddns-update-style interim;
ignore client-updates;
default-lease-time 604800;
max-lease-time 1209600;
subnet 10.0.0.0 netmask 255.255.255.0 {
    option subnet-mask 255.255.255.0;
    range dynamic-bootp 10.0.0.100 10.0.0.255;
}

vim /etc/sysconfig/dhcpd,增加一行:

DHCPDARGS="edge0"

启动DHCP服务

systemctl start dhcpd.service

LEAVE A COMMENT

Captcha Code