Windows 7 IPv6

From Teknologisk videncenter
Jump to: navigation, search

Zone or Ifindex

The IPv6 Link-Local Address is local on the link (interface) and the node has several links (interfaces) - all with the same IPv6 Link-Local prefix. Because of this it's necessary to identify the Link in question. For example the Link-Local address from below fe80::221:86ff:fea0:ce84%12 where fe80::221:86ff:fea0:ce84 is the address and %12 is the Zone identifier which identifies the Link. In this case interface 12 is the "Local Area Connection". Which is my Ethernet adapter.
C:\><input>netsh interface ipv6 show addresses</input>

Interface 1: Loopback Pseudo-Interface 1

Addr Type  DAD State   Valid Life Pref. Life Address
---------  ----------- ---------- ---------- ------------------------
Other      Preferred     infinite   infinite ::1

Interface 11: Wireless Network Connection
Other      Preferred     infinite   infinite <notice>fe80::221:6bff:fe52:e36%11</notice>

Interface 21: Wireless Network Connection 2
Other      Deprecated    infinite   infinite <notice>fe80::221:6bff:fe52:e37%21</notice>

Interface 12: Local Area Connection
Other      Preferred     infinite   infinite <notice>fe80::221:86ff:fea0:ce84%12</notice>

Interface 23: isatap.home
Other      Preferred     infinite   infinite <notice>fe80::5efe:192.168.1.13%23</notice>
Other      Preferred     infinite   infinite <notice>fe80::5efe:192.168.1.15%23</notice>

Interface 14: Bluetooth Network Connection
Other      Deprecated    infinite   infinite <notice>fe80::222:68ff:fee7:7f95%14</notice>

Looking at ipconfig for interface Zone

C:\Users><input>ipconfig/all</input>

