资源描述
手动配置ipv6
1、安装ipv6协议,如下:
C:\Documents and Settings\wht10316>ipv6 install (卸载:ipv6 uninstall )
Installing...
Succeeded.
2、进入netsh模式
C:\Documents and Settings\wht10316>netsh
netsh>interface
netsh interface>ipv6
3、设置ipv6的地址
netsh interface ipv6>add address
一个或多个重要的参数没有输入。
请验证需要的参数,然后再次输入。
此命令提供的语法不正确。请查看帮助以获取正确的语法信息。
用法: add address [interface=]<string> [address=]<IPv6 address>
[[type=]unicast|anycast]
[[validlifetime=]<integer>|infinite]
[[preferredlifetime=]<integer>|infinite]
[[store=]active|persistent]
参数:
标记 值
interface - 接口名或索引。
address - 要添加的 IPv6 地址。
type - 下列值之一:
unicast: 添加一单址广播地址(默认值)。
anycast: 添加一任意广播地址。
validlifetime - 路由有效的寿命。默认值是无限。
preferredlifetime - 路由首选的寿命。默认值是无限。
store - 下列值之一:
active: 更改只持续到下一次重新启动。
persistent: 更改持久有效(默认值)。
说明: 添加一 IPv6 地址到给定的接口。
时间值可以为天、小时、分钟、秒。例如: 1d2h3m4s。
示例:
add address "Private" fe80::2
netsh interface ipv6>
netsh interface ipv6>add address "d-link" 1111::1 //”d-link”是网卡的名字,以下同
确定。
4、删除ipv6地址,如下:
netsh interface ipv6>delete address
一个或多个重要的参数没有输入。
请验证需要的参数,然后再次输入。
此命令提供的语法不正确。请查看帮助以获取正确的语法信息。
用法: delete address [interface=]<string> [address=]<IPv6 address>
[[store=]active|persistent]
参数:
标记 值
interface - 接口名或索引。
address - 要删除的 IPv6 地址。
store - 下列值之一:
active: 删除只持续到下一次重新启动。
persistent: 删除持久有效(默认值)。
说明: 修改一给定接口 IPv6 的地址。
示例:
delete address "Private" fe80::2
netsh interface ipv6>delete address "d-link" 1111::1 //”d-link”是网卡的名字,以下同
确定。
5、添加ipv6路由
netsh interface ipv6>add route
一个或多个重要的参数没有输入。
请验证需要的参数,然后再次输入。
此命令提供的语法不正确。请查看帮助以获取正确的语法信息。
用法: add route [prefix=]<IPv6 address>/<integer> [inter
[[nexthop=]<IPv6 address>] [[siteprefixlengt
[[metric=]<integer>] [[publish=]no|age|yes]
[[validlifetime=]<integer>|infinite]
[[preferredlifetime=]<integer>|infinite]
[[store=]active|persistent]
参数:
标记 值
prefix - 要添加的路由前缀。
interface - 接口名或索引。
nexthop - 如果前缀不在链路上,网
siteprefixlength - 如果在链路上,整个网站
metric - 路由指标。
publish - 下列值之一:
no: 在路由公布中不公布
age: 在路由公布中公布
yes: 在路由公布中公布
validlifetime - 路由有效的寿命。默认值
preferredlifetime - 路由首选的寿命。默认值
store - 下列值之一:
active: 更改只持续到下
persistent: 更改持久有
说明: 给定前缀添加路由。
时间值可以为天、小时、分钟、秒。例如: 1d2h3m4s。
当发行设定为 no 或 age,路由将在寿命期尾被删除。
当发行设定为 age,路由公布将包含有效的剩余的寿命,
直到删除为止。
当发行设定为 yes,不管 validlifetime 的值是什么,
路由不会被删除,每一路由公布将包含指定的(相同的)
有效寿命。
示例:
add route 3ffe::/16 "Internet" fe80::1
netsh interface ipv6>add route 1111::/64 "d-link" 1111::2 //添加直连路由
确定。
netsh interface ipv6>add route ::/64 "d-link" 1111::2 //t添加缺省路由
确定。
6、查看路由表
netsh interface ipv6>show route
正在查询活动状态...
发行 类型 Met 前缀 索引 网关/接口名
------- -------- ---- ------------------------ --- ---------------------
no 手动 0 ::/64 6 1111::2
no 手动 0 1111::/64 6 1111::2
7、删除ipv6路由
netsh interface ipv6>delete route
一个或多个重要的参数没有输入。
请验证需要的参数,然后再次输入。
此命令提供的语法不正确。请查看帮助以获取正确的语法信息。
用法: delete route [prefix=]<IPv6 address>/<integer> [interface=]
[[nexthop=]<IPv6 address>]
[[store=]active|persistent]
参数:
标记 值
prefix - 要修改的路由前缀。
interface - 接口名或索引。
nexthop - 如果前缀不在链路上,网关地址。
store - 下列值之一:
active: 更改只持续到下一次重新
persistent: 更改持久有效(默认值
说明: 删除一 IPv6 路由。
示例:
delete route 3ffe::/16 "Internet" fe80::1
netsh interface ipv6>delete route ::/64 "d-link" 1111::2
确定。
netsh interface ipv6>add route ::/0 "d-link" 1111::2
确定。
netsh interface ipv6>show route
正在查询活动状态...
发行 类型 Met 前缀 索引 网关/接口名
------- -------- ---- ------------------------ --- ---------------------
no 手动 0 ::/0 6 1111::2
no 手动 0 1111::/64 6 1111::2
8、ping接口地址
C:\Documents and Settings\wht10316>ping 1111::2
Pinging 1111::2 with 32 bytes of data:
Reply from 1111::2: time=10ms
Reply from 1111::2: time<1ms
Reply from 1111::2: time<1ms
Reply from 1111::2: time=1ms
Ping statistics for 1111::2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 10ms, Average = 2ms
C:\Documents and Settings\wht10316>ping 4000::1
Pinging 4000::1 with 32 bytes of data:
Destination host unreachable.
Ping statistics for 4000::1:
Packets: Sent = 1, Received = 0, Lost = 1 (100% loss)
Control-C
^C
C:\Documents and Settings\wht10316>ping 555::1
Pinging 555::1 with 32 bytes of data:
Destination host unreachable.
Ping statistics for 555::1:
Packets: Sent = 1, Received = 0, Lost = 1 (100% loss)
Control-C
^C
C:\Documents and Settings\wht10316>ping 555::2
Pinging 555::2 with 32 bytes of data:
Reply from 555::2: time=406ms
Reply from 555::2: time=1ms
Reply from 555::2: time<1ms
Reply from 555::2: time<1ms
Ping statistics for 555::2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 406ms, Average = 101ms
展开阅读全文