Da ich selbst immer wieder verwirrt über die verschiedenen IPv6 Adressen auf einem Interface bin, möchte ich hier kurz die wichtigsten Arten notieren.
IPv6 Link-Local
– nicht routebar
– Keine Subnetmask Quasi „/32“ bzw. /128
– wird beim aktivieren von IPv6 generiert
– kann manuell gesetzt werden
– ist immer auf einem IPv6 Interface vorhanden!
– wird automatisch Clients als Gateway angeboten (Router Advertisements)
– kann von Clients als Gateway benutzt werden, zb. Cisco WLC
IPv6 Unicast Adresse
– ist routebar
– hat eine Subnetmask
– muss nicht zwingend auf einem IPv6 Interface vorhanden sein
– Es können beliebig viele auf ein IPv6 Interface konfiguriert werden
– kann komplett statisch gesetzt werden
– kann teil dynamisch generiert werden, Stichwort „EUI-64“
EUI-64
– Wird zum dynamischen generieren einer IPv6 Unicast IP benutzt
– Nimmt im wesentlichen die letzten /64 Link-Local Adresse und fügt sie bei der Unicast Adresse an
– Funktioniert nur mit /64! (daher EUI-64)
IPv6 Link-Local Adresse automatisch konfigurieren lassen
SEL-TESTNET-SW01(config)#int vl2100
SEL-TESTNET-SW01(config-if)#ipv6 enable
SEL-TESTNET-SW01(config-if)#do sh ipv6 int vl2100
Vlan2100 is up, line protocol is up
IPv6 is enabled, link-local address is FE80::222:91FF:FECF:80C1
No Virtual link-local address(es):
Description: VL2100_MANAGEMENT
No global unicast address is configured
Joined group address(es):
FF02::1
FF02::2
FF02::1:FFCF:80C1
Note: IPV6 was generated from the MAC Adress
SEL-TESTNET-SW01(config-if)#do sh int vl2100
Vlan2100 is up, line protocol is up
Hardware is EtherSVI, address is 0022.91cf.80c1 (bia 0022.91cf.80c1)
IPv6 link-local statisch konfigurieren
SEL-TESTNET-SW01(config-if)#ipv6 address fe80::1link-local
SEL-TESTNET-SW01(config-if)#do sh ipv6 int vl2100
Vlan2100 is up, line protocol is up
IPv6 is enabled, link-local address is FE80::1
No Virtual link-local address(es):
Description: VL2100_MANAGEMENT
No global unicast address is configured
Joined group address(es):
FF02::1
FF02::2
FF02::1:FF00:1
IPv6 Unicast Adresse statisch konifigurieren
SEL-TESTNET-SW01(config-if)#ipv6 address 2001:dead:beef::1/64
SEL-TESTNET-SW01(config-if)#do sh ipv6 int vl2100
Vlan2100 is up, line protocol is up
IPv6 is enabled, link-local address is FE80::1
No Virtual link-local address(es):
Description: VL2100_MANAGEMENT
Global unicast address(es):
2001:DEAD:BEEF::1, subnet is 2001:DEAD:BEEF::/64
Joined group address(es):
FF02::1
FF02::2
FF02::1:FF00:1
IPV6 Unicast Adresse statisch konfigurieren mit dynamischem Host Anteil via EUI-64
SEL-TESTNET-SW01(config-if)#ipv6 address 2001:dead:beef::1/64 eui-64
SEL-TESTNET-SW01(config-if)#do sh ipv6 int vl2100
Vlan2100 is up, line protocol is up
IPv6 is enabled, link-local address is FE80::222:91FF:FECF:80C1
No Virtual link-local address(es):
Description: VL2100_MANAGEMENT
Global unicast address(es):
2001:DEAD:BEEF:0:222:91FF:FECF:80C1, subnet is 2001:DEAD:BEEF::/64 [EUI]
Joined group address(es):
FF02::1
FF02::2
ACHTUNG:
Ist bereits eine statische Link Local auf dem Interface konfiguriert, und man konfiguriert nachträglich eine unicast ipv6 Adresse mit EUI, wird es nicht funktionieren, die statische Link-Local muss vorher entfernt werden.
SEL-TESTNET-SW01(config-if)#ipv6 address 2001:dead:beef::1/64 eui-64
SEL-TESTNET-SW01(config-if)#
SEL-TESTNET-SW01(config-if)#
SEL-TESTNET-SW01(config-if)#do sh ipv6 int vl2100
Vlan2100 is up, line protocol is up
IPv6 is enabled, link-local address is FE80::1
No Virtual link-local address(es):
Description: VL2100_MANAGEMENT
Global unicast address(es):
2001:DEAD:BEEF::1, subnet is 2001:DEAD:BEEF::/64 [EUI]
Falsch! es müsste sein: 2001:DEAD:BEEF:0🙁LINK-LOCAL)sein, jedoch ist dieser FE80::1!
Schauen wir uns das Interface an:
SEL-TESTNET-SW01(config-if)#do sh run int vl2100
Building configuration…
Current configuration : 183 bytes
!
interface Vlan2100
description VL2100_MANAGEMENT
ip address 172.21.0.254 255.255.255.0
ipv6 address FE80::1 link-local
ipv6 address 2001:DEAD:BEEF::/64 eui-64
ipv6 enable
end
Entferne statische Link-Local
Entferne statische Unicast EUI
SEL-TESTNET-SW01(config-if)#no ipv6 address 2001:DEAD:BEEF::/64 eui-64
SEL-TESTNET-SW01(config-if)#no ipv6 address FE80::1 link-local
Wiederhole statische unicast EUI
SEL-TESTNET-SW01(config-if)#ipv6 address 2001:dead:beef::1/64 eui-64
Neue Interfaceconfig sieht aus wie folgt:
SEL-TESTNET-SW01(config-if)#do sh run int vl2100
Building configuration…
Current configuration : 150 bytes
!
interface Vlan2100
description VL2100_MANAGEMENT
ip address 172.21.0.254 255.255.255.0
ipv6 address 2001:DEAD:BEEF::/64 eui-64
ipv6 enable
end
E voila
SEL-TESTNET-SW01(config-if)#do sh ipv6 int vl2100
Vlan2100 is up, line protocol is up
IPv6 is enabled, link-local address is FE80::222:91FF:FECF:80C1
No Virtual link-local address(es):
Description: VL2100_MANAGEMENT
Global unicast address(es):
2001:DEAD:BEEF:0:222:91FF:FECF:80C1, subnet is 2001:DEAD:BEEF::/64 [EUI]
Joined group address(es):