VLAN bridge not working

powerboat01

New Member
Feb 13, 2016
6
0
1
Hi All,

I tried to configure vlan's but it's not working (i.c.m. with a virtual pfsense), i configured them
the same as described in the wiki https://pve.proxmox.com/wiki/Vlans (only without bond).

Unfortunatly it's not working, is it not working because the network device is not active ? (see the picture below). Or do I mis something ?

Thx

Ps.: I didn't use the bond like in the wiki,
PS2: Just tried it with Bonding like in the wiki but no sigar :(
 

Attachments

  • vlan.png
    vlan.png
    47.1 KB · Views: 47
Last edited:
Hi Richard,

Thanks for your support,

I also added "bridge_vlan_aware yes" but still not working


Code:
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage part of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

allow-hotplug eth0

iface eth0 inet manual
    dns-search bitfinity.local
    dns-nameservers 192.168.0.1

iface eth1 inet manual

auto bond0
iface bond0 inet manual
    slaves eth0
    bond_miimon 100
    bond_mode 4   

auto bond010
iface bond010 inet manual
    slaves none
    bond_miimon 100
    bond_mode balance-rr
    vlan-raw-device bond0

auto bond020
iface bond020 inet manual
    slaves none
    bond_miimon 100
    bond_mode balance-rr
    vlan-raw-device bond0

auto bond030
iface bond030 inet manual
    slaves none
    bond_miimon 100
    bond_mode balance-rr
    vlan-raw-device bond0

#iface bond030 inet manual
#    vlan-raw-device bond0

auto bond040
iface bond040 inet manual
    slaves none
    bond_miimon 100
    bond_mode balance-rr
    vlan-raw-device bond0

iface bond050 inet manual
    slaves none
    bond_miimon 100
    bond_mode balance-rr
    vlan-raw-device bond0

auto bond060
iface bond060 inet manual
    slaves none
    bond_miimon 100
    bond_mode balance-rr
    vlan-raw-device bond0

auto bond070
iface bond070 inet manual
    slaves none
    bond_miimon 100
    bond_mode balance-rr
    vlan-raw-device bond0

auto bond080
iface bond080 inet manual
    slaves none
    bond_miimon 100
    bond_mode balance-rr
    vlan-raw-device bond0

auto bond050
iface bond050 inet manual
    slaves none
    bond_miimon 100
    bond_mode balance-rr

auto vmbr1
iface vmbr1 inet manual
    bridge_ports eth1
    bridge_stp off
    bridge_fd 0
    bridge_vlan_aware yes

auto vmbr0
iface vmbr0 inet static
    address  192.168.0.2
    netmask  255.255.255.0
    gateway  192.168.0.1
    bridge_ports bond0
    bridge_stp off
    bridge_fd 0

auto vmbr10
iface vmbr10 inet manual
    bridge_ports bond010
    bridge_stp off
    bridge_fd 0
    bridge_vlan_aware yes

auto vmbr20
iface vmbr20 inet manual
    bridge_ports bond020
    bridge_stp off
    bridge_fd 0
    bridge_vlan_aware yes

auto vmbr30
iface vmbr30 inet manual
    bridge_ports bond030
    bridge_stp off
    bridge_fd 0
    bridge_vlan_aware yes

auto vmbr40
iface vmbr40 inet manual
    bridge_ports bond040
    bridge_stp off
    bridge_fd 0
    bridge_vlan_aware yes

auto vmbr50
iface vmbr50 inet manual
    bridge_ports bond050
    bridge_stp off
    bridge_fd 0
    bridge_vlan_aware yes

auto vmbr60
iface vmbr60 inet manual
    bridge_ports bond060
    bridge_stp off
    bridge_fd 0
    bridge_vlan_aware yes

auto vmbr70
iface vmbr70 inet manual
    bridge_ports bond070
    bridge_stp off
    bridge_fd 0
    bridge_vlan_aware yes

auto vmbr80
iface vmbr80 inet manual
    bridge_ports bond080
    bridge_stp off
    bridge_fd 0
    bridge_vlan_aware yes
 
Hi Richard,

Thanks for your support,

I also added "bridge_vlan_aware yes" but still not working


Code:
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage part of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

allow-hotplug eth0

iface eth0 inet manual
    dns-search bitfinity.local
    dns-nameservers 192.168.0.1

iface eth1 inet manual

auto bond0
iface bond0 inet manual
    slaves eth0
    bond_miimon 100
    bond_mode 4  

auto bond010
iface bond010 inet manual
    slaves none
    bond_miimon 100
    bond_mode balance-rr
    vlan-raw-device bond0

auto bond020
iface bond020 inet manual
    slaves none
    bond_miimon 100
    bond_mode balance-rr
    vlan-raw-device bond0

auto bond030
iface bond030 inet manual
    slaves none
    bond_miimon 100
    bond_mode balance-rr
    vlan-raw-device bond0

#iface bond030 inet manual
#    vlan-raw-device bond0

auto bond040
iface bond040 inet manual
    slaves none
    bond_miimon 100
    bond_mode balance-rr
    vlan-raw-device bond0

iface bond050 inet manual
    slaves none
    bond_miimon 100
    bond_mode balance-rr
    vlan-raw-device bond0

auto bond060
iface bond060 inet manual
    slaves none
    bond_miimon 100
    bond_mode balance-rr
    vlan-raw-device bond0

auto bond070
iface bond070 inet manual
    slaves none
    bond_miimon 100
    bond_mode balance-rr
    vlan-raw-device bond0

auto bond080
iface bond080 inet manual
    slaves none
    bond_miimon 100
    bond_mode balance-rr
    vlan-raw-device bond0

auto bond050
iface bond050 inet manual
    slaves none
    bond_miimon 100
    bond_mode balance-rr

auto vmbr1
iface vmbr1 inet manual
    bridge_ports eth1
    bridge_stp off
    bridge_fd 0
    bridge_vlan_aware yes

auto vmbr0
iface vmbr0 inet static
    address  192.168.0.2
    netmask  255.255.255.0
    gateway  192.168.0.1
    bridge_ports bond0
    bridge_stp off
    bridge_fd 0

auto vmbr10
iface vmbr10 inet manual
    bridge_ports bond010
    bridge_stp off
    bridge_fd 0
    bridge_vlan_aware yes

auto vmbr20
iface vmbr20 inet manual
    bridge_ports bond020
    bridge_stp off
    bridge_fd 0
    bridge_vlan_aware yes

auto vmbr30
iface vmbr30 inet manual
    bridge_ports bond030
    bridge_stp off
    bridge_fd 0
    bridge_vlan_aware yes

auto vmbr40
iface vmbr40 inet manual
    bridge_ports bond040
    bridge_stp off
    bridge_fd 0
    bridge_vlan_aware yes

auto vmbr50
iface vmbr50 inet manual
    bridge_ports bond050
    bridge_stp off
    bridge_fd 0
    bridge_vlan_aware yes

auto vmbr60
iface vmbr60 inet manual
    bridge_ports bond060
    bridge_stp off
    bridge_fd 0
    bridge_vlan_aware yes

auto vmbr70
iface vmbr70 inet manual
    bridge_ports bond070
    bridge_stp off
    bridge_fd 0
    bridge_vlan_aware yes

auto vmbr80
iface vmbr80 inet manual
    bridge_ports bond080
    bridge_stp off
    bridge_fd 0
    bridge_vlan_aware yes

The file you posted does not match to the configuration shown in your first post.

You defined a bond with just one NIC - not very useful (even it should work)

To define the vlans as bond is not correct - they use just bond0 as basic device.

Note that the vlan package must be installed and kernel module 8021q loaded.

Try first a simple configuration before making a more complex one.
 
The file you posted does not match to the configuration shown in your first post.

You defined a bond with just one NIC - not very useful (even it should work)

To define the vlans as bond is not correct - they use just bond0 as basic device.

Note that the vlan package must be installed and kernel module 8021q loaded.

Try first a simple configuration before making a more complex one.

Hi Richard,

Thanks for your response, sorry that I didn't responded earlier due to work I didn't had much time.

If I try to install the vlan package it conflicts with pve and wants to remove them.

So wat I did today, I added a dual nic so that I could test without wrecking my default bridge.
I want to use eth3 as my vlan device and recreated the config file (see below).


Code:
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage part of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual
        dns-search bitfinity.local
        dns-nameservers 192.168.0.1

auto eth1
iface eth1 inet manual

auto eth2
iface eth2 inet manual

auto eth3
iface eth3 inet manual

auto vmbr0
iface vmbr0 inet static
        address  192.168.0.2
        netmask  255.255.255.0
        gateway  192.168.0.1
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0

auto vmbr1
iface vmbr1 inet manual
        bridge_ports eth1
        bridge_stp off
        bridge_fd 0

auto vmbr10
iface vmbr10 inet manual
        bridge_ports eth3.10
        bridge_stp off
        bridge_fd 0
        bridge_vlan_aware yes

auto vmbr20
iface vmbr20 inet manual
        bridge_ports eth3.20
        bridge_stp off
        bridge_fd 0
        bridge_vlan_aware yes


To clearify wat I am trying to do is getting vlan's to work with a virtual router (pfsense).

Can someone confirm that this wil work ?

Thanks !!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!