网络通信 频道

部署Windows下的IPv6(2)

在Windows下安装IPv6协议和配置IPv6地址与安装何配置IPv4地址有所不同。IPv6协议可以使用“ipv6 install”命令来添加,也可在“拨号和网络连接”中添加。但IPv6地址必须使用命令方式来配置,例如给本地网卡手工指定一个IPv6地址的方法是在“命令提示符”方式下使用“ipv6 adu”命令。Ipv6命令是Windows TCP/IP Version 6的配置命令,使用它可以查看和配置ipv6地址、路由等参数。对于Windows 2000、Windows XP及Windows.NET Server RC1以前的版本的Windows NT,ipv6命令使用方法如下:

usage: ipv6 [-p] [-v] if [ifindex]

ipv6 [-p] ifcr v6v4 v4src v4dst [nd] [pmld]

ipv6 [-p] ifcr 6over4 v4src

ipv6 [-p] ifc ifindex [forwards] [-forwards] [advertises] [-advertises] [mtu #bytes] [site site-identifier] [preference P]

ipv6 rlu ifindex v4dst

ipv6 [-p] ifd ifindex

ipv6 [-p] adu ifindex/address [life validlifetime[/preflifetime]] [anycast] [unicast]

ipv6 nc [ifindex [address]]

ipv6 ncf [ifindex [address]]

ipv6 rc [ifindex address]

ipv6 rcf [ifindex [address]]

ipv6 bc ipv6 [-p] [-v] rt

ipv6 [-p] rtu prefix ifindex[/address] [life valid[/pref]] [preference P] [publish] [age] [spl SitePrefixLength]

ipv6 spt

ipv6 spu prefix ifindex [life L]

ipv6 [-p] gp

ipv6 [-p] gpu [parameter value] ... (try -?)

ipv6 renew [ifindex]

ipv6 [-p] ppt

ipv6 [-p] ppu prefix precedence P srclabel SL [dstlabel DL]

ipv6 [-p] ppd prefix

ipv6 [-p] reset

ipv6 install

ipv6 uninstall

  其中: Ipv6 if [if#]

  显示关于interfaces的信息。如果指定interfaces号,则关于这个号的interfaces的信息将显示。如果没有指定interfaces号,将显示所有interfaces信息。显示的信息包括,interfaces的link-layer地址(网卡MAC地址)、当前绑定的IPv6地址、当前的MTU、近邻探测状态等信息。

  Interfaces #1、#2和#2是虚拟的,分别用于loopback(回路)、隧道和6to4隧道。其他的interfaces用于本地网卡。 如果link-layer地址来自a.b.c.d,它就是一个6-over-4 interfaces(详见RFC2529)。

  所有的虚拟interfaces均不支持近邻探测。

  Ipv6 ifc if# [forwards] [advertises] [-forwards] [-advertises] [mtu #bytes] [site site-identifier]

  interfaces属性设置。

  Ipv6 ifd if#

  删除一个interfaces。默认的虚拟interfaces不能删除。

  Ipv6 nc [if# [address]]

  显示近邻缓存。如果指定interfaces号,则只显示指定interfaces号的缓存。如果内有指定,则显示全部interfaces号。指定interfaces号后,可以进一步制定要查看缓存的ipv6地址。

  Ipv6 ncf [if# [address]]

  指定近邻缓存个数。

  Ipv6 rc [if# address]

  显示路由缓存。路由缓存是Microsoft IPv6 implementation名为目标地址缓存。如果指定interfaces,路由缓存将延伸,直到interfaces显示。若不指定,则显示所有。

  Ipv6 rcf [if# [address]]

  直接指定路由缓存个数。

  Ipv6 bc

  显示binding缓存,用于移动IPv6装置。

  Ipv6 adu if#/address [lifetime VL[/PL]] [anycast] [unicast]

  在一个interfaces上添加或删除一个unicast或anycast地址,地址默认自动分配。

  Ipv6 spt

  显示当前站点前缀表。

  Ipv6 spu prefix if# [lifetime L]

  在前前缀表中,添加、删除或更新前缀。

  Ipv6 rt

  显示当前的路由表

  Ipv6 rtu prefix if#[/nexthop] [lifetime L] [preference P] [publish] [age] [spl site-prefix-length]

  在路由表中添加或删除一个路由(用于6to4)。

  Ipv6 install

  为所有网卡安装TCP/IP Version 6协议

  Ipv6 uninstall

  为所有网卡删除TCP/IP Version 6协议

  对于Windows.NET Server RC1或更好版本,则使用netsh命令配置IPv6。Netsh的使用方法与ipv6类似,具体请参阅netsh /?。

  根据以上的ipv6命令使用方法,我们可以查看当前的interfaces、可为一个interfaces(网络接口)添加一个IPv6地址。例如在命令提示符下输入“ipv6 adu 4/2002:00D6:0B00::00AF:FA28:9A5A”即可为interfaces 4(通常是第一块网卡)添加一个IPv6地址2002:00D6:0B00::00AF:FA28:9A5A。

 

转载地址:http://www.voipchina.cn/technology/2004-03-21/36741.shtml

0
相关文章