← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2003363] [NEW] Systemd-networkd generated configuration is wrong when both ipv4 and ipv6 addresses are used

 

Public bug reported:

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

** Affects: cloud-init
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/2003363

Title:
  Systemd-networkd generated configuration is wrong when both ipv4 and
  ipv6 addresses are used

Status in cloud-init:
  New

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/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

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/2003363/+subscriptions



Follow ups