- 打开 命令提示符。
- 在命令提示符处,键入 netsh,然后按 Enter。
- 键入 interface ipv6,然后按 Enter。
- 键入 add address [interface=]String [address=]IPv6Address
其中:
- [interface=]String
- 指定接口名称。
- [address=]IPv6Address
- 指定 IPv6 地址。
netsh>interface
netsh interface>ipv6
netsh interface ipv6>set address interface="aa" address=fec0::a
确定。
IP Address. . . . . . . . . . . . : 192.168.3.123
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : fec0::a%1
IP Address. . . . . . . . . . . . : 1111::124
IP Address. . . . . . . . . . . . : fe80::216:ecff:fe9a:595a%7
Default Gateway . . . . . . . . . : 192.168.3.1
4.测试
Reply from fec0::b%1: time<1ms
Reply from fec0::b%1: time<1ms
Reply from fec0::b%1: time=3ms
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 3ms, Average = 0ms
有%号的时候,要加%。