====== Windows IPv6 ====== ===== Interface Konfiguration ===== IPv6 Interface-Konfiguration anzeigen: netsh interface ipv6 show addresses === Interface für Statische Route ermitteln === http://windowsitpro.com/networking/q-when-i-add-static-ip-route-what-value-do-i-use-interface === SLAAC === Windows XP bildet die Interface-ID der IPv6 Adresse basierend auf dem modifizierten EUI-64 Verfahren. Ab Windows Vista wird dazu ein sogenannter //"permanant" randomized identifier// verwendet, d.h. die IPv6-Adresse ist nicht mehr direkt aus der MAC-Adresse abgeleitet. * http://download.microsoft.com/download/e/9/b/e9bd20d3-cc8d-4162-aa60-3aa3abc2b2e9/ipv6.doc * http://technet.microsoft.com/en-us/magazine/2007.08.cableguy.aspx * https://sid-500.com/2018/02/07/ipv6-how-windows-generates-link-local-addresses-eui-64/ Dieses Verhalten kann per netsh-Befehl abgeschalten werden: netsh interface ipv6 set global randomize­identifiers=disabled ===== Routing einrichten ===== ==== Interface Adresse manuell konfigurieren ==== netsh interface ipv6 add address InterfaceNameOrIndex IPv6Address [[type=]unicast|anycast] [[validlifetime=]Minutes|infinite] [[preferredlifetime=]Minutes|infinite] [[store=]active|persistent] Beispiel: ==== Forwarding und Advertising auf einem Interface aktivieren ==== netsh interface ipv6 set interface InterfaceNameOrIndex [forwarding=]enabled|disabled] [[advertise=]enabled|disabled] [[mtu=]MTUSize] [[store=]active|persistent] === Beispiel: === ==== Route hinzufügen ==== netsh interface ipv6 add route IPv6Address/PrefixLength InterfaceNameOrIndex [[nexthop=]IPv6Address] [[publish=]no|age|yes] [[validlifetime=]Minutes|infinite] [[preferredlifetime=]Minutes|infinite] [[store=]active|persistent] === Beispiel: === netsh interface ipv6 add route fec0:0:0:1::/64 "Local Area Connection" publish=yes netsh interface ipv6 add route fec0:0:0:2::/64 "Local Area Connection 2" publish=yes ==== Default Route hinzufügen ==== === Beispiel: === netsh interface ipv6 add route ::/0 "Local Area Connection 3" nexthop=fe80::2aa:ff:fe98:2ab1 publish=yes ==== Netshell ==== C:>netsh interface ipv6 show /? The following commands are available: show address - Shows IPv6 addresses. show bindingcacheentries - Shows binding cache entries. show destinationcache - Shows destination cache entries. show dns - Displays the DNS server addresses. show global - Shows global configuration parameters. show interface - Shows interface parameters. show joins - Shows IPv6 multicast addresses. show mobility - Shows mobility configuration parameters. show neighbors - Shows neighbor cache entries. show prefixpolicy - Shows prefix policy entries. show privacy - Shows privacy configuration parameters. show routes - Shows route table entries. show siteprefixes - Shows site prefix table entries. show state - Shows the state of deprecated functionality. show teredo - Shows Teredo service state. ===== Links ===== * [[http://technet.microsoft.com/en-us/library/bb878102.aspx|Microsoft Cable Guy]] * [[http://bits-meet-bytes.de/windows-7-cpl-msc-und-andere-befehle/|Windows Kommandozeilen-Befehle]] * [[https://www.sevenforums.com/tutorials/71408-unidentified-networks-set-private-public.html|Unidentified Networks - Set as Private or Public]] ===== Teredo ===== !!! Teredo sendet nur dann IPv6 Pakete, wenn das Ziel ausschließlich über IPv6 erreichbar ist (DNS-Antwort). Bei Dual-Stack angebundenen Hosts wird immer IPv4 verwendet. Status anzeigen lassen: netsh interface ipv6 show teredo Teredo in Netzen mit Microsoft Active Directory aktivieren: netsh interface ipv6 set teredo enterpriseclient Teredo deaktivieren: netsh interface ipv6 set teredo disable