Windows IP Configuration

   Host Name . . . . . . . . . . . . : VIHCA-HOT-HETH
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : tekkom.local
Ethernet adapter Local Area Connection:

   Connection-specific DNS Suffix  . : tekkom.local
   Description . . . . . . . . . . . : Broadcom NetLink (TM) Gigabit Ethernet
   Physical Address. . . . . . . . . : 00-21-86-A0-CE-84
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   IPv6 Address. . . . . . . . . . . : 2001:16d8:dd85:139:29f6:1f1c:b88f:cb25(Preferred)
   Temporary IPv6 Address. . . . . . : 2001:16d8:dd85:139:fc50:5ffa:d07d:8ab9(Preferred)
   Link-local IPv6 Address . . . . . : <notice>fe80::29f6:1f1c:b88f:cb25%12(Preferred)</notice>
   IPv4 Address. . . . . . . . . . . : 192.168.139.73(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : 13. maj 2011 07:36:32
   Lease Expires . . . . . . . . . . : 13. maj 2011 08:21:32
   Default Gateway . . . . . . . . . : <notice>fe80::218:18ff:fe7c:b441%12</notice>
                                       192.168.139.1
   DHCP Server . . . . . . . . . . . : 172.16.4.66
   DNS Servers . . . . . . . . . . . : 172.16.4.66
   NetBIOS over Tcpip. . . . . . . . : Enabled

Interface parameters

C:\><input>netsh interface ipv6 show interface level=verbose</input>

Interface Local Area Connection Parameters
----------------------------------------------
IfLuid                             : ethernet_6
<notice>IfIndex                            : 12</notice>
State                              : connected
Metric                             : 10
Link MTU                           : 1500 bytes
Reachable Time                     : 27000 ms
Base Reachable Time                : 30000 ms
Retransmission Interval            : 1000 ms
DAD Transmits                      : 1
Site Prefix Length                 : 64
Site Id                            : 1
Forwarding                         : disabled
Advertising                        : disabled
Neighbor Discovery                 : enabled
Neighbor Unreachability Detection  : enabled
Router Discovery                   : enabled
Managed Address Configuration      : disabled
Other Stateful Configuration       : disabled
Weak Host Sends                    : disabled
Weak Host Receives                 : disabled
Use Automatic Metric               : enabled
Ignore Default Routes              : disabled
Advertised Router Lifetime         : 1800 seconds
Advertise Default Route            : disabled
Current Hop Limit                  : 64
Force ARPND Wake up patterns       : disabled
Directed MAC Wake up patterns      : disabled

Windows 7 Interface Identifier

C:\><input>netsh interface ipv6 show global</input>
Querying active state...

General Global Parameters
---------------------------------------------
Default Hop Limit                   : 128 hops
Neighbor Cache Limit                : 256 entries per interface
Route Cache Limit                   : 128 entries per compartment
Reassembly Limit                    : 32981216 bytes
ICMP Redirects                      : enabled
Source Routing Behavior             : dontforward
Task Offload                        : enabled
Dhcp Media Sense                    : enabled
Media Sense Logging                 : disabled
MLD Level                           : all
MLD Version                         : version3
Multicast Forwarding                : disabled
Group Forwarded Fragments           : disabled
<notice>Randomize Identifiers               : enabled</notice>
Address Mask Reply                  : disabled

Current Global Statistics
---------------------------------------------
Number of Compartments              : 1
Number of NL clients                : 7
Number of FL providers              : 4

Using EUI-64 identifiers

C:\><input>netsh interface ipv6 set global randomizeidentifiers=disable</input>

Solicited-Node Multicast Address

First find Unicast address

C:\><input>netsh interface ipv6 show addresses 12</input>

Address fe80::221:86ff:fe<notice>a0:ce84</notice>%12 Parameters
---------------------------------------------------------
Interface Luid     : Local Area Connection
Scope Id           : 0.12
Valid Lifetime     : infinite
Preferred Lifetime : infinite
DAD State          : Preferred
Address Type       : Other

Find Solicited-Node Multicast address

C:\><input>netsh interface ipv6 show joins 12</input>
Interface 12: Local Area Connection

Multicast Address : ff01::1
Scope             : 0
References        : 0
Last Reporter?    : Yes

Multicast Address : ff02::1
Scope             : 0
References        : 0
Last Reporter?    : Yes

Multicast Address : ff02::c
Scope             : 0
References        : 1
Last Reporter?    : Yes

Multicast Address : ff02::1:3
Scope             : 0
References        : 1
Last Reporter?    : Yes

Multicast Address : ff02::1:ff<notice>a0:ce84</notice>
Scope             : 0
References        : 1
Last Reporter?    : Yes

IPv6 neighbours Physical Address

C:\><input>netsh interface ipv6 show nei 12</input>

Interface 12: Local Area Connection


Internet Address                              Physical Address   Type
--------------------------------------------  -----------------  -----------
ff02::2                                       33-33-00-00-00-02  Permanent
ff02::16                                      33-33-00-00-00-16  Permanent
ff02::1:2                                     33-33-00-01-00-02  Permanent
ff02::1:3                                     33-33-00-01-00-03  Permanent
ff02::1:ffa0:ce84                             33-33-ff-a0-ce-84  Permanent

Delete Autoconfigured IPv6 address

C:\><input>netsh interface ipv6 delete address 12 2001:16d8:dd85:a200:221:86ff:fea0:ce84</input>

Prefer IPv4 instead of IPv6

Disable IPv6 using Regedit

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\DisabledComponents

  • Note If the DisabledComponents entry is unavailable, you must create it. (32 bit DWORD)
  • 0x0 to enable all IPv6 components.
    • Note The value "0" is the default setting.
  • 0xffffffff to disable all IPv6 components, except the IPv6 loopback interface. This value also configures Windows Vista to use Internet Protocol version 4 (IPv4) instead of IPv6 in prefix policies.
  • 0x20 to use IPv4 instead of IPv6 in prefix policies.
  • 0x10 to disable native IPv6 interfaces.
  • 0x01 to disable all tunnel IPv6 interfaces.
  • 0x11 to disable all IPv6 interfaces except for the IPv6 loopback interface.

Prefer IPv4 over IPv6 using Hurricane Electric

Low precedence on IPv6

Hurricane electric use the 2001:470::/32 prefix. (Look at your IPv6 address and adjust as needed). In the command it's given a very low precedence - 3.

C:\><input>netsh interface ipv6 add prefixpolicy 2001:470::/32 3 6</input>
C:\><input>netsh interface ipv6 show prefixpolicies</input>
Forespørger om aktiv tilstand...

Rækkefølge  Navn  Præfiks
----------  -----  --------------------------------
        50      0  ::1/128
        40      1  ::/0
        30      2  2002::/16
        20      3  ::/96
        10      4  ::ffff:0:0/96
         5      5  2001::/32
         3      6  2001:470::/32

===Higher precedence on IPv6 than IPv4 Remove the low precedence given above.

C:\Windows\System32><input>netsh interface ipv6 delete prefixpolicy prefix=2001:470::/32</input>