Configuring VLAN for host

m3a2r1

Active Member
Feb 23, 2020
162
5
38
47
I've set my proxmox as is written at https://pve.proxmox.com/wiki/Network_Configuration and it works correctly, host gets address from VLAN but in the GUI I see unkown type of bridge (it's named vmbr0v10) and can't edit it from GUI. Is it possible to set VLAN for host directly from GUI, not editing interfaces config file?
Any help appreciated.
 
My /etc/network/interfaces file:
Code:
iface ens1f0 inet manual

iface eno1 inet manual

iface eno2 inet manual

iface eno3 inet manual

iface eno4 inet manual

iface ens1f0.10 inet manual

iface ens1f1 inet manual

auto vmbr0v10
iface vmbr0v10 inet static
        address 172.16.0.14/24
        gateway 172.16.0.1
        bridge_ports ens1f0.10
        bridge_stp off

auto bond0
iface bond0 inet manual
        bond-slaves eno1 eno2 eno3 eno4
        bond-miimon 100
        bond-mode balance-alb

auto vmbr0
iface vmbr0 inet manual
        bridge-ports ens1f0
        bridge-stp off
        bridge-fd 0

auto vmbr1
iface vmbr1 inet static
        address 172.16.1.78/24
        bridge-ports bond0
        bridge-stp off
        bridge-fd 0

and ip add :
Code:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP group default qlen 1000
    link/ether c4:34:6b:b8:6a:c4 brd ff:ff:ff:ff:ff:ff
3: eno2: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP group default qlen 1000
    link/ether c4:34:6b:b8:6a:c5 brd ff:ff:ff:ff:ff:ff
    inet 172.16.1.134/24 brd 172.16.1.255 scope global dynamic eno2
       valid_lft 1215sec preferred_lft 1215sec
4: eno3: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP group default qlen 1000
    link/ether c4:34:6b:b8:6a:c6 brd ff:ff:ff:ff:ff:ff
5: eno4: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP group default qlen 1000
    link/ether c4:34:6b:b8:6a:c7 brd ff:ff:ff:ff:ff:ff
6: ens1f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master vmbr0 state UP group default qlen 1000
    link/ether 24:be:05:ef:ee:18 brd ff:ff:ff:ff:ff:ff
    inet 172.16.1.100/24 brd 172.16.1.255 scope global dynamic ens1f0
       valid_lft 946sec preferred_lft 946sec
7: ens1f1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether 24:be:05:ef:ee:1c brd ff:ff:ff:ff:ff:ff
30: vmbr0v100: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 24:be:05:ef:ee:18 brd ff:ff:ff:ff:ff:ff
31: ens1f0.100@ens1f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr0v100 state UP group default qlen 1000
    link/ether 24:be:05:ef:ee:18 brd ff:ff:ff:ff:ff:ff
35: vmbr0v200: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 24:be:05:ef:ee:18 brd ff:ff:ff:ff:ff:ff
36: ens1f0.200@ens1f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr0v200 state UP group default qlen 1000
    link/ether 24:be:05:ef:ee:18 brd ff:ff:ff:ff:ff:ff
40: vmbr0v300: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 24:be:05:ef:ee:18 brd ff:ff:ff:ff:ff:ff
41: ens1f0.300@ens1f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr0v300 state UP group default qlen 1000
    link/ether 24:be:05:ef:ee:18 brd ff:ff:ff:ff:ff:ff
45: vmbr0v400: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 24:be:05:ef:ee:18 brd ff:ff:ff:ff:ff:ff
46: ens1f0.400@ens1f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr0v400 state UP group default qlen 1000
    link/ether 24:be:05:ef:ee:18 brd ff:ff:ff:ff:ff:ff
50: vmbr0v101: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 24:be:05:ef:ee:18 brd ff:ff:ff:ff:ff:ff
51: ens1f0.101@ens1f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr0v101 state UP group default qlen 1000
    link/ether 24:be:05:ef:ee:18 brd ff:ff:ff:ff:ff:ff
55: vmbr0v102: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 24:be:05:ef:ee:18 brd ff:ff:ff:ff:ff:ff
56: ens1f0.102@ens1f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr0v102 state UP group default qlen 1000
    link/ether 24:be:05:ef:ee:18 brd ff:ff:ff:ff:ff:ff
81: tap100i0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0v100 state UNKNOWN group default qlen 1000
    link/ether 4a:54:38:dd:7e:97 brd ff:ff:ff:ff:ff:ff
120: vmbr1v200: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
128: ens1f0.10@ens1f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr0v10 state UP group default qlen 1000
    link/ether 24:be:05:ef:ee:18 brd ff:ff:ff:ff:ff:ff
129: vmbr0v10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 24:be:05:ef:ee:18 brd ff:ff:ff:ff:ff:ff
inet 172.16.0.14/24 scope global vmbr0v10
       valid_lft forever preferred_lft forever
    inet6 fe80::26be:5ff:feef:ee18/64 scope link
       valid_lft forever preferred_lft forever
130: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 24:be:05:ef:ee:18 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::26be:5ff:feef:ee18/64 scope link
       valid_lft forever preferred_lft forever
133: vmbr1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether c4:34:6b:b8:6a:c4 brd ff:ff:ff:ff:ff:ff
    inet 172.16.1.78/24 scope global vmbr1
       valid_lft forever preferred_lft forever
    inet6 fe80::c634:6bff:feb8:6ac4/64 scope link
       valid_lft forever preferred_lft forever
138: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr1 state UP group default qlen 1000
    link/ether c4:34:6b:b8:6a:c4 brd ff:ff:ff:ff:ff:ff
 
Thanx. So why you use

Code:
auto vmbr0v5

iface vmbr0v5 inet static

in configuration?
 
@m3a2r1 as an alternative you could also take the second example in the Docs. The one that uses vmbr0.5 instead of vmbr0v5.

This can be achieved purely via the GUI.

Configure vmbr0 to be VLAN aware and then create a new VLAN interface, called vmbr0.10 in your case.
 
I've configured with vlan, not vlan aware so I didn't mention second method (vmbr0.5) :)
Thank you for explanation.
 
If I change vmbr0v10 to vmbr0.10 I got error while networking restart: mtu less than device minimum .
What I should change?
 
Can you post the config the way you had it with vmbr0.10?
 
I've only changed vmbr0v10 to vbr0.10 in /etc/network/interfaces and restarted the networking service.

edited:
I know the reason, I've changed in /etc/network/interfaces but I didn't know that it changes linux bridge to linux vlan. I should remove bridge_stp/bridge_ports/bridge_fd settings from this section and it works. So I can set linux vlan with interface name not vmbrX.vlan and ip address and it should work too.

edited2:
IMHO naming linux vlan like a bridge (starting with vmbrX) is useless and misleading because I can't assign vlan to vm. After all I need to create "real" linux bridge and add this "like a bridge" vlan to it.
 
Last edited:

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!