Mr.Chan

导航

将IPv6.exe命令升级到Netsh命令

在Windows XP和Windows XP(SP1)中的IPv6包含了一个Ipv6.exe 工具,它可以用来配置IPv6协议。Ipv6.exe 将被 netsh interface ipv6netsh interface ipv6 isatap 之中的命令所取代。因为在Windows Server 2003家族之中不再包含Ipv6.exe工具,如果脚本中含有Ipv6.exe命令,您必须对脚本进行升级,使用相应的Netsh命令替代这些Ipv6.exe命令。

下表列出了所有Ipv6.exe命令及其等价的Netsh命令。

Ipv6.exe 命令 等价的Netsh命令
ipv6 install netsh interface ipv6 install
ipv6 uninstall netsh interface ipv6 uninstall
ipv6 [-v] if [IfIndex] netsh interface ipv6 show interface
[[interface=]String] [[level=]{normal |
verbose}] [[store=]{active | persistent}]
ipv6 ifcr v6v4 V4Src V4Dst [nd] [pmld] netsh interface ipv6 add v6v4tunnel
[[interface=]String]
[localaddress=]IPv4Address
[remoteaddress=]IPv4Address
[[neighbordiscovery=]{enabled |
disabled}] [[store=]{active |
persistent}]
ipv6 ifcr 6over4 V4Src netsh interface ipv6 add 6over4tunnel
[[interface=]String]
[localaddress=]IPv4Address
[[store=]{active | persistent}]
ipv6 ifc IfIndex {[forwards] | [-
forwards]} {[advertises] | [-
advertises]} [mtu #Bytes] [site
SiteIdentifier]
netsh interface ipv6 set interface
[[interface=]String]
[[forwarding=]{enabled | disabled}]
[[advertise=]{enabled | disabled}]
[[mtu=]Integer] [[siteid=]Integer]
[[metric=]Integer] [[store=]{active |
persistent}]
ipv6 ifd IfIndex netsh interface ipv6 delete interface
[[interface=]String] [[store=]{active |
persistent}]
ipv6 adu IfIndex/Address [life
ValidLifetime[/PrefLifetime]] [anycast]
[unicast]
netsh interface ipv6 add address
[[interface=]String]
[address=]IPv6Address
[[type=]{unicast | anycast}]
[[validlifetime=]{Integer | infinite}]
[[preferredlifetime=]{Integer |
infinite}] [[store=]{active | persistent}]
ipv6 nc [IfIndex [Address]] netsh interface ipv6 show neighbors
[[interface=]String]
[[address=]IPv6Address]
ipv6 ncf [IfIndex [Address]] netsh interface ipv6 delete neighbors
[[interface=]String]
[[address=]IPv6Address]
ipv6 rc [IfIndex [Address]] netsh interface ipv6 show
destinationcache [[interface=]String]
[[address=]IPv6Address]
ipv6 rcf [IfIndex [Address]] netsh interface ipv6 delete
destinationcache [[interface=]String]
[[address=]IPv6Address]
ipv6 bc netsh interface ipv6 show
bindingcacheentries
ipv6 [-v] rt netsh interface ipv6 show routes
[[level=]{normal | verbose}]
[[store=]{active | persistent}]
ipv6 rtu Prefix IfIndex[/Address]
[lifetime Valid[/Preferred]] [preference
P] [publish] [age] [spl SitePrefixLength]
netsh interface ipv6 add route
[prefix=]IPv6Address/Integer
[[interface=]String]
[[nexthop=]IPv6Address]
[[siteprefixlength=]Integer]
[[metric=]Integer] [[publish=]{no | yes
| immortal}] [[validlifetime=]{Integer |
infinite}] [[preferredlifetime=]{Integer
| infinite}] [[store=]{active |
persistent}]
ipv6 spt netsh interface ipv6 show siteprefixes
ipv6 spu Prefix IfIndex [life L] netsh interface ipv6 add route
[prefix=]IPv6Address/Integer
[[siteprefixlength=]Integer]
[[store=]{active | persistent}]
ipv6 gp netsh interface ipv6 show global
[[store=]{active | persistent}]
ipv6 [-p] gpu DefaultCurHopLimit
Hops
netsh interface ipv6 set global
[[defaultcurhoplimit=]Integer]
[[store=]{active | persistent}]
ipv6 [-p] gpu UseAnonymousAddresses
[yes|no|always|Counter]
netsh interface ipv6 set privacy
[[state=]{enabled | disabled}]
[[store=]{active | persistent}]
ipv6 [-p] gpu MaxAnonDADAttempts
Number
netsh interface ipv6 set privacy
[[maxdadattempts=]Integer]
[[store=]{active | persistent}]
ipv6 [-p] gpu MaxAnonLifetime
Valid[/Preferred]
netsh interface ipv6 set privacy
[[maxvalidlifetime=]Integer]
[[maxpreferredlifetime=]Integer]
[[store=]{active | persistent}]
ipv6 [-p] gpu AnonRegenerateTime
Time
netsh interface ipv6 set privacy
[[regeneratetime=]Integer]
[[store=]{active> | persistent}]
ipv6 [-p] gpu MaxAnonRandomTime
Time
netsh interface ipv6 set privacy
[[maxrandomtime=]Integer]
[[store=]{active | persistent}]
ipv6 [-p] gpu AnonRandomTime
Time
netsh interface ipv6 set privacy
[[randomtime=]Integer]
[[store=]{active | persistent}]
ipv6 [-p] gpu NeighborCacheLimit
Number
netsh interface ipv6 set global
[neighborcachelimit=]Integer
[[store=]{active | persistent}]
ipv6 [-p] gpu RouteCacheLimit
Number
netsh interface ipv6 set global
[[routecachelimit=]Integer]
[[store=]{active | persistent}]
ipv6 ppt netsh interface ipv6 show prefixpolicy
[[store=]{active | persistent}]
ipv6 ppu Prefix precedence
PrecedenceValue srclabel
SourceLabelValue [dstlabel
DestinationLabelValue]
netsh interface ipv6 add prefixpolicy
[[maxvalidlifetime=]Integer]
[[maxpreferredlifetime=]Integer]
[[store=]{active | persistent}]
ipv6 renew [IfIndex] netsh interface ipv6 renew
[[interface=]String]

posted on 2005-05-25 22:28  cunshen  阅读(850)  评论(0)    收藏  举报