pimox7 icon indicating copy to clipboard operation
pimox7 copied to clipboard

VLAN support on pimox7

Open bronkoo opened this issue 3 years ago • 10 comments

Hi,

given by the fact 'vlan' package isn't installed by 'RPiOS64-IA-Install.sh' script I tried to do it, but this will remove 'proxmox-ve' and 'pve-manager' packages... I need to add VLAN's on my eth0 for untagged interfaces on CT's, as normal I think...

Best.

bronkoo avatar Dec 18 '21 21:12 bronkoo

Did you try to activate it via GUI ?

Sysadminfromhell avatar Dec 18 '21 22:12 Sysadminfromhell

Yes, at first. But 'VLAN Tag" is grayed out in ->Network ->Create ->Linux Vlan That's why I've checked 'vlan' package...

kernel has vlan support:

# modinfo 8021q
filename:       /lib/modules/5.10.63-v8+/kernel/net/8021q/8021q.ko
version:        1.8
license:        GPL
alias:          rtnl-link-vlan
srcversion:     CFFE1C2D7D6CC32F92D6CAF
depends:        garp
intree:         Y
name:           8021q
vermagic:       5.10.63-v8+ SMP preempt mod_unload modversions aarch64

bronkoo avatar Dec 18 '21 22:12 bronkoo

Did you create a Linux bridge first and activate VLAN awareness then then or otherwise? Because I can activate it.

Sysadminfromhell avatar Dec 19 '21 07:12 Sysadminfromhell

Ok, thanks. Just stumbled over: Default Bridge 'vmbr0' works without any changes - 'VLAN aware' is unmarked - and simple configure the 'VLAN Tag' in network device for my CT's. Like KISS...

Not an issue currently, but 'VLAN Tag" is still grayed out in ->Network ->Create ->Linux Vlan.

bronkoo avatar Dec 19 '21 17:12 bronkoo

Ok, thanks. Just stumbled over: Default Bridge 'vmbr0' works without any changes - 'VLAN aware' is unmarked - and simple configure the 'VLAN Tag' in network device for my CT's. Like KISS...

Not an issue currently, but 'VLAN Tag" is still grayed out in ->Network ->Create ->Linux Vlan.

afaik you need to create a linux bond before you can create a linux vlan. Read the manual, I guess its described like this.

Sysadminfromhell avatar Dec 22 '21 11:12 Sysadminfromhell

afaik you need to create a linux bond before you can create a linux vlan. Read the manual, I guess its described like this.

sorry in the hell ;-), but that doesn't make sense... RTFM for sure.

bronkoo avatar Dec 22 '21 12:12 bronkoo

Did you try to

Did you try to activate it via GUI ?

Hi. For me activating the vlan aware feature on the bridge in the gui and then rebooting causes me to lose access to the pi and requiring me to start again from scratch with a reinstall. Tried a few times.

I don't get this issue on my other non pi nodes full proxmox clusters.

Any ideas.

salman-uk avatar Dec 31 '21 00:12 salman-uk

The vlan aware feature is a kernel compile option which the standard pi kernel doesn't enable. You can try this custom kernel which does have it enabled (see https://github.com/pimox/pimox7/issues/28)

aanon4 avatar Dec 31 '21 00:12 aanon4

Also you may be able to do what you want with openvswitch-switch package.

MakiseKurisu avatar Jan 09 '22 05:01 MakiseKurisu

Just to add our trickery to get vlan-aware working, might not apply to your case. We needed to set our nics in promisc mode. Sounds like a bug. :)

https://community.mellanox.com/s/question/0D51T00008ansfP/vlan-aware-linux-bridging-is-not-functional-on-connectx4lx-card-unless-manually-put-in-promiscuous-mode

AlwinAntreich avatar Jan 18 '22 16:01 AlwinAntreich