ipv6 路由添加下一跳失败

ipv6 路由添加下一跳失败

我正在尝试在机器 B 上添加一个 IPv6 路由到下一跳 A 后面的子网:

2:2:2::2/64 +---+ 192:168:2::1/64      192:168:2::10/64 +---+
       -----| A |---------------------------------------| B |
            +---+                                       +---+

下一跳(192:168:2::1)可访问(ping 成功),但我无法将其添加为 IPv6 路由中的下一跳:

(B):~ > sudo ip -6 route add 2:2:2::/64 via 192:168:2::1
RTNETLINK answers: Invalid argument

是否可以获取有关ip route add-command 中哪个参数无效以及原因的更多详细信息?如何为本地不可用的 ipv6 子网添加路由?

这些是机器 B 上的接口:

(ANDEVVM22):~ > ip -6 addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436
    inet6 ::1/128 scope host
        valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
    inet6 3000::c066:def9/64 scope global
        valid_lft forever preferred_lft forever
    inet6 fe80::90af:efff:fe88:2e1b/64 scope link
        valid_lft forever preferred_lft forever
3: eth100: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
    inet6 fe80::102e:2eff:fe41:4887/64 scope link
        valid_lft forever preferred_lft forever
4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 500
    inet6 192:168:1::10/64 scope global
        valid_lft forever preferred_lft forever
5: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 500
    inet6 192:168:2::10/64 scope global
        valid_lft forever preferred_lft forever

相关内容