L实例文档约束不支持ipv6,无法切换vpc,但是查询vpc和服务器规格均支持ipv6,可以通过辅助弹性网卡实现双栈。
宿主机
│
├── eth0
│
├── ns4012
│ │
│ ├── eth0.4012
│ ├── IPv4
│ ├── IPv6
│ ├── 默认路由
│ └── 服务A
│
└── 其它 namespace

先开启子网的ipv6,开启后创建辅助弹性网卡绑定至主网卡,创建辅助弹性网卡时注意开启ipv6

购买共享带宽,绑定辅助弹性网卡的eip和ipv6

系统内如下配置获取ipv6地址
40# cat /etc/rc.local
sleep 2
ip link add link eth0 name eth0.4012 type vlan id 4012
ip netns add ns4012
ip link set eth0.4012 netns ns4012
ip netns exec ns4012 ifconfig eth0.4012 hw ether fa:16:3e:74:cf:3f
ip netns exec ns4012 ifconfig eth0.4012 up
sleep 1
ip netns exec ns4012 dhclient -4 eth0.4012
ip netns exec ns4012 dhclient -6 eth0.4012
echo "$(date) rc.local start" >> /tmp/rc.local.log

测试结果
