Network conf for dedicated cluster subnet using vlan

vercetty92

New Member
Nov 13, 2013
6
0
1
Hi Folks,

I'm going crazy with a pretty simple thing^^

On my 2 nodes proxmox (future) cluster, I have 2 physical interfaces "eno49" and "eno50".
On the switch port side, both are using port in "trunk" mode 802.1Q with 2 vlan:

- default native vlan for management + vm network (vmbr0)
- vlan 1000 dedicated for cluster interconnection (so not for VMs)

these 2 interfaces are part of a bond0 in active-passive mode.

I have followed this guide : https://pve.proxmox.com/wiki/Network_Model#Create_VLAN
and tried to adapt it to my need. I also read some general guibe about how to create a tagged interface on debian

I have successfully based my vmbr0 on bond0, but impossible to have the bond0.1000 interface working (I try to ping one node from the other using the IP I applied to bond0.1000).

on my conf file below I have used the second option to name my tagged interface ("bond0.1000" and not "vlan1000").
I have read that if we use this nomenclature, no need to specify "
vlan_raw_device bond0", but even if i specify it, it doesn't work.

it's the first time I use vlan tagging on a debian based distro.

here is what my /etc/network/inteface file (same on both node with a diff ip of course):

Code:
auto lo
iface lo inet loopback

iface eno53 inet manual

iface eno49 inet manual

iface eno50 inet manual

iface eno51 inet manual

iface eno52 inet manual

iface eno54 inet manual

iface eno55 inet manual

iface eno56 inet manual

auto bond0
iface bond0 inet manual
        slaves eno49 eno50
        bond_miimon 100
        bond_mode active-backup

auto vmbr0
iface vmbr0 inet static
        address  172.26.13.33
        netmask  255.255.255.192
        gateway  172.26.13.62
        bridge_ports bond0
        bridge_stp off
        bridge_fd 0

auto bond0.1000
iface bond0.1000 inet static
  address 10.255.100.1
  netmask 255.255.255.224
  network 10.255.100.0

and in /etc/iproute2/rt_tables
Code:
....
.....
# Table for bond0.1000
1000 bond0.1000

I tested to rename bond0.1000 to vmbr0.1000, just to check if I had a wrong vision of what I need to do, but I don't think that what I need right?

is there something wrong on what I did? it can be an issue on switch side (I don't manage the swich)

Thanks a lot in advance^^
 
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!