windows下手动配置ipv6地址
ipv6地址在“网络连接”的属性配置里是无法手工配置的,只能使用netsh配置。配置方法如下:
add address 7 2001:250:804:2001:216::157
#7在这里是网络连接标识,可以使用名字如“本地连接”,也可以使用索引号。
举个例子:
C:\Documents and Settings\wss8848>netsh
netsh>int ipv
netsh interface ipv6>sh int
正在查询活动状态…索引 Met MTU 状态 名称
—- —- —– ———— —–
7 0 1500 已连接 本地连接
6 0 1500 已连接 VMware Network Adapter VMnet1
5 0 1500 已连接 VMware Network Adapter VMnet8
4 2 1280 已断开 Teredo Tunneling Pseudo-Interface
3 1 1280 已连接 6to4 Pseudo-Interface
2 1 1280 已连接 Automatic Tunneling Pseudo-Interface
1 0 1500 已连接 Loopback Pseudo-Interface
netsh interface ipv6>add address 7 2001:250:804:2001:216::157
确定。
netsh interface ipv6>^Z#quit或按Ctrl+Z退出
删除方法:
C:\Documents and Settings\wss8848>netsh
netsh>int
netsh interface>ipv6
netsh interface ipv6>delete address 7 2001:250:804:2001:216::157
确定。
netsh interface ipv6>^Z
ipv6地址在“网络连接”的属性配置里是无法手工配置的,只能使用netsh配置。配置方法如下:
add address 7 2001:250:804:2001:216::157
#7在这里是网络连接标识,可以使用名字如“本地连接”,也可以使用索引号。
举个例子:
C:\Documents and Settings\wss8848>netsh
netsh>int ipv
netsh interface ipv6>sh int
正在查询活动状态…索引 Met MTU 状态 名称
—- —- —– ———— —–
7 0 1500 已连接 本地连接
6 0 1500 已连接 VMware Network Adapter VMnet1
5 0 1500 已连接 VMware Network Adapter VMnet8
4 2 1280 已断开 Teredo Tunneling Pseudo-Interface
3 1 1280 已连接 6to4 Pseudo-Interface
2 1 1280 已连接 Automatic Tunneling Pseudo-Interface
1 0 1500 已连接 Loopback Pseudo-Interface
netsh interface ipv6>add address 7 2001:250:804:2001:216::157
确定。
netsh interface ipv6>^Z#quit或按Ctrl+Z退出
删除方法:
C:\Documents and Settings\wss8848>netsh
netsh>int
netsh interface>ipv6
netsh interface ipv6>delete address 7 2001:250:804:2001:216::157
确定。
netsh interface ipv6>^Z
转载于:https://my.oschina.net/skyline520/blog/122788