-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Systemd-networkd generated configuration is wrong when both ipv4 and ipv6 addresses are used #4067
Comments
Launchpad user James Falcon(falcojr) wrote on 2023-01-23T14:29:58.803764+00:00 Looks like cloud-init needs to specify multiple route sections as well. https://www.freedesktop.org/software/systemd/man/systemd.network.html |
Launchpad user James Falcon(falcojr) wrote on 2023-01-23T15:57:11.767725+00:00 Showform, actually, it looks like this behavior has already been fixed, but is not yet released upstream. Please see #1868 . |
Launchpad user Showfom(showfom) wrote on 2023-01-24T07:15:36.843116+00:00 James, thanks, we will wait for the next release :D BTW, I'm Showfom, not Showform. |
Launchpad user Brett Holman(holmanb) wrote on 2023-01-24T13:49:43.919905+00:00 Showfom If you would like to test this unreleased fix, it should be possible on Arch Linux using the following patch against the 22.4.2-2 PKGBUILD. I think you'll need to build this with makepkg --skipchecksums, since this pulls directly from the tip of main.
|
This bug was originally filed in Launchpad as LP: #2003363
Launchpad details
Launchpad user Showfom(showfom) wrote on 2023-01-19T16:51:14.931881+00:00
We install the latest cloud-init 22.4.2-2, re-generating the new profile and the new network config file for systemd-networkd is something like
root@arch /etc/systemd/network # cat 10-cloud-init-eth0.network
[Address]
Address=192.0.2.2/24
[Address]
Address=2001:db8::2/48
[Match]
MACAddress=ea:3a:ec:46:79:8e
Name=eth0
[Network]
DHCP=no
DNS=8.8.8.8 8.8.4.4
[Route]
Gateway=192.0.2.1
Gateway=2001:db8::1
Only IPv6 is working, IPv4 is not working, there's no default route for IPv4, we need to change to
[Route]
Gateway=192.0.2.1
[Route]
Gateway=2001:db8::1
Don't know if this is a bug from cloud-init or systemd-networkd
The old bug https://bugs.launchpad.net/cloud-init/+bug/1973724?comments=all
The text was updated successfully, but these errors were encountered: