Open vSwitch with Proxmox, help

student

Active Member
Dec 6, 2018
7
0
41
32
hello people,

so, I tried to solve my problem using OVS but still nothing done.. I have expiriance with ESXi but I want to bring up one test lab with Proxmox and I have problem with networking.. I have hp proliant servers with 2 NICs. I want to isolate mgmt network, ceph network and cluster-communication network in separate vlans. Also, I want to put VMs to separate network that are accessable from public network. One VM will be my mgmt machine that will have 2 virutal NICs, one for mgmt network and the other one for access to outside network(internet). Can someone post any Template of /etc/network/interfaces?
 
Using the WEB GUI you will be guided well through the whole configuration process, all necessary settings in /etc/network/interfaces will be done automatically, even when using OVS, vlans, bonds etc., just don't forget to install OVS:

Code:
apt install openvswitch-switch

By creating a bridge (without physical port) you have a virtual network available too.
 
Thanks for replay Richard,
but actualy I have concrate question.. how to configure my /etc/network/interfaces file for OVS section if I have network schema as I attaced? I have no idea how to start, because, I want to pass mutiple vlans through bridge, and some of connections, like web servers or managament address should be accessable through the internet..

thanks in advance
 

Attachments

  • proxmox-cluster.png
    proxmox-cluster.png
    198.7 KB · Views: 58
.. how to configure my /etc/network/interfaces file for OVS section if I have network schema as I attaced?
As mentioned everything you need can be configured via WEB-GUI, no manual editing of /etc/network/interfaces necessary.

Looking at your diagram you can process as follows:

- Create an (empty, i.e. without ports) ovs bridge and assign your management address to it (assuming it's not a tagged vlan).

- Create an OVS bond with eth0 and eth1. Take care that the specified bond mode is supported by your switch

- Assign the virtual NICs in your VMs to that bridge and specify the proper vlan tag (10 or 20)

After configuring via GUI you have also an example for /etc/network/interfaces and if you like (but not recommended unless you need something not supported from GUI) you can adapt it manually. Note that after configuring via GUI the configuration is stored in /etc/network/interfaces.new and transferred to /etc/network/interfaces after the next reboot.


Regarding usage and access to/from public network it depends an your provider's rules, but I guess it's independent from using OVS, vlan and bonding.
 

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!