[systemd-devel] "networkctl reload" complains about "Macvlan" unknown section

Maxim Blinov maxim.a.blinov at gmail.com
Tue Aug 16 10:39:51 UTC 2022


Hi all,

I am using Ubuntu 20.04 server, and `networkctl --version` returns:

systemd 245 (245.4-4ubuntu3.17)
+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP
+LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS
+KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid

## The problem

When running `networkctl reload`, I get the following error reported
by `networkctl status`:
```
Aug 15 21:28:02 vm-server systemd-networkd[587]:
/etc/systemd/network/10-veth0.netdev:5: Unknown section 'Macvlan'.
Ignoring.
Aug 15 21:28:02 vm-server systemd-networkd[587]:
/etc/systemd/network/10-veth0.netdev:5: Unknown section 'Macvlan'.
Ignoring.
```

I'm trying to configure my server networking statically by using
.netdev and .network files, following the manual pages referenced by
[1] and [2].

I would like to add a macvlan device under my main ethernet interface,
and have added two files at this location:

/etc/systemd/network/10-veth0.netdev
/etc/systemd/network/10-veth0.network

The contents of `10-veth0.netdev` is as follows:
```
[NetDev]
Name=veth0
Kind=macvlan

[MACVLAN]
Mode=bridge
```

The contents of `10-veth0.network` is as follows:
```
[Match]
Name=veth0

[Network]
DHCP=ipv4
LinkLocalAddressing=ipv6

[DHCP]
RouteMetric=110
UseMTU=true
```

I'm probably being stupid, but I can't see where the issue is. Could
someone please point me in the right direction?

Maxim

[1]: https://man.archlinux.org/man/systemd.netdev.5.en
[2]: https://man.archlinux.org/man/systemd.network.5.en


More information about the systemd-devel mailing list