Systemd-networkd generated configuration is wrong when both ipv4 and ipv6 addresses are used
Bug #2003363 reported by
Showfom
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
High
|
Unassigned |
Bug Description
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/
[Address]
Address=
[Address]
Address=
[Match]
MACAddress=
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:/
Changed in cloud-init: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Looks like cloud-init needs to specify multiple route sections as well.
https:/ /www.freedeskto p.org/software/ systemd/ man/systemd. network. html
"Specify several [Route] sections to configure several routes."