Linux基础CentosDHCP服务Hunter2022-07-212023-11-02DHCP服务12yum install –y dhcp* DHCP所需的软件包cp –p /usr/share/doc/dhcp.4.2.5/dhcp.conf.sample /etc/dhcp/dhcpd.conf 复制模板文件 12345678910111213141516vim / etc/dhcp/dhcpd.confshared-network xxx{ } 超级作用域subnet 192.168.30.0 netmask 255.255.255.0{option routers 192.168.30.1; 网关option nis-domain ‘xxx.com’; NIS域名option domain-name ‘xxx.com’; DNS域名option domain-name-servers 192.168.30.254; DNS地址range dynamin-bootp 192.168.30.10 192.168.30.100; 地址池default-lease-time 21600 最短租期max-lease-time 43200 最长租期}host client{ 保留 hardwareethernet 00:11:22:33:44:55; fixed-address 192.168.30.40; } 欢迎关注我的CSDN、个人博客、知乎。