ipv6 socket bind 失败 - accept_dad

本文介绍了IPv6的Duplicate Address Detection(DAD)机制,用于检测接口上的地址是否唯一。当DAD未完成或失败时,socket绑定该地址会失败。详细解析了ipv6_chk_addr函数,并描述了DAD的步骤,包括发送邻居请求、等待响应等。若要禁用DAD,可在INTERFACE语句上指定DUPADDRDET 0。
摘要由CSDN通过智能技术生成

file: /proc/sys/net/ipv6/conf/interface/accept_dad
variable: net.ipv6.conf.interface.accept_dad

Official reference

Whether to accept DAD (Duplicate Address Detection). 0: Disable DAD 1: Enable DAD (default) 2: Enable DAD, and disable IPv6 operation if MAC-based duplicate link-local address has been found.

DAD operation and mode on a given interface will be selected according to the maximum value of conf/{all,interface}/accept_dad.

Nb: per interface setting (where “interface” is the name of your network interface); “all” is a special interface: changes the settings for all interfaces.

 

file: /proc/sys/net/ipv6/conf/interface/dad_transmits
variable: net.ipv6.conf.interface.dad_transmits

Official reference

The amount of Duplicate Address Detection probes to send. Default: 1

Nb: per interface setting (where “interface” is the name of your network interface); “all” is a special interface: changes the set

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值