<div dir="ltr"><div>It's working now, I had my understanding messed up a little. Thanks for the clarification!</div><div><br></div><div>Kind regards,</div><div>Lukas Wolf<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 14 Nov 2022 at 20:05, Andrei Borzenkov <<a href="mailto:arvidjaar@gmail.com">arvidjaar@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 14.11.2022 15:49, Lukas Wolf wrote:<br>
> Hi all and thanks a lot for all your work on systemd!<br>
> <br>
> I'm trying to setup a VXLAN configuration with multicast with<br>
> systemd-networkd but struggle to make it work. What I'm trying to replicate<br>
> is the following (working command):<br>
> <br>
> ip link add vxlan100 type vxlan id 100 dstport 4789 local 10.100.200.4<br>
> group 224.4.0.144 dev lo ttl 5<br>
> (this command fails without specifying 'dev lo')<br>
> <br>
> My config file, vxlan100.netdev:<br>
> [NetDev]<br>
> Name=vxlan100<br>
> Kind=vxlan<br>
> <br>
> [VXLAN]<br>
> VNI=100<br>
> TTL=5<br>
> DestinationPort=4789<br>
> Group=224.0.0.144<br>
> Local=10.100.200.4<br>
> Independent=true<br>
> <br>
<br>
If you want Group you need device and so cannot use Independent<br>
...<br>
> <br>
> As seen in the last line of the log, it throws an invalid argument error<br>
> and no VXLAN device is created. This does not happen if I remove the<br>
> "Group=" part in the configuration. As mentioned above, the "ip add link"<br>
> command needs a "dev=" argument to work but I have not found a way to<br>
> specify a device in the netdev config file...<br>
> <br>
> I have also tried it without Independent=true and having a network file<br>
> instead with VXLAN=vxlan100,<br>
<br>
Wat do you mean "instead"? You need network file for base interface that <br>
refers to vxlan and netdev file for vxlan.<br>
<br>
> but then it just silently fails without log<br>
> output.<br>
> <br>
<br>
Works for me (at least, to the extent that vxlan100 is created)<br>
<br>
bor@bor-Latitude-E5450:~$ ip l<br>
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode <br>
DEFAULT group default qlen 1000<br>
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00<br>
2: eno1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel <br>
state DOWN mode DEFAULT group default qlen 1000<br>
link/ether 34:e6:d7:85:0b:1c brd ff:ff:ff:ff:ff:ff<br>
altname enp0s25<br>
3: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue <br>
state UP mode DORMANT group default qlen 1000<br>
link/ether 5c:e0:c5:27:c7:70 brd ff:ff:ff:ff:ff:ff<br>
4: br0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state <br>
DOWN mode DEFAULT group default qlen 1000<br>
link/ether 6a:7b:d1:2a:ce:9d brd ff:ff:ff:ff:ff:ff<br>
5: tap0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel <br>
master br0 state DOWN mode DEFAULT group default qlen 1000<br>
link/ether 2a:7d:ac:33:fd:47 brd ff:ff:ff:ff:ff:ff<br>
bor@bor-Latitude-E5450:~$ sudo systemctl start systemd-networkd.service<br>
bor@bor-Latitude-E5450:~$ ip l<br>
...<br>
13: vxlan100: <BROADCAST,MULTICAST> mtu 1450 qdisc noop state DOWN mode <br>
DEFAULT group default qlen 1000<br>
link/ether b6:1d:97:9f:e6:eb brd ff:ff:ff:ff:ff:ff<br>
bor@bor-Latitude-E5450:~$ cat /etc/systemd/network/eno1.network<br>
[Match]<br>
Name=eno1<br>
<br>
[Link]<br>
ActivationPolicy=always-up<br>
<br>
[Network]<br>
ConfigureWithoutCarrier=true<br>
Address=<a href="http://10.10.10.10/24" rel="noreferrer" target="_blank">10.10.10.10/24</a><br>
VXLAN=vxlan100<br>
bor@bor-Latitude-E5450:~$ cat /etc/systemd/network/vxlan100.netdev<br>
[NetDev]<br>
Name=vxlan100<br>
Kind=vxlan<br>
<br>
[VXLAN]<br>
VNI=100<br>
TTL=5<br>
DestinationPort=4789<br>
Group=224.0.0.144<br>
Local=10.10.10.10<br>
bor@bor-Latitude-E5450:~$<br>
<br>
<br>
</blockquote></div>