大网数据广告活动
服务器运维问答

Simple stateful DHCPv6 using ISC DHCP and RADVD. Doesnt work?

· 52CE 我爱测

I'm trying to set a simple ipv6 network using ISC DHCPv6 on a linux machine. Here is my dhcpd6.conf: subnet6 beef:fade::/112 { max-lease-time 3600; range6 beef:fade::100 beef:fade::fffe; } The dhcpv6 server works and assigns addr…

问题原文

原帖链接 · carloslockward · CC BY-SA 4.0

I'm trying to set a simple ipv6 network using ISC DHCPv6 on a linux machine.

Here is my dhcpd6.conf:

subnet6 beef:fade::/112 { 
   max-lease-time 3600;
   range6 beef:fade::100 beef:fade::fffe;
}

The dhcpv6 server works and assigns addresses to connected hosts in the specified range however, attached devices cant ping each other or ping the dhcpv6 server because they use 128 as netmask.

Looking online I found that this is due to the lack of RA. So I downloaded and started RADVD, enabled ipv6 forwarding and my firewall is disabled. Here is the my radvd.conf:

interface enp1s0
{
    AdvSendAdvert on;
    MinRtrAdvInterval 3;
    MaxRtrAdvInterval 10;
    prefix beef:fade::/112
    {
        AdvOnLink on;
        AdvAutonomous off;
    };

};

But this results in radvd saying: enp1s0 prefix length should be: 64. But i don't want prefix length 64. I want to be able to set it to pretty much any length as it becomes necessary.

How do i go about doing this? My only requirement is that I have to use the ISC DHCPv6 implementation.

Also, assuming i can get this to work. What rules would I have to add to my firewall for it to work when firewall is enabled on the DHCPv6 server.

已采纳解答

原帖链接 · carloslockward · CC BY-SA 4.0

Apparently enp1s0 prefix length should be: 64 is just a warning and not the cause of the issue.

In my particular case the reason this wasn't working was that the client wasn't accepting RAs. To accept RAs on a linux machine you have to set /proc/sys/net/ipv6/conf/eth0/accept_ra to 1 or 2.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2022-03-16)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。