ubuntu - dhcpd[] : send_packet6: Bad file descriptor

标签 ubuntu dhcp ubuntu-19.10

关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。












我们不允许在 Stack Overflow 上提出有关通用计算硬件和软件的问题。您可以编辑问题,使其成为 on-topic对于堆栈溢出。


2年前关闭。







Improve this question




我在 ubuntu 上配置了 dhcpv6 服务器。我根据接口(interface) ID 为每个客户端定义了静态绑定(bind)。
但是当客户端请求时,DHCPv6 服务器上的分配失败。
“dhcpd [122762]:send_packet6:错误的文件描述符”

----在dhcpv6服务器上配置----

subnet6 2404:e801:1014::/48 {
    host client-name-2404.e801.1014.5 {
        host-identifier option dhcp6.interface-id "OLT3923.IOT xpon 0/2/0/1:2404:e801:1014::5";
        fixed-address6 2404:e801:1014::5;
        fixed-prefix6 b1a1:3003:1014:5::/64;
    }

----系统日志消息----
dhcpd[122762]: Relay-forward message from 2406:3003:1:5a::1 port 547, link address 2404:e801:1014::1, peer address fe80::244:1ff:fe00:1
dhcpd[122762]: Advertise NA: address 2404:e801:1014::5 to client with duid 00:01:00:01:26:69:f0:4b:00:44:01:00:00:01 iaid = 1 static
dhcpd[122762]: Advertise PD: address b1a1:3003:1014:5::/64 to client with duid 00:01:00:01:26:69:f0:4b:00:44:01:00:00:01 iaid = 2 static
dhcpd[122762]: Sending Relay-reply to 2406:3003:1:5a::1 port 547
dhcpd[122762]: send_packet6: Bad file descriptor
dhcpd[122762]: dhcpv6: send_packet6() sent -1 of 177 bytes
dhcpd[122762]: Relay-forward message from 2406:3003:1:5a::1 port 547, link address 2404:e801:1014::1, peer address fe80::244:1ff:fe00:1
dhcpd[122762]: Advertise NA: address 2404:e801:1014::5 to client with duid 00:01:00:01:26:69:f0:4b:00:44:01:00:00:01 iaid = 1 static
dhcpd[122762]: Advertise PD: address b1a1:3003:1014:5::/64 to client with duid 00:01:00:01:26:69:f0:4b:00:44:01:00:00:01 iaid = 2 static
dhcpd[122762]: Sending Relay-reply to 2406:3003:1:5a::1 port 547
dhcpd[122762]: send_packet6: Bad file descriptor
dhcpd[122762]: dhcpv6: send_packet6() sent -1 of 177 bytes


lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 19.10
Release:        19.10
Codename:       eoan

最佳答案

用于 dhcpv6 服务器的接口(interface)也有用于其他功能的子接口(interface)。

删除子接口(interface)后,分配成功。

这看起来像一个限制/错误,但找不到任何文档。

关于ubuntu - dhcpd[] : send_packet6: Bad file descriptor,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62166064/

相关文章:

php - 使用控制台安装 Zend Framework 2

java - Intellij IDEA 看不到类,但通过 Gradle 构建可以工作

bash - 在终端中找不到Hadoop命令

matlab - 在 Matlab 中更改图形字体无效

android - 如何找到连接到手机 BT-PAN 的设备发布的 IP 地址

ubuntu - 使用 nmcli 从静态切换到 DHCP

ubuntu - 即使在/etc/default/tomcat9 文件更改后,Tomcat9 仍然在用户 tomcat9 下运行