Bug#816132: systemd-networkd: Tunnel setup for sit-type tunnel fails
Sven Hartge
sven at svenhartge.de
Sat Feb 27 19:33:04 GMT 2016
Package: systemd
Version: 229-1
Severity: important
Tags: ipv6
Hi!
I am using systemd-networkd to manage a HE.net IPv6 Tunnel, using
a netdev, and two network files in /etc/systemd/network:
--------[ he-tunnel.netdev ]--------
[Match]
[NetDev]
Description=HE.net Tunnelbroker sit device
Name=he-ipv6
Kind=sit
MTUBytes=1480
[Tunnel]
Local=130.180.40.117
Remote=216.66.80.30
TTL=255
-------------------------------------
--------[ he-tunnel.network ]--------
[Match]
Name=he-ipv6
[Network]
Address=2001:470:1f0a:cbf::2/64
Gateway=2001:470:1f0a:cbf::1
IPForward=true
-------------------------------------
--------[ lan.network ]--------
[Match]
MACAddress=02:17:08:81:64:44
[Network]
Address=130.180.40.117/29
Gateway=130.180.40.113
Address=2001:470:7403:f::1/64
Tunnel=he-ipv6
IPForward=true
[Route]
Destination=2001:470:7403::/48
Gateway=2001:470:7403:f::2
[Route]
Destination=192.168.100.0/24
Gateway=130.180.40.114
-------------------------------------
This has worked flawless so far, but after a reboot today, systemd-networkd
does not want to create the tunnel device and logs the following error:
Feb 27 20:18:47 urd systemd-networkd[1654]: [/etc/systemd/network/he-tunnel.netdev:10] Tunnel addresses incompatible, ignoring assignment: 130.180.40.117
Feb 27 20:18:47 urd systemd-networkd[1654]: [/etc/systemd/network/he-tunnel.netdev:11] Tunnel addresses incompatible, ignoring assignment: 216.66.80.30
Feb 27 20:18:47 urd systemd-networkd[1654]: Tunnel with invalid address family configured in /etc/systemd/network/he-tunnel.netdev. Ignoring
Feb 27 20:18:47 urd systemd-networkd[1654]: [/etc/systemd/network/lan.network:10] Tunnel is invalid, ignoring assignment: he-ipv6
This is a severe regression and totally moronic. Why would a sit-Tunnel
(IPv6-in-IPv4) require anything else than an IPv4-Adresse in the local
and remote options of the [Tunnel] section? It this the whole idea of
a 6-in-4-tunnel.
If I manually create the tunnel interface he-ipv6 with
ip tunnel add he-ipv6 mode sit remote 216.66.80.30 local 130.180.40.117 ttl 255
ip link set he-ipv6 up mtu 1480
then systemd-networkd uses the information in he-tunnel.network to add the
IPs to the interface but it is not able to create the tunnel interface in
the first place because it wrongly expects an IPv6-Adresse in the local and
remote options.
Grüße,
Sven.
-- Package-specific info:
-- System Information:
Debian Release: stretch/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'testing'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: armhf (armv7l)
Kernel: Linux 4.4.0-1-armmp-lpae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages systemd depends on:
ii adduser 3.113+nmu3
ii libacl1 2.2.52-3
ii libapparmor1 2.10-3
ii libaudit1 1:2.4.5-1
ii libblkid1 2.27.1-3
ii libc6 2.21-9
ii libcap2 1:2.24-12
ii libcap2-bin 1:2.24-12
ii libcryptsetup4 2:1.7.0-2
ii libgcc1 1:5.3.1-10
ii libgcrypt20 1.6.5-2
ii libgpg-error0 1.21-2
ii libkmod2 22-1
ii liblzma5 5.1.1alpha+20120614-2.1
ii libmount1 2.27.1-3
ii libpam0g 1.1.8-3.2
ii libseccomp2 2.2.3-3
ii libselinux1 2.4-3
ii libsystemd0 229-1
ii mount 2.27.1-3
ii util-linux 2.27.1-3
Versions of packages systemd recommends:
ii dbus 1.10.6-1
pn libpam-systemd <none>
Versions of packages systemd suggests:
pn systemd-container <none>
pn systemd-ui <none>
Versions of packages systemd is related to:
ii udev 229-1
-- Configuration Files:
/etc/systemd/journald.conf changed [not included]
/etc/systemd/timesyncd.conf changed [not included]
-- no debconf information
More information about the Pkg-systemd-maintainers
mailing list