
Ich möchte meiner sonst automatischen IP-Konfiguration eine statische IPv6-IP hinzufügen. Wie geht das?
Derzeit verwende ich:
auto lo
iface lo inet loopback
auto eth0
IPv4 wird also über DHCP konfiguriert, IPv6 über rtadv. Ich möchte jedoch zusätzlich eine statische IPv6-Adresse haben? Wie mache ich das?
Ich habe es versucht mit
iface eth0 inet6
address 2001:xxxx:yyyy:zzzz::3/64
netmask 64
gateway 2001:xxxx:yyyy:zzzz::1
Das führt aber zu einem Fehler? (Init-Skript bricht nicht mit Code 100 ab)
Antwort1
Testen Sie Folgendes:
auto lo
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
iface eth0 inet6 static
address 2001:db8::xxxx:yyyy
netmask 64
gateway 2001:db8::xxxx:yy:zzzz