isc-dhcp 4.2.5 -- 是否支持 dhcp-client-identifier 和vendor-class-identifier?

isc-dhcp 4.2.5 -- 是否支持 dhcp-client-identifier 和vendor-class-identifier?

isc-dhcp-4.2.5在两个 CentOS-7.4 机器上安装了服务器和客户端。我知道这是相当旧的发行版,但由于各种原因我无法更改它。

DHCP服务器配置:

option domain-name "mydomain.org";
option domain-name-servers ns1.mydomain.org, ns2.mydomain.org;

default-lease-time 600;
max-lease-time 7200;

log-facility local7;

option space myspace;
option myspace.node-ip code 1 = ip-address;

# Tell the server to return vendor-specific information
option dhcp-parameter-request-list 43;

class "vendor-classes" {
    match option vendor-class-identifier;
}

subclass "vendor-classes" "my-vendor-class-ID" {
    vendor-option-space myspace;
    option myspace.node-ip 10.5.6.7;
}

subnet 10.0.0.0 netmask 255.255.255.0 {
    range 10.0.0.50 10.0.0.60;
    option routers 10.0.0.254;
}

DHCP客户端配置:

interface "veth0" {
    send dhcp-client-identifier "my-client-ID"; 
    send vendor-class-identifier "my-vendor-class-ID";
    send dhcp-lease-time 900;
}

我遇到了两个问题:

  1. 客户端无法发送选项dhcp-client-identifier并且不显示这些vendor-class-identifier选项tcpdump
  2. 服务器发送Option-43失败

几乎这个版本根本不dhcp-client-identifier支持?vendor-class-identifier我究竟做错了什么?

附言。最新的 ISC-dhcp(版本 4.4.2)来自https://gitlab.isc.org/isc-projects/dhcp没有这些问题。

答案1

你有没有尝试过使用

interface "veth0" {
   send dhcp-client-identifier = "my-client-ID"; 
   send vendor-class-identifier = "my-vendor-class-ID";
   send dhcp-lease-time = 900;
}

相关内容