Netsh.exe

The Netsh commands for IPv6 provide a command-line tool that you can use to query and configure IPv6 interfaces, address, caches, and routes. The Netsh interface IPv6 commands are supported on Windows XP with Service Pack 1 (SP1) and later.

Netsh.exe has many subcommands for IPv6. A complete list of options for Netsh Interface IPv6 is available from the command prompt on Windows XP with SP1 and later by typing the following:

netsh interface ipv6 /?

Documentation on all of the netsh commands for IPv6 is also available online on Technet. For more information on netsh on Windows Server 2008, please see Netsh commands for Interface (IPv4 and IPv6). For more information on netsh on Windows Server 2003, please see Netsh commands for Interface IPv6.

The following are a few commonly used commands for IPv6, although many other commands are supported:

netsh interface ipv6 add address

Adds an IPv6 address to a specific interface on the local computer. This command has suboption parameters that must be specified.

netsh interface ipv6 add dns

Adds a DNS server IPv6 address to the statically-configured list of DNS servers for the specified interface on the local computer. This command has suboption parameters that must be specified.

netsh interface ipv6 add route

Adds a route for a specified IPv6 prefix address on the local computer. This command has suboption parameters that must to be specified.

netsh interface ipv6 delete address

Deletes the specified IPv6 address from a specific interface on the local computer. This command has suboption parameters that must to be specified.

netsh interface ipv6 delete dns

Deletes a DNS server address from the statically-configured list of DNS servers for the specified interface on the local computer. This command has suboption parameters that must to be specified.

netsh interface ipv6 delete interface

Deletes a specified interface from the IPv6 stack on the local computer. This command has suboption parameters that must to be specified.

netsh interface ipv6 delete route

Deletes a route for a specified IPv6 prefix address on the local computer. This command has suboption parameters that must to be specified.

netsh interface ipv6 dump

Creates a script that contains the commands to create the current configuration. If saved to a file, this script can be used to restore altered configuration settings.

netsh interface ipv6 install

Installs the IPv6 protocol on the local computer.

netsh interface ipv6 renew

Restarts the IPv6 interfaces on the local computer.

netsh interface ipv6 reset

Resets the IPv6 configuration state on the local computer.

netsh interface ipv6 show global

Displays the global configuration parameters for IPv6 on the local computer.

netsh interface ipv6 show address

Displays all IPv6 addresses or all IPv6 addresses on a specific interface on the local computer. This command has suboption parameters that may need to be specified.

netsh interface ipv6 uninstall

Uninstalls the IPv6 protocol on the local computer.

Netsh commands for IPv4

Similar Netsh commands are available for IPv4. A complete list of options for Netsh commands for use with IPv4 is available from the command prompt on Windows XP with SP1 and later by typing the following:

netsh interface ip /?

Documentation on all of the Netsh commands for IPv4 is also available online on Technet. For more information, please see Netsh commands for Interface IP