Proxmox Network configuratio: 2ETHs with Vlans and bond for VMs + 1NIC for management

Daku

New Member
Feb 1, 2017
3
0
1
45
Hi everybody,
I'm trying to configure the network of a proxmox ve host for a three Interfaces connectivity: one for management and a bond of 2 interfaces dedicated to VM.This bond must be configured with vlan tagging for two different vlan 454 and 464.
To semplify you the understanding of my scenario I'll attach a picture with a schema and a part of /etc/network/interface.

I have problems to understand why my bond0 don't became active.

who want's try to win this virtual coffe?network.PNG
 
Here the full /etc/network/interface:

auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth2 inet manual

iface eth3 inet manual

iface eth4 inet manual

iface eth5 inet manual

iface eth6 inet manual

iface eth7 inet manual

iface eth1 inet manual

allow-vmbr1 bond0
allow-ovs vmbr1 vlan54

auto vlan54
iface vlan54 inet manual
vlan_raw_device bond0

auto bond0
iface bond0 inet manual
slaves eth1 eth5
bond_miimon 100
bond_mode active-backup

auto vmbr0
iface vmbr0 inet static
address 10.174.xx.xxx
netmask 255.255.255.0
gateway 10.174.xx.xx
bridge_ports eth0
bridge_stp off
bridge_fd 0

auto vmbr1
iface vmbr1 inet manual
bridge_ports bond0 vlan54
bridge_stp off
bridge_fd 0
bridge_vlan_aware yes
 
I had allready read that article, but thank's to your indication I've tried to go deeper yesterday and finally I have found a configuration that works in my environment:
auto lo
iface lo inet loopback

iface eth1 inet manual
iface eth5 inet manual

auto eth0
iface eth0 inet static
address 10.174.aaa.aaa
netmask 255.255.255.0
gateway 10.174.aaa.aaa
post-up echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp

#Bond su intervacce eth1 e eth5 vlan 454 464
allow-vmbr0 bond0
iface bond0 inet manual
ovs_bridge vmbr0
ovs_type OVSBond
ovs_bonds eth1 eth5
pre-up ( ifconfig eth1 mtu 9000 && ifconfig eth5 mtu 9000 )
ovs_options bond_mode=balance-tcp lacp=active other_config:lacp-time=fast
mtu 9000
# Bridge for our bond and vlan virtual interfaces (our VMs will
# also attach to this bridge)
auto vmbr0
allow-ovs vmbr0
iface vmbr0 inet manual
ovs_type OVSBridge
ovs_ports bond0 vlan54 vlan64
mtu 9000


# Proxmox Vlan server Lab
allow-vmbr0 vlan54
iface vlan54 inet static
ovs_type OVSIntPort
ovs_bridge vmbr0
ovs_options tag=454
ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif
address 10.174.xx.xx
netmask 255.255.255.0
mtu 1500

# Proxmox Vlan client Lab
allow-vmbr0 vlan64
iface vlan64 inet static
ovs_type OVSIntPort
ovs_bridge vmbr0
ovs_options tag=464
ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif
address 10.174.yy.yy
netmask 255.255.255.0
mtu 9000

Thanks a lot.
Daku
 
glad i could help :rolleyes:

I was a bit pressed for time when reading your post, but remembered I once set up something similar using that guide.
 

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!