【问题标题】:Softlayer API: Global IP Routing not working with ipv6Softlayer API:全球 IP 路由不适用于 ipv6
【发布时间】:2017-05-06 04:19:40
【问题描述】:

我们正在为我们的 ipv4/ipv6 全局 IP 设置自动故障转移。我可以通过执行 get 来设置 ipv4 的路由:

https://api.service.softlayer.com/rest/v3/SoftLayer_Network_Subnet_IpAddress_Global/xxxx/route/111.111.111.111/

但是当我尝试 ipv6 时: https://api.service.softlayer.com/rest/v3/SoftLayer_Network_Subnet_IpAddress_Global/xxxx/route/2607:f0d0:1e01:1a2::3/

我得到这个错误:

{
   "error": "The selected destination IP address is currently not in tracking for subnet '2607:f0d0:0003:0023:0000:0000:0000:0000/64'.",
   "code": "SoftLayer_Exception_Public"
}

【问题讨论】:

    标签: rest ipv6 ibm-cloud-infrastructure


    【解决方案1】:

    您需要发送没有压缩的 EndPointIpAddress(无压缩形式),所以您应该这样发送:

    https://api.service.softlayer.com/rest/v3/SoftLayer_Network_Subnet_IpAddress_Global/xxxx/route/2607:f0d0:1e01:01a2:0000:0000:0000:0003
    

    参考资料:

    【讨论】:

    • 我会推荐这个添加到文档中
    猜你喜欢
    • 1970-01-01
    • 2013-05-13
    • 2016-09-07
    • 2017-12-12
    • 2019-04-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多