ping6:sendmsg:FreeBSD 不支持该操作

ping6:sendmsg:FreeBSD 不支持该操作

我正在尝试在 FreeBSD 8.2 上设置 IPv6。

我在 /etc/rc.conf 中添加了以下几行:

ipv6_enable="YES"
ipv6_gateway_enable="YES"
ipv6_ifconfig_le0="ff00::2"

并重新启动 IPv6:

/etc/rc.d/network_ipv6 restart

现在我对网络接口进行了以下设置:

le0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=8<VLAN_MTU>
    ether 00:50:56:01:04:87
    inet 10.76.247.78 netmask 0xffffff00 broadcast 10.76.247.255
    inet6 ff00::2 prefixlen 64 
    nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
    media: Ethernet autoselect
    status: active
le1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=8<VLAN_MTU>
    ether 00:50:56:01:04:86
    media: Ethernet autoselect
    status: active
plip0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
    options=3<RXCSUM,TXCSUM>
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 
    inet6 ::1 prefixlen 128 
    inet 127.0.0.1 netmask 0xff000000 
    nd6 options=3<PERFORMNUD,ACCEPT_RTADV>

现在我尝试 ping。“ping6 ::1”成功了,但是“ping6 ff00::2”写入以下错误:

# ping6 ff00::2
PING6(56=40+8+8 bytes) ff00::2 --> ff00::2
ping6: sendmsg: Operation not supported
ping6: wrote ff00::2 16 chars, ret=-1
ping6: sendmsg: Operation not supported
ping6: wrote ff00::2 16 chars, ret=-1

我做错了什么?这个错误是什么意思?

答案1

您正在尝试为ff00::2接口分配一个地址,这是非法的,因为它是一个多播地址,而您只能在接口上设置单播地址。

此外,ff00::2还保留了RFC4291,所以也是违法的。

相关内容