ubuntuusers.de

IPv6 Konfiguration in /etc/network/interfaces wird ignoriert (Ubuntu Server 16.04)

Status: Ungelöst | Ubuntu-Version: Server 16.04 (Xenial Xerus)
Antworten |

DFYX

Anmeldungsdatum:
5. November 2011

Beiträge: 6

Ich habe diese Woche einen neuen Server mit Ubuntu 16.04 bei Hetzner geordert, der mit folgender /etc/network/interfaces vorkonfiguriert war:

### Hetzner Online GmbH - installimage
# Loopback device:
auto lo
iface lo inet loopback
iface lo inet6 loopback

# device: eth0
auto  eth0
iface eth0 inet static
  address   138.201.52.104
  netmask   255.255.255.192
  gateway   138.201.52.65
  # default route to access subnet
  up route add -net 138.201.52.64 netmask 255.255.255.192 gw 138.201.52.65 eth0

iface eth0 inet6 static
  address 2a01:4f8:172:d68::1
  netmask 64
  gateway fe80::1

Die Angaben sehen soweit auch gut aus, alledings wird die eingetragene IPv6 Adresse beim Booten nicht übernommen:

# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 90:1b:0e:91:c4:2e
          inet addr:138.201.52.104  Bcast:138.201.52.127  Mask:255.255.255.192
          inet6 addr: fe80::921b:eff:fe91:c42e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:734 errors:0 dropped:0 overruns:0 frame:0
          TX packets:610 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:83716 (83.7 KB)  TX bytes:231714 (231.7 KB)
          Interrupt:16 Memory:f7000000-f7020000

# route --A inet6
Kernel IPv6 routing table
Destination                    Next Hop                   Flag Met Ref Use If
fe80::/64                      ::                         U    256 0     0 eth0
fe80::/64                      ::                         U    256 0     0 vpn
::/0                           ::                         !n   -1  1    61 lo
::1/128                        ::                         Un   0   9   160 lo
2a01:4f8:130:1ff9:1:1:0:1/128  ::                         Un   0   1     0 lo
fe80::921b:eff:fe91:c42e/128   ::                         Un   0   1     0 lo
fe80::dc98:c6ff:fed7:22d/128   ::                         Un   0   1     0 lo
ff00::/8                       ::                         U    256 0     0 eth0
::/0                           ::                         !n   -1  1    61 lo

Wenn ich die Adresse manuell hinzufüge, tut alles:

# ifconfig eth0 inet6 add 2a01:4f8:172:d68::1/64
# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 90:1b:0e:91:c4:2e
          inet addr:138.201.52.104  Bcast:138.201.52.127  Mask:255.255.255.192
          inet6 addr: fe80::921b:eff:fe91:c42e/64 Scope:Link
          inet6 addr: 2a01:4f8:172:d68::1/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1417 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1222 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:142785 (142.7 KB)  TX bytes:559294 (559.2 KB)
          Interrupt:16 Memory:f7000000-f7020000

# route -A inet6 add default gw fe80::1 dev eth0
# route -A inet6
Kernel IPv6 routing table
Destination                    Next Hop                   Flag Met Ref Use If
2a01:4f8:172:d68::/64          ::                         U    256 0     0 eth0
fe80::/64                      ::                         U    256 0     0 eth0
::/0                           fe80::1                    UG   1   0     0 eth0
::/0                           ::                         !n   -1  1    61 lo
::1/128                        ::                         Un   0   9   163 lo
2a01:4f8:130:1ff9:1:1:0:1/128  ::                         Un   0   1     0 lo
2a01:4f8:172:d68::1/128        ::                         Un   0   1     0 lo
fe80::921b:eff:fe91:c42e/128   ::                         Un   0   1     0 lo
fe80::dc98:c6ff:fed7:22d/128   ::                         Un   0   1     0 lo
ff00::/8                       ::                         U    256 0     0 eth0
::/0                           ::                         !n   -1  1    61 lo

Dummerweise ist das dann natürlich nach jedem Reboot wieder weg. Hat jemand eine Ahnung, woran das liegen kann?

Antworten |