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.
(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.
(06-03-2016, 11:45 AM)longsleep Wrote: [ -> ]Thanks. - my Kernel builds have CONFIG_VLAN_8021Q=y - thus you do not need to the module.
See https://github.com/longsleep/linux-pine6...onfig#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.
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.
(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.
Great - thanks for confirming!