Netsh/IPv6

From Wikiversity
Jump to navigation Jump to search

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[edit | edit source]

To prepare for this activity:

  1. Start Windows.
  2. Log in if necessary.

Activity 1 - Display IPv6 Information[edit | edit source]

To display IPv6 information:

  1. Open an elevated/administrator command prompt.
  2. 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.
  3. 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.
  4. Type netsh interface ipv6 show addresses and press Enter. Observe the results listing the interface IPv6 addresses.
  5. Type netsh interface ipv6 show destinationcache and press Enter. Observe the results listing recent IPv6 destinations.
  6. Type netsh interface ipv6 show dnsservers and press Enter. Observe the results listing IPv6 DNS server settings.
  7. Type netsh interface ipv6 show neighbors and press Enter. Observe the results listing IPv6 neighbors. This is similar to the IPv4 ARP cache.
  8. Type netsh interface ipv6 show route and press Enter. Observe the results listing IPv6 route information.

Activity 2 - Disable Teredo[edit | edit source]

To disable Teredo:

  1. Type netsh interface teredo set state disabled and press Enter.
  2. Use ipconfig to confirm that Teredo was disabled.

Activity 3 - Disable ISATAP[edit | edit source]

To disable ISATAP:

  1. Type netsh interface isatap set state disabled and press Enter.
  2. Use ipconfig to confirm that ISATAP was disabled.

Activity 4 - Enable 6to4[edit | edit source]

To enable 6to4:

  1. Type netsh interface 6to4 set state enabled and press Enter.
  2. 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[edit | edit source]

To disable 6to4:

  1. Type netsh interface 6to4 set state disabled and press Enter.
  2. Use ipconfig to confirm that 6to4 was disabled.

Activity 6 - Enable 6in4[edit | edit source]

To enable a functioning 6in4 tunnel, you must register with a tunnel broker:

  1. Visit http://tunnelbroker.net.
  2. Register with the service.
  3. Complete the NewB certification.
  4. Create a Regular Tunnel. Fill in the necessary information.
  5. 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>
  6. Use ipconfig to confirm that a 6in4 tunnel was created.

Activity 7 - Disable 6in4[edit | edit source]

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

Activity 8 - Enable Teredo[edit | edit source]

To enable Teredo:

  1. Type netsh interface teredo set state default and press Enter.
  2. Use ipconfig to confirm that Teredo was enabled.

Activity 9 - Enable ISATAP[edit | edit source]

To enable ISATAP:

  1. Type netsh interface isatap set state enabled and press Enter.
  2. Use ipconfig to confirm that ISATAP was enabled.
  3. Close the command prompt to complete this activity.

Activity 10 - Reset IPv6[edit | edit source]

To reset IPv6:

  1. Type netsh interface ipv6 reset and press Enter.
  2. Close the command prompt and restart the computer to complete this activity.

Readings[edit | edit source]

References[edit | edit source]