You are not logged in.

#1 2015-06-05 18:34:05

evilhamsterman
Member
Registered: 2013-08-15
Posts: 12

[Solved] systemd-networkd netdev files not working

I'm trying to setup a VLAN interface using networkd. I have verified the VLAN works with a manually created interface, but when I try to create an interface with networkd I just get an error.

Jun 05 11:26:02 files systemd[1]: Starting Network Service...
Jun 05 11:26:02 files systemd-networkd[880]: NetDev with invalid Kind configured in /etc/systemd/network/eno1.10.netdev. Ignoring
Jun 05 11:26:02 files systemd-networkd[880]: [/etc/systemd/network/eno1.network:6] VLAN could not be found, ignoring assignment: eno1.10
Jun 05 11:26:02 files systemd-networkd[880]: Enumeration completed
Jun 05 11:26:02 files systemd[1]: Started Network Service.
Jun 05 11:26:02 files systemd-networkd[880]: eno1            : link configured

I have followed the VLAN setup in the wiki.

/etc/systemd/network/eno1.network
[Match]
Name=eno1

[Network]
DNS=192.168.1.1
VLAN=eno1.10

[Address]
Address=192.168.1.10

[Route]
Gateway=192.168.1.1

/etc/systemd/network/eno1.10.netdev
[Netdev]
Name=eno1.10
Kind=vlan

[VLAN]
Id=10


For what it is worth I get the same error even If i just set the Netdev kind to dummy. I am not sure if netdevs are broken or if I'm missing something

Last edited by evilhamsterman (2015-06-05 20:45:09)

Offline

#2 2015-06-05 18:48:49

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [Solved] systemd-networkd netdev files not working

There's no "Netdev" section, only "NetDev" (note the capitalization).

Offline

#3 2015-06-05 20:44:24

evilhamsterman
Member
Registered: 2013-08-15
Posts: 12

Re: [Solved] systemd-networkd netdev files not working

That did fix it. Looks like there is a small error on the wiki then because I literally copied those files from the wiki.

Offline

#4 2015-06-05 20:50:31

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [Solved] systemd-networkd netdev files not working

evilhamsterman wrote:

That did fix it. Looks like there is a small error on the wiki then because I literally copied those files from the wiki.

I'm glad you got this sorted, have you thought of editing the wiki so that no-one else runs into the same problem?

Last edited by Slithery (2015-06-05 21:07:19)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2015-06-05 21:30:46

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Solved] systemd-networkd netdev files not working

evilhamsterman wrote:

I literally copied those files from the wiki.

Also bear in mind that the wiki is not official documentation - it's useful, but relying on it exclusively is not a good idea. Use the relevant man pages as well.

Offline

#6 2015-06-05 21:52:44

evilhamsterman
Member
Registered: 2013-08-15
Posts: 12

Re: [Solved] systemd-networkd netdev files not working

I was comparing it to other things including the official docs for systemd. It was just such a small difference I didn't catch, probably would have eventually. Easy fix though for the wiki which I already did.

Offline

Board footer

Powered by FluxBB