<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Adding VLAN causes main interface to be down"
href="https://bugs.freedesktop.org/show_bug.cgi?id=81713">81713</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>Adding VLAN causes main interface to be down
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Reporter</th>
<td>freedesktop@techmunk.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Product</th>
<td>systemd
</td>
</tr></table>
<p>
<div>
<pre>I have installed a fresh archlinux install in virtualbox, installing only base,
base-devel, and grub.
I've then built systemd-git pkgbuild and installed.
The following is the simplest configuration I've found that does not work.
The vlan gets added, however all of the interfaces are down, and need to be
bought up manually. I've tried with a second vlan, to the same effect. The only
way I've found to have the main interface come up on boot, is to not include
the vlans.
CONFIG:
----------------------------
enp0s3.network
----------------------------
[Match]
Name=enp0s3
[Network]
VLAN=vlan2
----------------------------
----------------------------
vlan2.netdev
----------------------------
[NetDev]
Name=vlan2
Kind=vlan
[VLAN]
Id=2
----------------------------
----------------------------
vlan2.network
----------------------------
[Match]
Name=vlan2
[Network]
Address=192.168.6.1/24
----------------------------
I've been able to replicate this on two other archlinux machines.
The output of "ip a" with the above configuration after boot is below:
----------------------------
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group
default
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
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default
qlen 1000
link/ether 08:00:27:96:01:af brd ff:ff:ff:ff:ff:ff
3: vlan2@enp0s3: <BROADCAST,MULTICAST,M-DOWN> mtu 1500 qdisc noop state DOWN
group default
link/ether 86:9c:35:e5:cb:51 brd ff:ff:ff:ff:ff:ff
inet 192.168.6.1/24 brd 192.168.6.255 scope global vlan2
valid_lft forever preferred_lft forever
----------------------------
Manually running "ip link set enp0s3 up", makes things work as expected.
What also works, is rebooting with the VLAN line commented out of
enp0s3.network, after the system has booted, re-add the line and restart
systemd-networkd.service, and everything is working as it should.
There is nothing of note in journal logs for systemd-networkd in the virtualbox
environment.
On a box which is running systemd 215-4, the following is present after boot:
Assertion 'link->manager->rtnl' failed at src/network/networkd-address.c:306,
function address_configure(). Aborting.
This machine is bringing up two vlans.
This config worked in systemd 214-2.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>