相关疑难解决方法(0)

ISC DHPD 中的固定和动态 IP 导致双重租赁

我想要一个小的动态地址部分,大多数客户端都分配了一个固定的 IP 地址。

我的 dhcpd.conf 看起来像这样:

use-host-decl-names on;
authoritative;
allow client-updates;
ddns-updates on;

# Einstellungen fuer DHCP leases
default-lease-time 3600;
max-lease-time 86400;

lease-file-name "/var/lib/dhcpd/dhcpd.leases";

  subnet 192.168.11.0 netmask 255.255.255.0 {
        ddns-updates on;
    pool {
        # IP range which will be assigned statically
        range 192.168.11.1 192.168.11.240;
        deny all clients;
    }
    pool {
        # small dynamic range
        range 192.168.11.241 192.168.11.254; # used for temporary devices
    }
}    

 group {
    host pc1 {
        hardware ethernet xx:xx:xx:xx:xx:xx;
        fixed-address 192.168.11.11;
        }
}
Run Code Online (Sandbox Code Playgroud)

使用拒绝所有主机的池声明的动机来自 ISC DHCPD 主页 …

dhcp isc-dhcp

6
推荐指数
1
解决办法
2万
查看次数

标签 统计

dhcp ×1

isc-dhcp ×1