VLAN support?

Started by flipflops, February 15, 2013, 06:06:36 AM

Previous topic - Next topic

flipflops

I am trying to put a vlan on the usb0 ethernet device. I installed iproute2 with:

pacman -Sy iproute2

but when trying to establish the vlan with:

ip link add link usb0 name usb0.100 type vlan id 100

I get the error:

RTNETLINK answers: Operation not supported

It seems that there is no support in the kernel or kernel modules for 802.1q for this build of Arch (2.6.35-6-ARCH+)

Does anyone have a way to enable vlan support for these boards?

jeroends

I've played around with vlans on the maxi and the a13. I don't know anymore if the 802.1q module is standard compiled. Did you tried to load it (modprobe 8021q)?
It is Always also interresting that you install the vlan tools. I can only help you with that on debian bacause I'm not formiliar with archlinux.
The debian way: http://wiki.debian.org/NetworkConfiguration#Howto_use_vlan_.28dot1q.2C_802.1q.2C_trunk.29_.28Etch.2C_Lenny.29

flipflops

Quote from: jeroends on February 15, 2013, 07:59:11 AM
Did you tried to load it (modprobe 8021q)?

Yes. Result is:

FATAL: Module 8021q not found

Quote from: jeroends on February 15, 2013, 07:59:11 AM
It is Always also interresting that you install the vlan tools.

vlan is not available in the arch repos and when I tried to compile it from source, it is a kernel patch.
http://www.candelatech.com/~greear/vlan.html#setup

Quote from: jeroends on February 15, 2013, 07:59:11 AM
I can only help you with that on debian bacause I'm not formiliar with archlinux.
The debian way: http://wiki.debian.org/NetworkConfiguration#Howto_use_vlan_.28dot1q.2C_802.1q.2C_trunk.29_.28Etch.2C_Lenny.29

Thanks for the reply. I can get it working if I can get the tools installed but this looks like a no-go on the archlinux arm build for olimex without rebuilding the kernel so I will try that first unless someone knows a better way? kernel module? anyone?

jeroends

I'll post later on this day (if time let me) a kernel with vlan build in (my kernel  ;)), I'll problably will post also an updated version of the debian system since the older system dates from summer last year when I posted it.

jeroends

In the following link you'll find a kernel with vlan support (module 802.1q). Kepp in mind that this is a 3.7 version of the kernel and I don't know which other options you need so I took the most basic things (guide can be found on https://github.com/koliqi/imx23-olinuxino).

Link with kernel and libs: http://leachy.homeip.net/olinuxino/kernel/
Write your kernel to your first partition and untar the libs in the root directory. As far as I can think of this wouldn't give any problems on the arch linux distri.
Btw the chance exists that your "usb0" device will be recognized as "eth0" so you'll problably have to adjust your network settings file! (small difference with the newer kernel)

flipflops


flipflops

Arch Linux ARM now officially supports Olinuxino so VLAN support is included. All I had to do to get VLAN support was to rebuild the SD Card with the latest Arch Linux ARM Olinuxino build.

http://archlinuxarm.org/platforms/armv5/olinuxino