SDN with host and some VMs on same VLAN

fonze98

Member
Oct 15, 2022
14
1
8
I am looking for some help with my SDN / network config.

my working setup before trying to switch to SDN with VLAN was fully configured in the /etc/network/interfaces file like below
Code:
auto lo
iface lo inet loopback

iface enp86s0 inet manual

auto enp87s0
iface enp87s0 inet static
        address 192.168.110.8/24

auto vmbr0.100
iface vmbr0.100 inet static
        address 192.168.100.8/24
        gateway 192.168.100.1

auto vmbr0
iface vmbr0 inet static
        bridge-ports enp86s0
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094

iface wlo1 inet manual

source /etc/network/interfaces.d/*

in my unifi switch I had this set up with no native vlan and only allowing the vlan tags that I use

after trying to set up the SDN networking my metwork configs look like the below
Code:
auto lo
iface lo inet loopback

iface enp86s0 inet manual

auto enp87s0
iface enp87s0 inet static
        address 192.168.110.8/24

auto vmbr0
iface vmbr0 inet static
        address 192.168.100.8/24
        gateway 192.168.100.1
        bridge-ports enp86s0
        bridge-stp off
        bridge-fd 0

iface wlo1 inet manual

source /etc/network/interfaces.d/*

and in the /etc/network/interfaces.d/sdn file

Code:
#version:4

auto VLAN100
iface VLAN100
        bridge_ports ln_VLAN100
        bridge_stp off
        bridge_fd 0
        alias Travis

auto VLAN20
iface VLAN20
        bridge_ports ln_VLAN20
        bridge_stp off
        bridge_fd 0
        alias Guests

auto VLAN40
iface VLAN40
        bridge_ports ln_VLAN40
        bridge_stp off
        bridge_fd 0
        alias IoT

auto ln_VLAN100
iface ln_VLAN100
        link-type veth
        veth-peer-name pr_VLAN100

auto ln_VLAN20
iface ln_VLAN20
        link-type veth
        veth-peer-name pr_VLAN20

auto ln_VLAN40
iface ln_VLAN40
        link-type veth
        veth-peer-name pr_VLAN40

The problem I think I am running into is that in order for this to work I have to set the unifi switch up so that it natively tags the traffic on that interface so that the host can get its ip but then if I try to tag that same vlan on an internal VM with the new SDN network it does not seem to work (I can not access. Any guidance on what I could do to get over this?