1、 手动配置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 一个或多个
2、重要的参数没有输入。
请验证需要的参数,然后再次输入。
此命令提供的语法不正确。请查看帮助以获取正确的语法信息。
用法: add address [interface=]
3、persistent] 参数: 标记 值 interface - 接口名或索引。 address - 要添加的 IPv6 地址。 type - 下列值之一: unicast: 添加一单址广播地址(默认值)。 any
4、cast: 添加一任意广播地址。 validlifetime - 路由有效的寿命。默认值是无限。 preferredlifetime - 路由首选的寿命。默认值是无限。 store - 下列值之一: active: 更改只持续到下一次重新启动。 persistent: 更改持久有效(默认值)。 说明: 添加一
5、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 一个或多个重要的参数没有输入。 请验证需要的参数,然后再次输入。
6、
此命令提供的语法不正确。请查看帮助以获取正确的语法信息。
用法: delete address [interface=]
7、 active: 删除只持续到下一次重新启动。 persistent: 删除持久有效(默认值)。 说明: 修改一给定接口 IPv6 的地址。 示例: delete address "Private" fe80::2 netsh interface ipv6>delete address "d-link" 1111::1 //”d-link”是网卡的名字,以下同 确定。 5、添加ipv6路由 netsh interface ip
8、v6>add route
一个或多个重要的参数没有输入。
请验证需要的参数,然后再次输入。
此命令提供的语法不正确。请查看帮助以获取正确的语法信息。
用法: add route [prefix=]
9、ite]
[[preferredlifetime=]
10、teprefixlength - 如果在链路上,整个网站 metric - 路由指标。 publish - 下列值之一: no: 在路由公布中不公布 age: 在路由公布中公布 yes: 在路由公布中公布 validlifetime
11、 - 路由有效的寿命。默认值 preferredlifetime - 路由首选的寿命。默认值 store - 下列值之一: active: 更改只持续到下 persistent: 更改持久有 说明: 给定前缀添加路由。 时间值可以为天、小时、分钟、秒。例如: 1d2h3m4s。 当发行设定为 no
12、 或 age,路由将在寿命期尾被删除。 当发行设定为 age,路由公布将包含有效的剩余的寿命, 直到删除为止。 当发行设定为 yes,不管 validlifetime 的值是什么, 路由不会被删除,每一路由公布将包含指定的(相同的) 有效寿命。 示例: add route 3ffe::/16 "Internet" fe80::1 netsh interface ipv6>add route 1111::/64 "d-link" 1111::2 //添加直连路由 确定。 nets
13、h interface ipv6>add route ::/64 "d-link" 1111::2 //t添加缺省路由 确定。 6、查看路由表 netsh interface ipv6>show route 正在查询活动状态... 发行 类型 Met 前缀 索引 网关/接口名 ------- -------- ---- ------------------------ --- --------------------- no 手动 0 ::/64
14、 6 1111::2
no 手动 0 1111::/64 6 1111::2
7、删除ipv6路由
netsh interface ipv6>delete route
一个或多个重要的参数没有输入。
请验证需要的参数,然后再次输入。
此命令提供的语法不正确。请查看帮助以获取正确的语法信息。
用法: delete route [prefix=]
15、thop=]
16、 active: 更改只持续到下一次重新 persistent: 更改持久有效(默认值 说明: 删除一 IPv6 路由。 示例: delete route 3ffe::/16 "Internet" fe80::1 netsh interface ipv6>delete route ::/64 "d-link" 1111::2 确定。 netsh interface ipv6>add rou
17、te ::/0 "d-link" 1111::2 确定。 netsh interface ipv6>show route 正在查询活动状态... 发行 类型 Met 前缀 索引 网关/接口名 ------- -------- ---- ------------------------ --- --------------------- no 手动 0 ::/0 6 1111::2 no 手动
18、 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
19、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 stati
20、stics 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% l
21、oss) 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






