LINUX_DHCP建多个保留

建多个保留

 

         /etc/dhcpd.conf文件中加入host语句

ddns-update-style interim;

ignore client-updates;

subnet 192.168.149.0 netmask 255.255.255.0 {

        option routers        192.168.149.129;

        option subnet-mask              255.255.255.0;

        option domain-name-servers                   166.111.219.129;

        range dynamic-bootp 192.168.149.50 192.168.149.60;

        default-lease-time 21600;

        max-lease-time 43200;

        host dhcp-client {

                hardware ethernet 00:0c:29:d9:2e:b9;

                fixed-address 192.168.149.192;

        }

        host dhcp-client3 {

                hardware ethernet 00:0c:29:d9:2e:b3;

                fixed-address 192.168.149.193;

        }

 

本文出自 “上善若水威加海内” 博客,转载请与作者联系!

你可能感兴趣的:(linux,职场,休闲,LINUX_DHCP建多个保留)