[systemd-devel] systemd-networkd -- Unable to create VLAN device

Tom Gundersen teg at jklm.no
Fri Sep 19 13:51:41 PDT 2014


On Fri, Sep 19, 2014 at 6:59 PM, James Lott <james at lottspot.com> wrote:
> Hello again!
>
> I've been eager to play with networking features, in case you couldn't tell ;)
> This patricular issue seems separate from my first one though, so I thought it
> would be best to discuss separately.
>
> I am trying to use systemd-networkd to essentially replace vconfig. I am using
> eth0 as a trunked link and am trying to setup a pair of VLAN devices to
> receive the taged frames. It seems that the VLAN netdevs are silently failing
> to be created.
>
> Sep 19 09:47:34 utility01 systemd[1]: Starting Network Service...
> Sep 19 09:47:34 utility01 systemd-networkd[776]:
> [/etc/systemd/network/vlan1.network:6] VLAN could not be found, ignoring
> assignment: 1
> Sep 19 09:47:34 utility01 systemd-networkd[776]:
> [/etc/systemd/network/vlan0.network:6] VLAN could not be found, ignoring
> assignment: 0
> Sep 19 09:47:34 utility01 systemd-networkd[776]:
> [/etc/systemd/network/eth0.network:6] VLAN could not be found, ignoring
> assignment: 1
> Sep 19 09:47:34 utility01 systemd-networkd[776]:
> [/etc/systemd/network/eth0.network:7] VLAN could not be found, ignoring
> assignment: 0
> Sep 19 09:47:34 utility01 systemd-networkd[776]: eth0.0          : gained
> carrier
> Sep 19 09:47:34 utility01 systemd-networkd[776]: eth0            : gained
> carrier
> Sep 19 09:47:34 utility01 systemd-networkd[776]: lo              : gained
> carrier
> Sep 19 09:47:34 utility01 systemd[1]: Started Network Service.
>
> Although I strongly believe this to be an error I am making somewhere, I have
> read and re-read all of the systemd-networkd man pages, and cannot for the
> life of me figure out where I went wrong. Any help is much appreciated!
> Additional environment information is included below.
>
> [root at utility01 network]# uname -a
> Linux utility01 3.12.26-2-ARCH #1 PREEMPT Sun Aug 31 22:36:40 MDT 2014 armv6l
> GNU/Linux
> [root at utility01 network]# pacman -Q systemd
> systemd 216-3
> [root at utility01 network]# lsmod | grep 8021q
> 8021q                  20658  0
> garp                    6303  1 8021q
> mrp                     8249  1 8021q
>
> [root at utility01 network]# pwd
> /etc/systemd/network
> [root at utility01 network]# for f in *; do echo; echo "---------- $f"; echo; cat
> $f; done
>
> ---------- eth0.network
>
> [Match]
> Name=eth0
>
> [Network]
> DHCP=v4
> VLAN=1
> VLAN=0

This needs to be the names of your vlan interfaces, not their vlanid. I.e.,

VLAN=vlan0
VLAN=vlan1

> ---------- vlan0.netdev
>
> [NetDev]
> Name=vlan0
> Kind=vlan
>
> [VLAN]
> Id=0
>
> ---------- vlan0.network
>
> [Match]
> Name=vlan0
>
> [Network]
> DHCP=v4
> VLAN=0
>
> ---------- vlan1.netdev
>
> [NetDev]
> Name=vlan1
> Kind=vlan
>
> [VLAN]
> Id=1
>
> ---------- vlan1.network
>
> [Match]
> Name=vlan1
>
> [Network]
> DHCP=v4
> VLAN=1
> [root at utility01 network]# ip link
> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode
> DEFAULT group default
>     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
> 2: ifb0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group
> default qlen 32
>     link/ether 3e:ff:bc:28:42:cb brd ff:ff:ff:ff:ff:ff
> 3: ifb1: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group
> default qlen 32
>     link/ether 3a:65:88:fc:ab:27 brd ff:ff:ff:ff:ff:ff
> 4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP
> mode DEFAULT group default qlen 1000
>     link/ether b8:27:eb:9d:3a:06 brd ff:ff:ff:ff:ff:ff
> 5: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT
> group default qlen 1000
>     link/ether 64:66:b3:20:04:f5 brd ff:ff:ff:ff:ff:ff
> 6: eth0.0 at eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state
> UP mode DEFAULT group default
>     link/ether b8:27:eb:9d:3a:06 brd ff:ff:ff:ff:ff:ff
>
> NOTE: The existing eth0.0 was created using vconfig, which I created simply to
> get this machine back on the network while I troubleshooted my issue.
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel


More information about the systemd-devel mailing list