[systemd-bugs] [Bug 83270] New: systemd-networkd: Multiple addresses are added in the reverse order

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Aug 30 05:27:33 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=83270

          Priority: medium
            Bug ID: 83270
          Assignee: systemd-bugs at lists.freedesktop.org
           Summary: systemd-networkd: Multiple addresses are added in the
                    reverse order
        QA Contact: systemd-bugs at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: hahnjo at hahnjo.de
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: unspecified
         Component: general
           Product: systemd

Example: eth0.network

[Match]
Name=eth0

[Network]
Address=192.168.122.133/24
Address=192.168.122.233/24
Gateway=192.168.122.1
EOF

$ ip addr
[...]
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP
group default qlen 1000
    link/ether 52:54:00:cc:2e:59 brd ff:ff:ff:ff:ff:ff
    inet 192.168.122.233/24 brd 192.168.122.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet 192.168.122.133/24 brd 192.168.122.255 scope global secondary eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::5054:ff:fecc:2e59/64 scope link 
       valid_lft forever preferred_lft forever

Looking at the code I see that static addresses are prepended to the list
(networkd-address.c, line 62) and then looped over in networkd-link.c, line
551.

Is it a feature or a bug? It's pretty annoying for setting the default and the
alias IP...

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140830/4c918354/attachment.html>


More information about the systemd-bugs mailing list