# Netsh/IPv6

Netsh is a Windows command used to display and modify the network configuration of a currently running local or remote computer. These activities will show you how to use the netsh command to configure IPv6 settings.
Note: To complete this activity, you must have an administrative user account or know the username and password of an administrator account you can enter when prompted.

## Preparation

To prepare for this activity:
* Start Windows.
* Log in if necessary.

## Activity 1 - Display IPv6 Information

To display IPv6 information:
* Open an elevated/administrator command prompt.
* Use ipconfig to display IP address information. Observe the results. If IPv6 is enabled, you should see one or more IPv6 addresses. A typical Windows 7 computer has a Link-local IPv6 Address, an ISATAP tunnel adapter with media disconnected, and a Teredo tunnel adapter. Link-local addresses begin with fe80::/10. ISATAP addresses are specific link-local addresses beginning with fe80::200:5efe/96. Teredo addresses begin with 2001:0::/32.
* Type netsh interface ipv6 show interfaces and press Enter. Observe the results listing the interfaces on which IPv6 is enabled. Note that all netsh parameters may be abbreviated, as long as the abbreviation is a unique parameter. netsh interface ipv6 show interfaces may be entered as netsh i ipv6 sh i.
* Type netsh interface ipv6 show addresses and press Enter. Observe the results listing the interface IPv6 addresses.
* Type netsh interface ipv6 show destinationcache and press Enter. Observe the results listing recent IPv6 destinations.
* Type netsh interface ipv6 show dnsservers and press Enter. Observe the results listing IPv6 DNS server settings.
* Type netsh interface ipv6 show neighbors and press Enter. Observe the results listing IPv6 neighbors. This is similar to the IPv4 ARP cache.
* Type netsh interface ipv6 show route and press Enter. Observe the results listing IPv6 route information.

## Activity 2 - Disable Teredo

To disable Teredo:
* Type netsh interface teredo set state disabled and press Enter.
* Use ipconfig to confirm that Teredo was disabled.

## Activity 3 - Disable ISATAP

To disable ISATAP:
* Type netsh interface isatap set state disabled and press Enter.
* Use ipconfig to confirm that ISATAP was disabled.

## Activity 4 - Enable 6to4

To enable 6to4:
* Type netsh interface 6to4 set state enabled and press Enter.
* Use ipconfig to confirm that 6to4 was enabled.
Note that 6to4 will show media disconnected if you have a private IP address.

## Activity 5 - Disable 6to4

To disable 6to4:
* Type netsh interface 6to4 set state disabled and press Enter.
* Use ipconfig to confirm that 6to4 was disabled.

## Activity 6 - Enable 6in4

To enable a functioning 6in4 tunnel, you must register with a tunnel broker:
* Visit http://tunnelbroker.net.
* Register with the service.
* Complete the NewB certification.
* Create a Regular Tunnel. Fill in the necessary information.
* View Example Configurations. Select your operating system. For recent Windows operating systems, the netsh command sequence would be similar to:
** netsh interface ipv6 add v6v4tunnel IP6Tunnel <your IPv4 address> <tunnel broker IPv4 address>
** netsh interface ipv6 add address IP6Tunnel <your given IPv6 address>
** netsh interface ipv6 add route ::/0 IP6Tunnel <your given IPv6 gateway address>
* Use ipconfig to confirm that a 6in4 tunnel was created.

## Activity 7 - Disable 6in4

* Type netsh interface ipv6 show interface and press Enter.
* Identify the interface ID of the 6in4 tunnel created in Activity 6.
* Type netsh interface ipv6 delete interface id, where id is the ID number of the 6in4 tunnel. Then press Enter.
* Use ipconfig to confirm that the 6in4 tunnel was deleted.

## Activity 8 - Enable Teredo

To enable Teredo:
* Type netsh interface teredo set state default and press Enter.
* Use ipconfig to confirm that Teredo was enabled.

## Activity 9 - Enable ISATAP

To enable ISATAP:
* Type netsh interface isatap set state enabled and press Enter.
* Use ipconfig to confirm that ISATAP was enabled.
* Close the command prompt to complete this activity.

## Activity 10 - Reset IPv6

To reset IPv6:
* Type netsh interface ipv6 reset and press Enter.
* Close the command prompt and restart the computer to complete this activity.

## Readings

* Wikipedia: IPv6
* Wikipedia: Teredo
* Wikipedia: ISATAP
* Wikipedia: 6to4
* Wikipedia: 6in4