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. 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. 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. oh, well.. maybe I'm trying to enable it wrongly. i installed vlan package (apt-get install vlan) Code: root@firewall:~# uname -a when I try to enable module I get: Code: root@firewall:~# modprobe 8021q i added an interface in interfaces file Code: # eth0.100 then doing ifup gives me this: Code: root@firewall:/etc/network# ifup 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 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! |