1. ping6 ::1: 判断本机IPv6接口是否工作正常
2. ping6 fe80::4b:2dba:31e9:c0f6-I enp0s3:ping local地址时,必须指定出接口
3. 接口ip地址配置:
a) ip -6 addr add2001:0db8:0:f101::1/64 dev eth0
b) 或sudo ifconfig enp0s3 inet6 add 2001:0db8:0:f101::2/64
4. 接口IP配置文件/etc/sysconfig/network-scripts设置
a) IPV6ADDR=2001::1/48 #配置48bit长的掩码地址,掩码默认长是64bit的
b) IPV6ADDR=2001::1 #配置64bit长的掩码地址
c) IPV6_DEFAULTGW=2001::2 #会生成default路由default via2001::2 dev enp0s3 proto static metric 100
d) service network restart 配置后重启网络生效
5. ip -6 neighbor show:查看邻居
6. ip -6 route show 和 route -6: 查看路由
7. 路由添加:sudo ip -6 route del 2004::1/128 via 2002:db8:0:f101::2
a) sudo ip -6 route add2004::1/128 dev eth0 via 2002:db8:0:f101::2
b) ip -6 route add default via2001:0db8:0:f101::1
c) route -A inet6 add<ipv6network>/<prefixlength> gw
d) route -A inet6 add default gw2001:0db8:0:f101::1
8. 等价路由添加 sudo ip -6 route add2004::1/128 nexthop dev enp0s3 via 2001:db8:0:f101::1 nexthop dev enp0s8 via 2002:db8:0:f101::1