Estou mudando do NetworkManager para systemd-networkd
(após uma atualização para o Ubuntu 18.04). Eu configurei todas as minhas interfaces, pontes e VLANs e tudo funciona.
O log mostra que
root@srv ~# journalctl -b | grep " lo" | grep networkd
May 20 10:55:44 srv systemd-networkd[765]: lo: Removing non-existent address: ::1/128 (valid forever), ignoring
May 20 10:55:44 srv systemd-networkd[765]: lo: Link is not managed by us
May 20 10:55:44 srv systemd-networkd[765]: lo: Link is not managed by us
May 20 10:55:44 srv systemd-networkd[765]: lo: Link is not managed by us
May 20 10:55:44 srv systemd-networkd-wait-online[801]: ignoring: lo
May 20 10:55:44 srv systemd-networkd-wait-online[801]: ignoring: lo
May 20 10:55:44 srv systemd-networkd[765]: lo: Link is not managed by us
May 20 10:55:44 srv systemd-networkd-wait-online[801]: ignoring: lo
May 20 10:55:44 srv systemd-networkd-wait-online[801]: ignoring: lo
May 20 10:55:44 srv systemd-networkd-wait-online[801]: ignoring: lo
May 20 10:55:44 srv systemd-networkd-wait-online[801]: ignoring: lo
May 20 10:55:44 srv systemd-networkd-wait-online[801]: ignoring: lo
( ignoring: lo
é então repetido várias vezes no log)
Primeiro de tudo, lo: Link is not managed by us
. Ele é gerenciado por quem, então?
Então parece que está de alguma forma configurado corretamente:
root@srv ~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
Na verdade, não é gerenciado por systemd-networkd
:
root@srv ~# networkctl status lo
● 1: lo
Link File: /lib/systemd/network/99-default.link
Network File: n/a
Type: loopback
State: carrier (unmanaged)
Address: 127.0.0.1
Mas funciona como esperado:
root@srv ~# ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.056 ms
Devo configurá-lo via systemd-networkd
e, em caso afirmativo, como?
Tags systemd systemd-networkd