http://technet.microsoft.com/en-us/library/cc757291%28v=ws.10%29.aspx#BKMK_54
http://technet.microsoft.com/en-us/library/cc740203%28v=ws.10%29.aspx#BKMK_6
---------------------------------
The netsh interface ipv6 command context contains many commands that are useful for analyzing the current IPv6 configuration and troubleshooting problems. The most useful commands are:
• netsh interface ipv6 show global. Displays general IPv6 settings, including the default hop limit. Though you rarely need to modify these settings, you can use the netsh interface ipv6 set global command to change them.
• netsh interface ipv6 show addresses. Displays all IPv6 addresses in a much more compact format than ipconfig /all.
• netsh interface ipv6 show dnsservers. Displays all DNS servers that have been configured for IPv6. This does not display any DNS servers that might be configured with IPv4 addresses.
• netsh interface ipv6 show potentialrouters. Displays all advertising IPv6 routers that have been detected on the local network.
• netsh interface ipv6 show route. Lists the automatically and manually configured routes, including tunneling routes.
• netsh interface ipv6 show tcpstats. Lists various IPv6 TCP statistics, including the current number of connections, the total number of both incoming and outgoing connections, and the number of communication errors.
• netsh interface ipv6 show udpstats. Lists various IPv6 UDP statistics, including the number of UDP datagrams that have been sent or received and the number of datagrams that resulted in an error.
• netsh interface ipv6 show neighbors. Displays all cached IPv6 neighbors. To flush the neighbor cache, run the command netsh interface ipv6 delete neighbors.
• netsh interface ipv6 show destinationcache. Displays all cached IPv6 hosts that the computer has communicated with. To flush the destination cache, run the command netsh interface ipv6 delete destinationcache.
When troubleshooting IPv6 transition technologies, you can use the following commands:
• netsh interface ipv6 show teredo. Displays the Teredo configuration, including the Teredo server name and the client port number. You can use the netsh interface ipv6 set teredo command to change these configuration settings.
• netsh interface ipv6 6to4 show command. By using one of the four commands in this context (interface, relay, routing, and state), you can examine the current 6to4 configuration.
• netsh interface isatap show command. By using one of the two commands in this context (router and state), you can examine the current ISATAP configuration.
---------------------
o configure the IPv6 settings for a network connection in Windows 7 using the user interface, follow these steps:
In Control Panel, open Network And Sharing Center.
Click Manage Network Connections and then double-click the connection you want to configure.
Click Properties and respond to the User Account Control (UAC) prompt.
Select Internet Protocol Version 6 (TCP/IPv6) and click Properties to open the Internet Protocol Version 6 (TCP/IPv6) properties sheet.
Configure the IPv6 settings for the network connection as desired.
If you want, validate the new TCP/IP settings using the Windows Network Diagnostics Troubleshooter.
By default, the IPv6 settings for a network connection are configured as follows:
Obtain An IPv6 Address Automatically This specifies that the physical or logical interface associated with this connection uses stateful or stateless address autoconfiguration to obtain its IPv6 address.
Obtain DNS Server Address Automatically This specifies that the physical or logical interface associated with this connection uses stateful address autoconfiguration (DHCPv6) to obtain the IPv6 addresses of preferred and alternate DNS servers.
By selecting Use The Following IPv6 Address, you can manually configure the IPv6 address settings for a network connection by specifying the following:
IPv6 Address Type the unicast IPv6 address you want to assign to the physical or logical interface associated with this connection in colon-hexadecimal form. If you need to assign additional unicast IPv6 addresses to the interface, click Advanced and then click the IP Settings tab.
Subnet Prefix Length Type the subnet prefix length for the IPv6 address you assigned to the physical or logical interface associated with this connection. For unicast IPv6 addresses, the subnet prefix length should almost always be specified as 64.
Default Gateway Type the unicast IPv6 address of the default gateway for the local IPv6 subnet in colon-hexadecimal form. If you need to specify additional default gateways, click Advanced and then click the IP Settings tab.
By selecting Use The Following DNS Server Addresses, you can manually specify IPv6 addresses for a preferred and an alternate DNS server to be used by your connection. If you need to specify additional alternate DNS servers, click Advanced and then click the DNS tab. The remaining settings on the DNS tab have similar functionality to those used for configuring IPv4 address settings.
Note The Advanced TCP/IP Settings dialog box does not have a WINS tab because IPv6 does not use NetBIOS for name resolution.
To configure the IPv6 settings for a network connection in Windows 7 using the Netsh.exe command, open a Command Prompt window with local administrator credentials and type the appropriate Netsh.exe command from the netsh interface ipv6 context. Some examples of IPv6 configuration tasks that can be performed from this context include:
To add the unicast IPv6 address 2001:DB8::8:800:20C4:0 to the interface named Local Area Connection as a persistent IPv6 address with infinite Valid and Preferred Lifetimes, type the following command.
netsh interface ipv6 add address "Local Area Connection" 2001:DB8::8:800:20C4:0
To configure a default gateway with unicast IPv6 address 2001:DB8:0:2F3B:2AA:FF:FE 28:9C5A for the interface named Local Area Connection, add a default route with this address specified as a next-hop address by typing the following command.
netsh interface ipv6 add route ::/0 "Local Area Connection" 2001:DB8:0:2F3B:2AA:F F:FE28:9C5A
To configure a DNS server with unicast IPv6 address 2001:DB8:0:1::1 as the second (alternate) DNS server on the list of DNS servers for the interface named Local Area Connection, type the following command.
netsh interface ipv6 add dnsserver "Local Area Connection" 2001:DB8:0:1::1 index=2
For more information on using the netsh interface ipv6 context, type netsh interface ipv6 ? at a command prompt.