[systemd-devel] Assigning a second ip-address on interface (i.e. eth0 and eth0:1)

Tom Gundersen teg at jklm.no
Thu Apr 24 04:22:54 PDT 2014


On Thu, Apr 24, 2014 at 12:30 PM, Mantas Mikulėnas <grawity at gmail.com> wrote:
> On Thu, Apr 24, 2014 at 1:06 PM, Umut Tezduyar Lindskog
> <umut at tezduyar.com> wrote:
>> Hi Oliver,
>>
>> You can specify Address= more than once as it is explained in
>> http://www.freedesktop.org/software/systemd/man/systemd.network.html
>> (Address=).
>
> And just for the record, use `ip addr` to make sure it works, because
> chances are that `ifconfig` won't show it.
>
> Since kernel 2.2, there can be several IP addresses on the same eth0
> interface without having to use 'aliases', using `ip addr add` for
> example. networkd uses the new method as well. Unfortunately,
> `ifconfig` – even the last version that Arch has – only shows the
> first address to this day.

PSA: never, ever, use ifconfig or friends. It has been dead upstream
since sometime in the last millenium and is known to give you
misleading or just wrong information.

I thought we had dropped it from Arch to be honest... Maybe time to
look at that...

Cheers,

Tom


More information about the systemd-devel mailing list