第一步、看看网络状况
netsh interface ipv6 show int
netsh 即:Network Shell。
第二步、配置
netsh interface ipv6 add address 13 1234::5678/64 netsh interface ipv6 add route ::/0 "以太网 2" 1234::1 netsh interface ipv6 add dnsservers "以太网 2" 1234::8888
上面 13 是第一步中显示的 Idx 值(即对应哪个网卡)。后面配置网关和 DNS 时,用的是名称,不是 Idx。
64 是子网前缀长度。
若要修改,则先删除,再添加。
若要删除,则使用 delete + 对应的 IP。