PINE64
VLAN 802.1Q support - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4)
+--- Forum: Linux on Pine A64(+) (https://forum.pine64.org/forumdisplay.php?fid=6)
+--- Thread: VLAN 802.1Q support (/showthread.php?tid=1253)



VLAN 802.1Q support - braynshock - 06-03-2016

I've been using the longsleep ubuntu build and working on trying to use it as a gateway between two networks among other things. managed to get iptables up and running, got my static routing and DNS caching working. But I went to add sub interfaces to the eth0 port, and have run into a problem of not having the 8021q kernel module. Sadly its been several years since i've recompiled a kernel, and i see all the repos in the wiki and these forums but not sure i know what packages to install to recompile the kernel to add in VLAN support.

Has anyone else done that?

Is there a 'recompile pine64 kernel for dummies' thread that i'm missing?

Thanks for any pointers.

EDIT:
Never mind... I managed to completely miss the post by longsleep.


RE: VLAN 802.1Q support - tllim - 06-03-2016

(06-03-2016, 08:57 AM)braynshock Wrote: I've been using the longsleep ubuntu build and working on trying to use it as a gateway between two networks among other things. managed to get iptables up and running, got my static routing and DNS caching working. But I went to add sub interfaces to the eth0 port, and have run into a problem of not having the 8021q kernel module. Sadly its been several years since i've recompiled a kernel, and i see all the repos in the wiki and these forums but not sure i know what packages to install to recompile the kernel to add in VLAN support.

Has anyone else done that?

Is there a 'recompile pine64 kernel for dummies' thread that i'm missing?

Thanks for any pointers.

EDIT:
Never mind... I managed to completely miss the post by longsleep.

I will close this thread.


RE: VLAN 802.1Q support - tllim - 06-03-2016

(06-03-2016, 11:31 AM)tllim Wrote:
(06-03-2016, 08:57 AM)braynshock Wrote: I've been using the longsleep ubuntu build and working on trying to use it as a gateway between two networks among other things. managed to get iptables up and running, got my static routing and DNS caching working. But I went to add sub interfaces to the eth0 port, and have run into a problem of not having the 8021q kernel module. Sadly its been several years since i've recompiled a kernel, and i see all the repos in the wiki and these forums but not sure i know what packages to install to recompile the kernel to add in VLAN support.

Has anyone else done that?

Is there a 'recompile pine64 kernel for dummies' thread that i'm missing?

Thanks for any pointers.

EDIT:
Never mind... I managed to completely miss the post by longsleep.

I will close this thread.

Reopen thread.


RE: VLAN 802.1Q support - longsleep - 06-03-2016

Thanks. @braynshock - my Kernel builds have CONFIG_VLAN_8021Q=y - thus you do not need to the module.

See https://github.com/longsleep/linux-pine64/blob/pine64-hacks-1.2/arch/arm64/configs/sun50iw1p1smp_linux_defconfig#L259

What Kernel build do you use? "uname -a"

So if you ask me it should just work.


RE: VLAN 802.1Q support - braynshock - 06-03-2016

(06-03-2016, 11:45 AM)longsleep Wrote: Thanks. @braynshock  - my Kernel builds have CONFIG_VLAN_8021Q=y - thus you do not need to the module.

See https://github.com/longsleep/linux-pine64/blob/pine64-hacks-1.2/arch/arm64/configs/sun50iw1p1smp_linux_defconfig#L259

What Kernel build do you use? "uname -a"

So if you ask me it should just work.

oh, well.. maybe I'm trying to enable it wrongly.

i installed vlan package (apt-get install vlan)


Code:
root@firewall:~# uname -a
Linux firewall.localdomain 3.10.65-7-pine64-longsleep #28 SMP PREEMPT Sat Apr 23 20:13:25 CEST 2016 aarch64 aarch64 aarch64 GNU/Linux

when I try to enable module I get:

Code:
root@firewall:~# modprobe 8021q
modprobe: FATAL: Module 8021q not found in directory /lib/modules/3.10.65-7-pine64-longsleep

i added an interface in interfaces file
Code:
# eth0.100
auto eth0.100
allow-hotplug eth0.100
iface eth0.100 inet static
    address 10.0.0.100
    netmask 255.255.255.0
    broadcast 10.0.0.255
    gateway 10.0.0.1

then doing ifup gives me this:
Code:
root@firewall:/etc/network# ifup eth0.100
WARNING:  Could not open /proc/net/vlan/config.  Maybe you need to load the 8021q module, or maybe you are not using PROCFS??
ERROR: trying to set name type for VLAN subsystem, error: Package not installed
WARNING:  Could not open /proc/net/vlan/config.  Maybe you need to load the 8021q module, or maybe you are not using PROCFS??
ERROR: trying to add VLAN #100 to IF -:eth0:-  error: Package not installed
Cannot find device "eth0.100"
Failed to bring up eth0.100.

thanks for the reply
I don't have a lot of experience with these stripped down kernels, so I expect I'm doing something wrong.


RE: VLAN 802.1Q support - longsleep - 06-04-2016

Your Kernel is terribly outdated. Why do you still use it? I have not checked if vlan stuff was in there back then, but i guess not as you have troubles.


RE: VLAN 802.1Q support - braynshock - 06-04-2016

(06-04-2016, 03:43 AM)longsleep Wrote: Your Kernel is terribly outdated. Why do you still use it? I have not checked if vlan stuff was in there back then, but i guess not as you have troubles.

I wasn't intentionally using an old kernel... just didn't realize it was that old. Thanks for pointing it out. I'll work on updating the kernel.

Thanks,

I had originally downloaded and built the SD Card over a month ago, so I didn't realize how outdated the kernel was when I got the Pine64 and booted it.

got it resolved though:
Code:
braynshock@firewall:~$ uname -a
Linux firewall.localdomain 3.10.101-4-pine64-longsleep #51 SMP PREEMPT Thu May 26 18:20:37 CEST 2016 aarch64 aarch64 aarch64 GNU/Linux

Upon reboot, my VLAN interface was already up, since I had the interfaces file configured.

Thanks again for your help.


RE: VLAN 802.1Q support - longsleep - 06-05-2016

Great - thanks for confirming!