Net.exe can be used to stop and start the IPv6 protocol. Restarting IPv6 reinitializes the protocol as if the computer were restarting, which may change interface numbers. Net.exe has many subcommands. The following commands are relevant to IPv6:

net stop tcpip6

Stops the IPv6 protocol and unloads it from memory. This command fails if any IPv6 sockets are open.

net start tcpip6

Starts the IPv6 protocol if it was stopped. If a new Tcpip6.sys driver file is present in the %systemroot%\System32\Drivers directory, that driver file is loaded.