VLAN 802.1Q support
#1
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.
#2
(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.
#3
(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.
#4
Thanks. @braynshock - 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.
#5
(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-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.
#6
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.
#7
(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.
#8
Great - thanks for confirming!


Possibly Related Threads…
Thread Author Replies Views Last Post
  Programming languages support under PINE64 baryluk 6 12,060 09-23-2020, 11:46 PM
Last Post: Phillip Bell
  AXP803 Battery Charger Support xalius 14 23,652 12-22-2017, 08:59 AM
Last Post: Velociraptor
Wink Pine64 Will support Freenas or openmediavault ? joe 1 4,905 04-13-2017, 07:44 AM
Last Post: xalius
  Remote Desktop Support? Rochambeaux 20 28,731 10-01-2016, 05:08 PM
Last Post: HayseedGeek
  Binfmt_misc support cztian 1 3,635 08-17-2016, 11:49 PM
Last Post: longsleep
Question Joystick/Gamepad support Drakuwa 3 5,850 08-10-2016, 10:12 AM
Last Post: xalius
Big Grin Funny ! Support Intel x86 linux applications on ARM-based ( PINE64 ) not freeware joe 10 16,051 08-09-2016, 05:59 PM
Last Post: dkryder
  Camera support - Ubuntu Xenial 16.04 LTS @lex 3 5,099 08-07-2016, 03:47 AM
Last Post: romansavrulin
  Virtualization Support soccercheng 12 17,012 07-14-2016, 11:04 AM
Last Post: mont3z
  distro with kernel support for DVB-T dongles? mkaut 2 4,532 07-02-2016, 02:36 PM
Last Post: mkaut

Forum Jump:


Users browsing this thread: 2 Guest(s)