Package: netplan.io Version: 0.106-2 Severity: important X-Debbugs-Cc: 75f45c04a...@protonmail.ch
Dear Maintainer, I am using Cloud-Init with networkd generator/activator for networking, this therefore uses netplan in the background. A completely unsuable systemd config is generated because the grammar is incorrect for the default route, and therefore no default route is installed for IPv6 on a dual-stack system. Cloud-Init generates a configuration with two "Gatway=" under one "[Route]": [Route] Gateway=2001:db8:aaa:bbb::ddd Gateway=192.0.2.254 This is incorrect syntax grammar. It should be either: 1) Two seperate route instances, i.e.: [Route] Gateway=2001:db8:aaa:bbb::ddd [Route] Gateway=192.0.2.254 2) Both Gateway under Network, i.e.: [Network] Gateway=2001:db8:aaa:bbb::ddd Gateway=192.0.2.254 When using either of the two correct alternatives, an IPv6 default route is installed as expected. When using the incorrect generated file, an IPv6 default route is not installed. The presently generated incorrect config is as follows (ip addresses and MAC address obfuscated): /etc/systemd/network/10-cloud-init-eth0.network: [Address] Address=2001:db8:aaa:bbb::ccc/64 [Address] Address=192.0.2.60/24 [Match] MACAddress=ff:ff:ff:ff:ff:ff Name=eth0 [Network] DHCP=no DNS=127.0.0.1 [Route] Gateway=2001:db8:aaa:bbb::ddd Gateway=192.0.2.254 -- System Information: Debian Release: 12.1 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 6.1.0-12-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.52-1 (2023-09-07) x86_64 GNU/Linux Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages netplan.io depends on: ii iproute2 6.1.0-3 ii libc6 2.36-9+deb12u1 ii libglib2.0-0 2.74.6-2 ii libnetplan0 0.106-2 ii libsystemd0 252.12-1~deb12u1 ii python3 3.11.2-1+b1 ii python3-dbus 1.3.2-4+b1 ii python3-netifaces 0.11.0-2+b1 ii python3-rich 13.3.1-1 ii python3-yaml 6.0-3+b2 ii systemd 252.12-1~deb12u1 netplan.io recommends no packages. Versions of packages netplan.io suggests: pn iw <none> pn network-manager | wpasupplicant <none> pn openvswitch-switch <none> -- no debconf information