OVS network - Proxmox

Hujino

New Member
Sep 19, 2019
8
1
3
33
Hi,

I just discovered your and this one corresponds to my needs towards my lab server.

I made a first note:

Code:
auto lo
iface lo inet loopback


allow-vmbr0 bond0
iface bond0 inet manual
    ovs_bridge vmbr0
    ovs_type OVSBond
    ovs_bonds eth0 eth1
    ovs_options bond_mode=balance-tcp lacp=active other_config:lacp-time=fast

auto vmbr0
allow-ovs vmbr0
iface vmbr0 inet manual
    ovs_type OVSBridge
    ovs_ports bond0 vlan10 vlan20

allow-vmbr0 vlan10
iface vlan10 inet static
    ovs_type OVSIntPort
    ovs_bridge vmbr0
    ovs_options tag=10
    address 192.169.10.1
    netmask 255.255.255.0
    gateway 192.169.10.254
    mtu 1500


allow-vmbr0 vlan20
iface vlan20 inet static
    ovs_type OVSIntPort
    ovs_bridge vmbr0
    ovs_options tag=20
    mtu 9000

My VLAN 10 is my lab network and the VLAN 20 is my test network.

Does my current configuration allow to assign an IP address on proxmox with vlan 10?

My configuration isolates well my networks ?

Do you have areas for improvement ?
 
I need vlan 20 for some machines on proxmox. However, this one doesn't need to access on proxmox.

NB : si tu es français, on peut parler français si besoin
 
you don't need to define vlan for vms in /etc/network/interfaces. (simply define vlan in vm nic configuration with vmbr0 as bridge, and proxmox will configure for you the vmbr0 ovs ports when vm is starting).

the ovsintport are only if you need to have an management ip on a specific vlan on your proxmox node.
 

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!