1. 安装:
    yum -y install dhcp
  2. 配置:
    vim /etc/dhcp/dhcpd.conf
    default-lease-time 600;
    max-lease-time 7200;
    subnet 192.168.1.0 netmask 255.255.255.0 {
     range 192.168.1.90 192.168.1.100;
     option routers 192.168.8.1;
    }
    host printer {
     hardware ethernet 00:0c:29:48:c5:a2;
     fixed-address 192.168.1.99;
    }
  3. 启动:
    systemctl start dhcpd
文档更新时间: 2020-10-23 09:26   作者:lee