You are not logged in.

#1 2014-09-07 06:38:31

r-darwish
Member
Registered: 2013-12-16
Posts: 12

VLAN interface on the top of a TAP interface

I'm trying to set up several VLAN interfaces over a TAP interface. This is how I set the TAP interface:

/etc/netctl/tap:

Description='TAP'
Interface=tap0
Connection=tuntap
Mode='tap'
User='nobody'
Group='nobody'

The TAP interface works as expected. Here's /etc/netctl/vlan3

Description='Virtual LAN 3 on interface tap3'
Interface=tap0.3
Connection=vlan
# The variable name is plural, but needs precisely one interface
BindsToInterfaces=tap0
VLANID=3
IP=static
Address=('192.168.121.130/24')
Routes=('192.168.111.0/24 via 192.168.121.1')
IP6=no

Running `netctl start vlan3` fails. Here's the output of journalctl:

-- Logs begin at Fri 2013-09-20 19:10:30 AEST, end at Sun 2014-09-07 16:30:41 AEST. --
Sep 07 16:30:33 archlinux.vagrant.vm systemd[1]: Starting Virtual LAN 3 on interface tap3...
-- Subject: Unit netctl@vlan3.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit netctl@vlan3.service has begun starting up.
Sep 07 16:30:33 archlinux.vagrant.vm network[891]: Starting network profile 'vlan3'...
Sep 07 16:30:33 archlinux.vagrant.vm kernel: IPv6: ADDRCONF(NETDEV_UP): tap0.3: link is not ready
Sep 07 16:30:33 archlinux.vagrant.vm systemd-sysctl[899]: Overwriting earlier assignment of kernel/sysrq in file '/etc/sysctl.d/99-sysctl.conf'.
Sep 07 16:30:41 archlinux.vagrant.vm network[891]: No connection found on interface 'tap0.3' (timeout)
Sep 07 16:30:41 archlinux.vagrant.vm network[891]: Failed to bring the network up for profile 'vlan3'
Sep 07 16:30:41 archlinux.vagrant.vm systemd[1]: netctl@vlan3.service: main process exited, code=exited, status=1/FAILURE
Sep 07 16:30:41 archlinux.vagrant.vm systemd[1]: Failed to start Virtual LAN 3 on interface tap3.
-- Subject: Unit netctl@vlan3.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit netctl@vlan3.service has failed.
--
-- The result is failed.
Sep 07 16:30:41 archlinux.vagrant.vm systemd[1]: Unit netctl@vlan3.service entered failed state.
Sep 07 16:30:41 archlinux.vagrant.vm sudo[885]: pam_unix(sudo:session): session closed for user root

At this point I can see tap0.3 when running `ifconfig -a`. Running `ifconfig tap0.3 up` also seems to bring the interface up. Why does netctl fail to bring the interface up?

Offline

Board footer

Powered by FluxBB