Re: VLAN not working - jails, bridges, and VLANs

From: Patrick M. Hausen <hausen_at_punkt.de>
Date: Wed, 26 Jul 2023 15:32:42 UTC
Hi all,

> Am 16.07.2023 um 05:54 schrieb Rudy <crapsh@monkeybrains.net>:
> Kernel: FreeBSD 13.1-RELEASE-p8 GENERIC amd64
> Issue: vlan traffic not in the jail

To connect a VNET jail to a VLAN you

- create the VLAN on top of a physical interface or lagg
- create a bridge interface with that VLAN as a member interface
- if the host needs IP connectivity in that VLAN assign IP addresses to the bridge and not to the VLAN
- connect the jail to that bridge

One bridge per VLAN. Running in production with about 1000 jails, here.

HTH,
Patrick
-- 
punkt.de GmbH
Patrick M. Hausen
.infrastructure

Sophienstr. 187
76185 Karlsruhe

Tel. +49 721 9109500

https://infrastructure.punkt.de
info@punkt.de

AG Mannheim 108285
Geschäftsführer: Daniel Lienert, Fabian Stein