Bond Bridge to Proxmox

celine

New Member
Jun 30, 2020
3
0
1
35
Hi

I'm new to Proxmox and I'm discovering. Until today I was on kvm-qemu / virsh on CentOS 7.

My test server is in Virtual Environment 6.2-4.

Here is how I work on my current setup:
- I've N VLAN (1, 2 and 3 for example)
- I've my physical interfaces with configuration to bonding :
Code:
TYPE="Ethernet"
BOOTPROTO=none
DEVICE="em1"
NAME="em1"
ONBOOT="yes"
MASTER="bond0"
SLAVE=yes

Same to the second interface.

- I've a bond0 base configuration :

Code:
DEVICE="bond0"
NAME="bond0"
TYPE="Bond"
BONDING_MASTER="yes"
ONBOOT=yes
BOOTPROTO=none
BONDING_OPTS="mode=1 miimon=100"

- I've a sub bond for each VLAN associate to each bridge:

VLAN 1 :

Code:
DEVICE="bond0.1"
NAME="bond0.1"
IPADDR=10.0.0.1
GATEWAY=10.0.0.254
PREFIX=24
BOOTPROTO=none
ONBOOT=yes
VLAN=yes

VLAN 2 :

Code:
DEVICE="bond0.2"
BRIDGE="br2"
BOOTPROTO=none
ONBOOT=yes
VLAN=yes

VLAN 3 :

Code:
DEVICE="bond0.3"
BRIDGE="br3"
BOOTPROTO=none
ONBOOT=yes
VLAN=yes

- And the bridge for each VLAN except VLAN 1 :

VLAN 2 :

Code:
DEVICE="br2"
TYPE=Bridge
ONBOOT=yes
BOOTPROTO=none

VLAN 3 :

Code:
DEVICE="br3"
TYPE=Bridge
ONBOOT=yes
BOOTPROTO=none

Only my bond0.1 have an IP because it's the hypervisor admin network. Others bond or bridges doesn't have IP because it's dedicated VLAN admin for several VM environment.


I tried to reproduce this on Proxmox but I can't create multiples bond0.X based on esclave bond0 or physical interfaces.

Could you help me ?

Thanks

Edit : I think I find how to .
I create a bond0 interface bond, Linux VLAN interface for each bond0.N, Linux Bridge for each bridge based on bond0.N. I try it and come back
 
Last edited:
If you need the VLANs only for guests and not the node itself you could just create the bond, then use the bond for the bridge. AFAIU VLAN 1 is usually the one you get untagged from your switch.

You can define the VLAN used for the guest in the settings of the NIC. If you need to define more VLANs you will have to do so inside the VM. For that to work you must set the bridge to VLAN aware.
To apply network changes on the node without rebooting it you have to install `ifupdown2`: apt install ifupdown2 in the CLI.
 
Hi,

I know for the VLAN 1 , it's for the example.

Thanks for your response.

I've :
bond0 > bond0.2 > vmbr2 (with vlan in interfaces config)
I assign the vmbr2 to my new vm, and
- set my IP and gateway => Destination host inreachable (with VLAN Tag )
- I try to set a VLAN interface (ensX.2) with other IP and gateway => Same issue

I decide to test if my network (switching) configuration is OK or not to configure an IP to the vmbr2.

Since the proxmox host with IP on vmbr2 I can ping the gateway.

I not see where is the problem.

An idea ?


Solved : On the network card in guest I delete the VLAN tag.
 

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!