Hi!
Mir ist bei meinem Ubuntu 14.04 Server etwas ganz seltsames aufgefallen. Und zwar habe ich in der /etc/network/interfaces eine IPv4- und eine IPv6-Adresse statisch für ein Interface gesetzt. Die IPv4-Adresse inkl. Route usw. ist nach einem Neustart auch korrekt gesetzt. die IPv6-Adresse hingegen wird nicht übernommen. Ich muss dann immer per Hand mit "ip -6 addr add" und "ip route add" die Adresse und die Route manuell zuweisen. ☹
Meine /etc/network/interfaces sieht so aus (IP-Adressen anonymisiert!):
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | auto eth0 iface eth0 inet static address 78.47.xxx.xxx broadcast 78.47.xxx.xxx netmask 255.255.255.240 gateway 78.47.xxx.xxx # default route to access subnet up route add -net 78.47.xxx.0 netmask 255.255.255.240 gw 78.47.xxx.xxx eth0 iface eth0 inet6 static address 2a01:4f8:xxxx:xxxx::2 netmask 64 gateway 2a01:4f8:xxxx:xxxx::1 up ip -6 route add default via 2a01:4f8:xxxx:xxxx::1 dev eth0 down ip -6 route del default via 2a01:4f8:xxxx:xxxx::1 dev eth0 |
Aber ein "ip- a" zeigt nach einem Neustart immer nur:
1 2 3 4 5 6 | 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 00:1c:14:01:aa:aa brd ff:ff:ff:ff:ff:ff inet 78.47.xxx.xxx/28 brd 78.47.xxx.xxx scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::21c:14ff:xxxx:xxxx/64 scope link valid_lft forever preferred_lft forever |
Also für IPv6 nur eine LinkLocal Adresse. ☹ Dann muss ich
ip -6 addr add 2a01:4f8:xxxx:xxxx::2/64 dev eth0 ip route add default via 2a01:4f8:xxxx:xxxx::1
ausführen und IPv6 funktioniert.
Die Ausgabe von "sysctl -p" ist:
net.ipv4.conf.all.rp_filter = 1 net.ipv4.icmp_echo_ignore_broadcasts = 1 net.ipv6.conf.default.autoconf = 0 net.ipv6.conf.default.accept_dad = 0 net.ipv6.conf.default.accept_ra = 0 net.ipv6.conf.default.accept_ra_defrtr = 0 net.ipv6.conf.default.accept_ra_rtr_pref = 0 net.ipv6.conf.default.accept_ra_pinfo = 0 net.ipv6.conf.default.accept_source_route = 0 net.ipv6.conf.default.accept_redirects = 0 net.ipv6.conf.default.forwarding = 0 net.ipv6.conf.all.autoconf = 0 net.ipv6.conf.all.accept_dad = 0 net.ipv6.conf.all.accept_ra = 0 net.ipv6.conf.all.accept_ra_defrtr = 0 net.ipv6.conf.all.accept_ra_rtr_pref = 0 net.ipv6.conf.all.accept_ra_pinfo = 0 net.ipv6.conf.all.accept_source_route = 0 net.ipv6.conf.all.accept_redirects = 0 net.ipv6.conf.all.forwarding = 0
Irgendwo hatte ich was von einem Bug im Kernel von Ubuntu 14.04 gelesen, welcher wohl zu einem ähnlichen Problem führt. Also habe ich mir den Kernel 3.19 installiert. Aber auch mit diesem das selbe Problem.